From 3a82706e545054e287de76ad489be31c4c484736 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Thu, 25 Sep 2003 20:21:47 +0000 Subject: [PATCH] Call HeapAlloc() on entries before HeapReAlloc() to avoid crash on Windows 2000. --- programs/uninstaller/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/programs/uninstaller/main.c b/programs/uninstaller/main.c index 8dfd1ad09ff..246da848b1e 100644 --- a/programs/uninstaller/main.c +++ b/programs/uninstaller/main.c @@ -203,6 +203,9 @@ int FetchUninstallInformation(void) return 0; } + if (!entries) + entries = HeapAlloc(GetProcessHeap(), 0, sizeof(uninst_entry)); + strcpy(key_app, REGSTR_PATH_UNINSTALL); strcat(key_app, "\\"); p = key_app+strlen(REGSTR_PATH_UNINSTALL)+1;