user32: Add support for loading 256x256 icons.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2018-04-03 20:45:44 +02:00
parent 9dc886244b
commit b53d84b947
1 changed files with 1 additions and 0 deletions

View File

@ -873,6 +873,7 @@ static BOOL CURSORICON_GetResIconEntry( LPCVOID dir, DWORD size, int n,
*width = icon->bWidth;
*height = icon->bHeight;
*bits = resdir->idEntries[n].wBitCount;
if (!*width && !*height && have_libpng()) *width = *height = 256;
return TRUE;
}