Add a couple of CloseHandle calls

Dmitry Timoshkov dmitry at baikal.ru
Wed Jun 8 23:07:47 CDT 2005


Hello,

(is this file supposed to have 2002 as a copyright year?)

Changelog:
    Dmitry Timoshkov <dmitry at codeweavers.com>
    Add a couple of CloseHandle calls.

--- cvs/hq/wine/dlls/user/tests/winstation.c	Wed Jun 08 18:44:50 2005
+++ wine/dlls/user/tests/winstation.c	Thu Jun 09 04:00:13 2005
@@ -82,6 +82,7 @@ static DWORD CALLBACK thread( LPVOID arg
         HANDLE hthread = CreateThread( NULL, 0, thread, (char *)arg + 1, 0, NULL );
         Sleep(1000);
         WaitForSingleObject( hthread, INFINITE );
+        CloseHandle( hthread );
     }
     return 0;
 }
@@ -206,6 +207,7 @@ static void test_handles(void)
     Sleep(1000);
     trace( "get other thread desktop: %p\n", GetThreadDesktop(id) );
     WaitForSingleObject( hthread, INFINITE );
+    CloseHandle( hthread );
 }
 
 START_TEST(winstation)






More information about the wine-patches mailing list