Commit 629889b2 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

winemenubuilder: Improve traces.

Report the EnumResourceNamesW() and failure to find an icon separately so traces are less misleading.
parent 6e6d24e9
......@@ -291,7 +291,11 @@ static BOOL extract_icon32(LPCWSTR szFileName, int nIndex, const char *szXPMFile
hResInfo=NULL;
sEnumRes.pResInfo = &hResInfo;
sEnumRes.nIndex = nIndex;
EnumResourceNamesW(hModule, (LPCWSTR)RT_GROUP_ICON, EnumResNameProc, (LONG_PTR)&sEnumRes);
if (!EnumResourceNamesW(hModule, (LPCWSTR)RT_GROUP_ICON,
EnumResNameProc, (LONG_PTR)&sEnumRes))
{
WINE_TRACE("EnumResourceNamesW failed, error %ld\n", GetLastError());
}
}
if (hResInfo)
......@@ -320,7 +324,7 @@ static BOOL extract_icon32(LPCWSTR szFileName, int nIndex, const char *szXPMFile
}
else
{
WINE_ERR("ExtractFromEXEDLL failed, error %ld\n", GetLastError());
WINE_ERR("found no icon\n");
FreeLibrary(hModule);
return FALSE;
}
......
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