Re: user32: Check for .ico and .cur magic.
18 Feb
2008
18 Feb
'08
8:55 a.m.
"Andrew Riedi" <andrewriedi(a)gmail.com> wrote:
+#define ICON_DIB_SIZE 4264
It would be helpful to actually calculate the size instead of hardcoding the magic value.
+ handle = LoadImageA(NULL, "icon.ico", IMAGE_CURSOR, 0, 0, LR_LOADFROMFILE); + ok(handle != NULL, "LoadImage() failed.\n"); + error = GetLastError(); + ok(error == 0, "Last error: %u\n", error); + + /* Clean up. */ + ret = DestroyIcon(handle);
The fact that LoadImage has returned a not zero handle actually confirms nothing, you need to verify the contents of the loaded image with GetIconInfo. -- Dmitry.
6512
Age (days ago)
6512
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov