Commit e3ac70c1 authored by Alexandre Julliard's avatar Alexandre Julliard

user32/tests: Avoid testing uninitialized data.

parent 0b64b866
......@@ -649,13 +649,14 @@ static void test_LoadImage(void)
error = GetLastError();
ok(error == 0xdeadbeef, "Last error: %u\n", error);
todo_wine {
ok(icon_info.fIcon == FALSE, "fIcon != FALSE.\n");
ok(icon_info.xHotspot == 1, "xHotspot is %u.\n", icon_info.xHotspot);
ok(icon_info.yHotspot == 1, "yHotspot is %u.\n", icon_info.yHotspot);
ok(icon_info.hbmColor != NULL, "No hbmColor!\n");
if (ret)
{
ok(icon_info.fIcon == FALSE, "fIcon != FALSE.\n");
ok(icon_info.xHotspot == 1, "xHotspot is %u.\n", icon_info.xHotspot);
ok(icon_info.yHotspot == 1, "yHotspot is %u.\n", icon_info.yHotspot);
ok(icon_info.hbmColor != NULL, "No hbmColor!\n");
ok(icon_info.hbmMask != NULL, "No hbmMask!\n");
}
ok(icon_info.hbmMask != NULL, "No hbmMask!\n");
/* Clean up. */
SetLastError(0xdeadbeef);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment