From 46520a9bbea70c5cd8dae4dcd01c1f2199f8e9d4 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Tue, 25 Oct 2011 02:53:44 +0000 Subject: [PATCH] - Port wine right. svn path=/trunk/; revision=54254 --- reactos/dll/win32/user32/windows/cursoricon.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/dll/win32/user32/windows/cursoricon.c b/reactos/dll/win32/user32/windows/cursoricon.c index 59d1ce047d7..c951766198a 100644 --- a/reactos/dll/win32/user32/windows/cursoricon.c +++ b/reactos/dll/win32/user32/windows/cursoricon.c @@ -241,7 +241,9 @@ static int DIB_GetBitmapInfo( const BITMAPINFOHEADER *header, LONG *width, *compr = 0; return 0; } - else if (header->biSize >= sizeof(BITMAPINFOHEADER)) + else if (header->biSize == sizeof(BITMAPINFOHEADER) || + header->biSize == sizeof(BITMAPV4HEADER) || + header->biSize == sizeof(BITMAPV5HEADER)) { *width = header->biWidth; *height = header->biHeight;