mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 18:52:10 +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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue