kernel/tests: Wrong error code checked.

This commit is contained in:
Paul Vriens 2006-08-15 19:15:56 +02:00 committed by Alexandre Julliard
parent 2bd9c59c49
commit f2f44de6dc
1 changed files with 3 additions and 1 deletions

View File

@ -1214,7 +1214,9 @@ static void test_FindFirstFileA(void)
handle = FindFirstFileA(buffer2, &search_results);
err = GetLastError();
ok ( handle == INVALID_HANDLE_VALUE, "FindFirstFile on %s should Fail\n", buffer2 );
ok ( err == ERROR_FILE_NOT_FOUND, "Bad Error number %d\n", err );
todo_wine {
ok ( err == ERROR_PATH_NOT_FOUND, "Bad Error number %d\n", err );
}
/* try FindFirstFileA on "C:\foo\bar.txt" */
SetLastError( 0xdeadbeaf );