Commit 9b6d3676 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

winemenubuilder: Fix an off-by-one check that resulted in erroneous error messages.

parent 4b92f6c9
......@@ -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());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment