-add_definitions(
- -D__ROS_LONG64__
- -D_DLL -D__USE_CRTIMP)
-
add_executable(ntprint_winetest ntprint.c testlist.c)
-target_link_libraries(ntprint_winetest wine)
set_module_type(ntprint_winetest win32cui)
-add_importlibs(ntprint_winetest msvcrt kernel32 ntdll)
+add_importlibs(ntprint_winetest msvcrt kernel32)
add_cd_file(TARGET ntprint_winetest DESTINATION reactos/bin FOR all)
SetLastError(0xdeadbeef);
mi = pPSetupCreateMonitorInfo(NULL, NULL, NULL);
+ if (!mi && (GetLastError() == RPC_S_SERVER_UNAVAILABLE)) {
+ win_skip("The service 'Spooler' is required for many tests\n");
+ return;
+ }
ok( mi != NULL, "got %p with %u (expected '!= NULL')\n", mi, GetLastError());
if (mi) pPSetupDestroyMonitorInfo(mi);
SetLastError(0xdeadbeef);
mi = pPSetupCreateMonitorInfo(NULL, NULL, NULL);
+ if (!mi && (GetLastError() == RPC_S_SERVER_UNAVAILABLE)) {
+ win_skip("The service 'Spooler' is required for many tests\n");
+ return;
+ }
ok( mi != NULL, "got %p with %u (expected '!= NULL')\n", mi, GetLastError());
if (!mi) return;
/* lasterror is returned */
trace("returned with %u\n", GetLastError());
- /* Try to destroy the handle twice crash with native ntprint.dll */
+ /* Trying to destroy the handle twice crashes with native ntprint.dll */
if (0) {
SetLastError(0xdeadbeef);
pPSetupDestroyMonitorInfo(mi);