winemenubuilder: Fix an off-by-one check that resulted in erroneous error messages.
This commit is contained in:
parent
4b92f6c966
commit
9b6d3676a0
|
@ -480,7 +480,7 @@ static BOOL extract_icon32(LPCWSTR szFileName, int nIndex, char *szXPMFileName)
|
|||
sEnumRes.nIndex = nIndex;
|
||||
if (!EnumResourceNamesW(hModule, (LPCWSTR)RT_GROUP_ICON,
|
||||
EnumResNameProc, (LONG_PTR)&sEnumRes) &&
|
||||
sEnumRes.nIndex != 0)
|
||||
sEnumRes.nIndex != -1)
|
||||
{
|
||||
WINE_TRACE("EnumResourceNamesW failed, error %d\n", GetLastError());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue