Commit 4dc91b7b authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

winemenubuilder: EnumResourceNamesW() returns false when we find the icon. So…

winemenubuilder: EnumResourceNamesW() returns false when we find the icon. So fix the corresponding misfiring trace.
parent 67c6c24b
......@@ -296,7 +296,8 @@ static BOOL extract_icon32(LPCWSTR szFileName, int nIndex, const char *szXPMFile
sEnumRes.pResInfo = &hResInfo;
sEnumRes.nIndex = nIndex;
if (!EnumResourceNamesW(hModule, (LPCWSTR)RT_GROUP_ICON,
EnumResNameProc, (LONG_PTR)&sEnumRes))
EnumResNameProc, (LONG_PTR)&sEnumRes) &&
sEnumRes.nIndex != 0)
{
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