[PATCH v2 2/2] kernel32/tests: Don't close the stop_event handle.

Zebediah Figura z.figura12 at gmail.com
Thu Nov 16 22:21:33 CST 2017


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
Since we close the handle immediately after setting it, mutex_thread_proc()
sometimes loops forever trying to wait on an invalid handle, causing an
intermittent failure on both Wine and Windows.

 dlls/kernel32/tests/loader.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/dlls/kernel32/tests/loader.c b/dlls/kernel32/tests/loader.c
index 6d532eb..17c7697 100644
--- a/dlls/kernel32/tests/loader.c
+++ b/dlls/kernel32/tests/loader.c
@@ -2149,7 +2149,6 @@ static void child_process(const char *dll_name, DWORD target_offset)
     case 3:
         trace("signalling thread exit\n");
         SetEvent(stop_event);
-        CloseHandle(stop_event);
         break;
 
     case 4:
-- 
2.7.4




More information about the wine-devel mailing list