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

This commit is contained in:
Francois Gouget 2009-03-11 17:16:41 +01:00 committed by Alexandre Julliard
parent 4b92f6c966
commit 9b6d3676a0
1 changed files with 1 additions and 1 deletions

View File

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