Prevent setup from crashing if a section in the INF is empty (no

entries) (this happens when installing IE5).
This commit is contained in:
Mehmet Yasar 2002-03-11 01:15:01 +00:00 committed by Alexandre Julliard
parent ae3d4261d5
commit 78f41aeaf7
1 changed files with 1 additions and 0 deletions

View File

@ -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, ',');