From 79b7f46d6418afad2fbc8aa54b50d5aae9a37569 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Thu, 22 Jan 2009 14:49:59 +0000 Subject: [PATCH] Nikolay Sivov 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 --- reactos/dll/win32/ole32/rpc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/dll/win32/ole32/rpc.c b/reactos/dll/win32/ole32/rpc.c index caad3448e11..caf5b6aeb50 100644 --- a/reactos/dll/win32/ole32/rpc.c +++ b/reactos/dll/win32/ole32/rpc.c @@ -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);