Author: fireball
Date: Tue Sep 2 12:24:56 2008
New Revision: 35875
URL:
http://svn.reactos.org/svn/reactos?rev=35875&view=rev
Log:
- Don't pass an unitialized variable as buffer size to RegQueryValueEx. This fixes
"(lib\rtl\heap.c:777) Could not allocate 78010000 bytes" problem during 2nd
stage install.
Modified:
trunk/reactos/base/setup/vmwinst/vmwinst.c
Modified: trunk/reactos/base/setup/vmwinst/vmwinst.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/vmwinst/vmwinst…
==============================================================================
--- trunk/reactos/base/setup/vmwinst/vmwinst.c [iso-8859-1] (original)
+++ trunk/reactos/base/setup/vmwinst/vmwinst.c [iso-8859-1] Tue Sep 2 12:24:56 2008
@@ -260,6 +260,7 @@
{
return FALSE;
}
+ Size = sizeof(DWORD);
if(RegQueryValueEx(hReg, L"Start", 0, &Type, (BYTE*)&Value,
&Size) != ERROR_SUCCESS ||
Type != REG_DWORD)
{