Nikolay Sivov <bunglehead@gmail.com>

Thu, 22 Jan 2009 12:00:33 +0000 (15:00 +0300)
kernel32: Make GetOverlappedResult crash on NULL args as native does.

svn path=/trunk/; revision=39015
This commit is contained in:
Christoph von Wittich 2009-01-22 14:49:59 +00:00
parent 969279fc8a
commit 79b7f46d64

View file

@ -1861,6 +1861,7 @@ static DWORD WINAPI local_server_thread(LPVOID param)
BOOL multi_use = lsp->multi_use;
OVERLAPPED ovl;
HANDLE pipe_event;
DWORD bytes;
TRACE("Starting threader for %s.\n",debugstr_guid(&lsp->clsid));
@ -1929,7 +1930,7 @@ static DWORD WINAPI local_server_thread(LPVOID param)
}
WriteFile(hPipe,buffer,buflen,&res,&ovl);
GetOverlappedResult(hPipe, &ovl, NULL, TRUE);
GetOverlappedResult(hPipe, &ovl, &bytes, TRUE);
HeapFree(GetProcessHeap(),0,buffer);
FlushFileBuffers(hPipe);