Commit 790d2e8b authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

user32/tests: When EnumDisplaySettings() fails unexpectedly, trace how many calls were made.

parent 18a9aba0
......@@ -2865,13 +2865,14 @@ static void test_EnumDisplaySettings(void)
num = 1;
while (1) {
SetLastError (0xdeadbeef);
if (!EnumDisplaySettingsA(NULL, num++, &devmode)) {
if (!EnumDisplaySettingsA(NULL, num, &devmode)) {
DWORD le = GetLastError();
ok(le == ERROR_NO_MORE_FILES ||
le == 0xdeadbeef, /* XP, 2003 */
"Expected ERROR_NO_MORE_FILES or 0xdeadbeef, got %d\n", le);
"Expected ERROR_NO_MORE_FILES or 0xdeadbeef, got %d for %d\n", le, num);
break;
}
num++;
}
}
......
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