Commit 7886cacb authored by Alexandre Julliard's avatar Alexandre Julliard

Revert previous change, OF_EXIST really returns HFILE_ERROR.

parent bb05f9e9
......@@ -2071,8 +2071,5 @@ HFILE WINAPI OpenFile( LPCSTR name, OFSTRUCT *ofs, UINT mode )
error: /* We get here if there was an error opening the file */
ofs->nErrCode = GetLastError();
WARN("(%s): return = HFILE_ERROR error= %d\n", name,ofs->nErrCode );
if (mode & OF_EXIST)
return FALSE;
else
return HFILE_ERROR;
return HFILE_ERROR;
}
......@@ -1410,7 +1410,7 @@ static void test_OpenFile_exists(void)
}
hFile = OpenFile(".\\foo-bar-foo.baz", &ofs, OF_EXIST);
ok( hFile == FALSE, "hFile != FALSE : %ld\n", GetLastError());
ok( hFile == HFILE_ERROR, "hFile != HFILE_ERROR : %ld\n", GetLastError());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment