Commit 6e6a0e2a authored by Alexandre Julliard's avatar Alexandre Julliard

winoldapp: Grab the Win16 lock again before exiting.

parent 10f35222
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment