Fix another error under Win9x (hopefully).

oldstable
Rolf Kalbermatter 2003-09-17 04:18:09 +00:00 committed by Alexandre Julliard
parent d1ffc6f11c
commit fddc4ec7b4
1 changed files with 2 additions and 3 deletions

View File

@ -262,11 +262,10 @@ static void test__lcreat( void )
ok( DeleteFileA( filename ) != 0, "DeleteFile failed (%ld)", GetLastError( ) );
filehandle=_lcreat (slashname, 0); /* illegal name */
if (HFILE_ERROR != filehandle || GetLastError() != ERROR_INVALID_NAME)
if (HFILE_ERROR != filehandle || (GetLastError() != ERROR_INVALID_NAME && GetLastError() != ERROR_PATH_NOT_FOUND))
{
todo_wine {
ok (0, "creating file \"%s\" should fail with error 123, (err=%ld)", slashname, GetLastError ());
ok (0, "creating file \"%s\" should fail with error 123 or 3, (err=%ld)", slashname, GetLastError ());
}
_lclose(filehandle);