[ros-diffs] [fireball] 35875: - 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.

fireball at svn.reactos.org fireball at svn.reactos.org
Wed Sep 3 14:38:48 CEST 2008


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.c?rev=35875&r1=35874&r2=35875&view=diff
==============================================================================
--- 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)
   {



More information about the Ros-diffs mailing list