diff --git a/dlls/kernel32/tests/file.c b/dlls/kernel32/tests/file.c index c0a36c7..29aece6 100644 --- a/dlls/kernel32/tests/file.c +++ b/dlls/kernel32/tests/file.c @@ -1151,6 +1151,14 @@ static void test_CreateFileA(void) } else win_skip("GetVolumeNameForVolumeMountPointA not found\n"); + + SetLastError(0xdeadbeef); + hFile = CreateFileA("c:\\*.*", GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); + ok(GetLastError() == ERROR_INVALID_NAME || + broken(GetLastError() == ERROR_FILE_NOT_FOUND), /* Win98 */ + "LastError should have been ERROR_INVALID_NAME or ERROR_FILE_NOT_FOUND but got %u\n", GetLastError()); + if(hFile != INVALID_HANDLE_VALUE) + CloseHandle(hFile); } static void test_CreateFileW(void)