Skip to content
Snippets Groups Projects
Commit 000e7606 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard
Browse files

HCR_GetDefaultIcon should set icon number to 0 if it's missing from

the reg entry.
parent 49185ac2
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,10 @@ BOOL HCR_GetDefaultIcon (LPCSTR szClass, LPSTR szDest, DWORD len, LPDWORD dwNr)
ExpandEnvironmentStringsA(szDest, sTemp, MAX_PATH);
strcpy(szDest, sTemp);
}
if (ParseFieldA (szDest, 2, sNum, 5)) *dwNr=atoi(sNum);
if (ParseFieldA (szDest, 2, sNum, 5))
*dwNr=atoi(sNum);
else
*dwNr=0; /* sometimes the icon number is missing */
ParseFieldA (szDest, 1, szDest, len);
ret = TRUE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment