Author: cwittich
Date: Thu Jan 22 08:49:59 2009
New Revision: 39015
URL:
http://svn.reactos.org/svn/reactos?rev=39015&view=rev
Log:
Nikolay Sivov <bunglehead(a)gmail.com>
Thu, 22 Jan 2009 12:00:33 +0000 (15:00 +0300)
kernel32: Make GetOverlappedResult crash on NULL args as native does.
Modified:
trunk/reactos/dll/win32/ole32/rpc.c
Modified: trunk/reactos/dll/win32/ole32/rpc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ole32/rpc.c?rev=…
==============================================================================
--- trunk/reactos/dll/win32/ole32/rpc.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ole32/rpc.c [iso-8859-1] Thu Jan 22 08:49:59 2009
@@ -1861,6 +1861,7 @@
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 @@
}
WriteFile(hPipe,buffer,buflen,&res,&ovl);
- GetOverlappedResult(hPipe, &ovl, NULL, TRUE);
+ GetOverlappedResult(hPipe, &ovl, &bytes, TRUE);
HeapFree(GetProcessHeap(),0,buffer);
FlushFileBuffers(hPipe);