From 78f41aeaf78672d4e5e030703e081ab49cfb05c3 Mon Sep 17 00:00:00 2001 From: Mehmet Yasar Date: Mon, 11 Mar 2002 01:15:01 +0000 Subject: [PATCH] Prevent setup from crashing if a section in the INF is empty (no entries) (this happens when installing IE5). --- dlls/setupapi/setupx_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/setupapi/setupx_main.c b/dlls/setupapi/setupx_main.c index f74f824cf52..0964aecc33d 100644 --- a/dlls/setupapi/setupx_main.c +++ b/dlls/setupapi/setupx_main.c @@ -1133,6 +1133,7 @@ static BOOL SETUPX_CopyFiles(LPSTR *pSub, HINF16 hInf) /* entry wasn't a single file, so let's iterate over section */ pFileEntries = SETUPX_GetSectionEntries(filename, pCopyEntry); + if (pFileEntries == NULL) continue; for (p=pFileEntries; *p; p +=strlen(p)+1) { pSubFile = SETUPX_GetSubStrings(p, ',');