- 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.

svn path=/trunk/; revision=35875
This commit is contained in:
Aleksey Bragin 2008-09-02 10:24:56 +00:00
parent 27e6b3ca2f
commit 3da774ad40

View file

@ -260,6 +260,7 @@ IsVmwSVGAEnabled(VOID)
{
return FALSE;
}
Size = sizeof(DWORD);
if(RegQueryValueEx(hReg, L"Start", 0, &Type, (BYTE*)&Value, &Size) != ERROR_SUCCESS ||
Type != REG_DWORD)
{