Module: wine Branch: master Commit: 6e6a0e2a2c3df15f8f62216227e3f6f454ba7e65 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6e6a0e2a2c3df15f8f62216227...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Nov 30 21:04:16 2015 +0900
winoldapp: Grab the Win16 lock again before exiting.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
programs/winoldap.mod16/winoldap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/programs/winoldap.mod16/winoldap.c b/programs/winoldap.mod16/winoldap.c index 410a567..c6342d0 100644 --- a/programs/winoldap.mod16/winoldap.c +++ b/programs/winoldap.mod16/winoldap.c @@ -76,14 +76,13 @@ WORD WINAPI WinMain16( HINSTANCE16 inst, HINSTANCE16 prev, LPSTR cmdline, WORD s if (wait_input_idle( info.hProcess, 10000 ) == WAIT_FAILED) WINE_WARN("WaitForInputIdle failed: Error %d\n", GetLastError() ); ReleaseThunkLock( &count ); - WaitForSingleObject( info.hProcess, INFINITE ); + RestoreThunkLock( count ); + GetExitCodeProcess( info.hProcess, &exit_code ); CloseHandle( info.hThread ); CloseHandle( info.hProcess ); } - else - ReleaseThunkLock( &count );
HeapFree( GetProcessHeap(), 0, cmdline ); ExitThread( exit_code );