Commit af7e1ae5 authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

FILE_CreateFile()'s read/write-check was broken due to checking of

ERROR_xxx instead of STATUS_xxx.
parent 2cf4ebc1
......@@ -341,7 +341,7 @@ HANDLE FILE_CreateFile( LPCSTR filename, DWORD access, DWORD sharing,
if ((req->handle == -1) && !fail_read_only && (access & GENERIC_WRITE))
{
if ((err == ERROR_ACCESS_DENIED) || (err == ERROR_WRITE_PROTECT))
if ((err == STATUS_MEDIA_WRITE_PROTECTED) || (err == STATUS_ACCESS_DENIED))
{
TRACE("Write access failed for file '%s', trying without "
"write access", filename);
......
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