From b53d84b947f93ab6848c8614c37e76b5dfb37f50 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 3 Apr 2018 20:45:44 +0200 Subject: [PATCH] user32: Add support for loading 256x256 icons. Signed-off-by: Alexandre Julliard --- dlls/user32/cursoricon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/user32/cursoricon.c b/dlls/user32/cursoricon.c index a6daa486d56..0adb73bf564 100644 --- a/dlls/user32/cursoricon.c +++ b/dlls/user32/cursoricon.c @@ -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; }