mirror of
https://github.com/reactos/reactos.git
synced 2024-09-10 12:54:51 +00:00
- 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:
parent
27e6b3ca2f
commit
3da774ad40
|
@ -260,6 +260,7 @@ IsVmwSVGAEnabled(VOID)
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Size = sizeof(DWORD);
|
||||||
if(RegQueryValueEx(hReg, L"Start", 0, &Type, (BYTE*)&Value, &Size) != ERROR_SUCCESS ||
|
if(RegQueryValueEx(hReg, L"Start", 0, &Type, (BYTE*)&Value, &Size) != ERROR_SUCCESS ||
|
||||||
Type != REG_DWORD)
|
Type != REG_DWORD)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue