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
9a5c5178
Commit
9a5c5178
authored
Mar 08, 2007
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Mar 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedos: Check a file handle against INVALID_HANDLE_VALUE, not 0.
parent
9890cb78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
int2f.c
dlls/winedos/int2f.c
+1
-1
No files found.
dlls/winedos/int2f.c
View file @
9a5c5178
...
...
@@ -564,7 +564,7 @@ static void MSCDEX_Request(BYTE *driver_request, BOOL dorealmode)
PTR_AT
(
driver_request
,
3
,
WORD
)
=
0
;
devName
[
4
]
=
'A'
+
CDROM_GetHeap
()
->
hdr
.
drive
+
driver_request
[
1
];
h
=
CreateFileA
(
devName
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
if
(
!
h
)
{
if
(
h
==
INVALID_HANDLE_VALUE
)
{
WARN
(
"Couldn't open cdrom handle
\n
"
);
driver_request
[
4
]
|=
0x80
;
driver_request
[
3
]
=
1
;
/* unknown unit */
...
...
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