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
1191249f
Commit
1191249f
authored
Jan 05, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jan 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Check for the correct error return value from open.
parent
089435d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
oldconfig.c
dlls/kernel/oldconfig.c
+2
-3
No files found.
dlls/kernel/oldconfig.c
View file @
1191249f
...
...
@@ -161,12 +161,11 @@ static void create_scsi_entry( PSCSI_ADDRESS scsi_addr, LPSTR lpDriver, UINT uDr
int
fd
,
dma
;
fd
=
open
(
lpUnixDeviceName
,
O_RDONLY
|
O_NONBLOCK
);
if
(
fd
)
if
(
fd
!=
-
1
)
{
if
(
ioctl
(
fd
,
HDIO_GET_DMA
,
&
dma
)
!=
-
1
)
value
=
dma
;
close
(
fd
);
}
else
ERR
(
"Can't open %s"
,
buffer
);
}
#endif
RtlCreateUnicodeStringFromAsciiz
(
&
nameW
,
"DMAEnabled"
);
NtSetValueKey
(
portKey
,
&
nameW
,
0
,
REG_DWORD
,
(
BYTE
*
)
&
value
,
sizeof
(
DWORD
));
...
...
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