user32/tests: Avoid testing uninitialized data.

This commit is contained in:
Alexandre Julliard 2008-04-10 09:45:34 +02:00
parent 0b64b866a4
commit e3ac70c1cb
1 changed files with 7 additions and 6 deletions

View File

@ -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);