mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 01:48:11 +00:00
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:
parent
969279fc8a
commit
79b7f46d64
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue