From 3da774ad40e8368f4a2e5bce6eaa1ac00838b333 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Tue, 2 Sep 2008 10:24:56 +0000 Subject: [PATCH] - 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 --- reactos/base/setup/vmwinst/vmwinst.c | 1 + 1 file changed, 1 insertion(+) diff --git a/reactos/base/setup/vmwinst/vmwinst.c b/reactos/base/setup/vmwinst/vmwinst.c index 0269195eeba..80484c9e908 100644 --- a/reactos/base/setup/vmwinst/vmwinst.c +++ b/reactos/base/setup/vmwinst/vmwinst.c @@ -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) {