Author: fireball
Date: Tue May 6 13:11:41 2008
New Revision: 33328
URL:
http://svn.reactos.org/svn/reactos?rev=33328&view=rev
Log:
- 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).
Modified:
trunk/reactos/dll/win32/kernel32/file/npipe.c
Modified: trunk/reactos/dll/win32/kernel32/file/npipe.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/file/np…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/file/npipe.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/file/npipe.c [iso-8859-1] Tue May 6 13:11:41 2008
@@ -250,7 +250,7 @@
UNICODE_STRING NameU;
/* Convert the name to Unicode */
- Basep8BitStringToLiveUnicodeString(&NameU, lpNamedPipeName);
+ Basep8BitStringToHeapUnicodeString(&NameU, lpNamedPipeName);
/* Call the Unicode API */
r = WaitNamedPipeW(NameU.Buffer, nTimeOut);