Added a couple of CloseHandle calls.

oldstable
Dmitry Timoshkov 2005-06-09 09:46:06 +00:00 committed by Alexandre Julliard
parent 037bdc0dc0
commit 17408ba751
1 changed files with 2 additions and 0 deletions

View File

@ -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)