winemenubuilder: On Mac, ignore non-square icon entries.

This commit is contained in:
Ken Thomases 2011-01-12 00:17:25 -06:00 committed by Alexandre Julliard
parent 3a5e6c4357
commit eb40939092
1 changed files with 2 additions and 0 deletions

View File

@ -867,6 +867,8 @@ static HRESULT platform_write_icon(IStream *icoStream, int exeIndex, LPCWSTR ico
int height = iconDirEntries[i].bHeight ? iconDirEntries[i].bHeight : 256;
WINE_TRACE("[%d]: %d x %d @ %d\n", i, width, height, iconDirEntries[i].wBitCount);
if (height != width)
continue;
slot = size_to_slot(width);
if (slot < 0)
continue;