Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
43694d95
Commit
43694d95
authored
Jan 10, 2006
by
Rein Klazes
Committed by
Alexandre Julliard
Jan 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedos: Open files with write access on read only media.
If the CreateFile in INT21_CreateFile fails with ERROR_WRITE_PROTECT, retry without write access.
parent
d82af6f7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
int21.c
dlls/winedos/int21.c
+6
-0
No files found.
dlls/winedos/int21.c
View file @
43694d95
...
...
@@ -1090,6 +1090,12 @@ static BOOL INT21_CreateFile( CONTEXT86 *context,
{
winHandle
=
CreateFileW
(
pathW
,
winAccess
,
winSharing
,
NULL
,
winMode
,
winAttributes
,
0
);
/* DOS allows to open files on a CDROM R/W */
if
(
winHandle
==
INVALID_HANDLE_VALUE
&&
GetLastError
()
==
ERROR_WRITE_PROTECT
)
{
winHandle
=
CreateFileW
(
pathW
,
winAccess
&
~
GENERIC_WRITE
,
winSharing
,
NULL
,
winMode
,
winAttributes
,
0
);
}
if
(
winHandle
==
INVALID_HANDLE_VALUE
)
return
FALSE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment