Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
7632452e
Commit
7632452e
authored
May 19, 2002
by
Andreas Mohr
Committed by
Alexandre Julliard
May 19, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Improve error messages.
- Add error code mapping EPERM -> STATUS_ACCESS_DENIED.
parent
4532cc83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
cdrom.c
dlls/ntdll/cdrom.c
+4
-2
No files found.
dlls/ntdll/cdrom.c
View file @
7632452e
...
...
@@ -134,7 +134,7 @@ static int CDROM_GetIdeInterface(int dev, int* iface, int* device)
case
IDE6_MAJOR
:
*
iface
=
6
;
break
;
case
IDE7_MAJOR
:
*
iface
=
7
;
break
;
default:
FIXME
(
"
major
%d not supported
\n
"
,
major
(
st
.
st_rdev
));
FIXME
(
"
CD-ROM device with major ID
%d not supported
\n
"
,
major
(
st
.
st_rdev
));
}
*
device
=
(
minor
(
st
.
st_rdev
)
==
63
?
1
:
0
);
return
1
;
...
...
@@ -304,7 +304,7 @@ static int CDROM_Open(HANDLE hDevice, DWORD clientID)
cdrom_cache
[
dev
].
fd
=
open
(
DRIVE_GetDevice
(
dev
),
O_RDONLY
|
O_NONBLOCK
);
if
(
cdrom_cache
[
dev
].
fd
==
-
1
)
{
FIXME
(
"Can't open
%s: %s
\n
"
,
root
,
strerror
(
errno
));
FIXME
(
"Can't open
configured CD-ROM drive at %s (device %s): %s
\n
"
,
root
,
DRIVE_GetDevice
(
dev
)
,
strerror
(
errno
));
return
-
1
;
}
}
...
...
@@ -341,6 +341,8 @@ static DWORD CDROM_GetStatusCode(int io)
case
ENOMEDIUM
:
#endif
return
STATUS_NO_MEDIA_IN_DEVICE
;
case
EPERM
:
return
STATUS_ACCESS_DENIED
;
}
FIXME
(
"Unmapped error code %d: %s
\n
"
,
errno
,
strerror
(
errno
));
return
STATUS_IO_DEVICE_ERROR
;
...
...
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