ws2_32: Free the asynchronous query structure if thread creation fails.
This commit is contained in:
parent
926fe27718
commit
a5e0f09b52
|
@ -284,6 +284,7 @@ static HANDLE run_query( HWND hWnd, UINT uMsg, LPTHREAD_START_ROUTINE func,
|
|||
if (!thread)
|
||||
{
|
||||
SetLastError( WSAEWOULDBLOCK );
|
||||
HeapFree( GetProcessHeap(), 0, query );
|
||||
return 0;
|
||||
}
|
||||
CloseHandle( thread );
|
||||
|
|
Loading…
Reference in New Issue