"Marcus Meissner" marcus@jet.franken.de wrote:
- num = 1;
- while (1) {
- SetLastError (0xdeadbeef);
- if (!EnumDisplaySettings(NULL, num++, &devmode)) {
- DWORD le = GetLastError();
- ok (le == ERROR_NO_MORE_FILES, "Last error on EnumDisplaySettings was %d, expected ERROR_NO_MORE_FILES\n", le);
- break;
- }
- }
Shouldn't the loop start from 'num = 0;' since the modes are 0 based?