[KERNEL32_WINETEST] Avoid calling WaitForMultipleObjectsEx with pseudo handle. Brough...
[reactos.git] / rostests / winetests / kernel32 / sync.c
index d76d7b4..b0233cb 100755 (executable)
@@ -2526,8 +2526,7 @@ START_TEST(sync)
     {
         if (!strcmp(argv[2], "apc_deadlock"))
         {
-            HANDLE handle = GetCurrentThread();
-            for (;;) WaitForMultipleObjectsEx(1, &handle, FALSE, INFINITE, TRUE);
+            for (;;) SleepEx(INFINITE, TRUE);
         }
         return;
     }