mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 14:50:48 +00:00
FILE_CreateFile()'s read/write-check was broken due to checking of
ERROR_xxx instead of STATUS_xxx.
This commit is contained in:
parent
2cf4ebc1aa
commit
af7e1ae5c5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue