Paul Vriens <paul.vriens.wine(a)gmail.com> writes:
@@ -1894,10 +1895,18 @@ static void test_FindFirstFileExA(void) ok(FindNextFile(handle, &search_results), "Fetching third file failed\n"); ok(CHECK_NAME(search_results.cFileName), "Invalid third entry - %s\n", search_results.cFileName);
- ok(FindNextFile(handle, &search_results), "Fetching fourth file failed\n"); + SetLastError(0xdeadbeef); + ret = FindNextFile(handle, &search_results); + ok( ret || + broken(!ret && GetLastError() == ERROR_NO_MORE_FILES), /* WinMe */ + "Fetching fourth file failed\n");
It sounds like it's actually respecting the FindExSearchLimitToDirectories flag, so I'm not sure this qualifies as broken. Maybe testing without that flag too would be a better test. -- Alexandre Julliard julliard(a)winehq.org