winemenubuilder: EnumResourceNamesW() returns false when we find the icon. So fix the corresponding misfiring trace.

This commit is contained in:
Francois Gouget 2008-01-11 09:57:15 +01:00 committed by Alexandre Julliard
parent 67c6c24b04
commit 4dc91b7ba1
1 changed files with 2 additions and 1 deletions

View File

@ -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());
}