From a64e1e81c5c02d59df2b5dee0a7db5a661ccdfd4 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Tue, 6 May 2008 18:11:41 +0000 Subject: [PATCH] - Fix a bug resulting in a write to an uninitialized address (coincidently located somewhere in the middle of another heap allocation) and later heapfreeing it. WaitNamedPipeA() was the affected function (results were visible when e.g. starting Office 2003 installer). svn path=/trunk/; revision=33328 --- reactos/dll/win32/kernel32/file/npipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/kernel32/file/npipe.c b/reactos/dll/win32/kernel32/file/npipe.c index 13e1b99c298..93ab997ad01 100644 --- a/reactos/dll/win32/kernel32/file/npipe.c +++ b/reactos/dll/win32/kernel32/file/npipe.c @@ -250,7 +250,7 @@ WaitNamedPipeA(LPCSTR lpNamedPipeName, UNICODE_STRING NameU; /* Convert the name to Unicode */ - Basep8BitStringToLiveUnicodeString(&NameU, lpNamedPipeName); + Basep8BitStringToHeapUnicodeString(&NameU, lpNamedPipeName); /* Call the Unicode API */ r = WaitNamedPipeW(NameU.Buffer, nTimeOut);