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
eede817d
Commit
eede817d
authored
Jul 11, 2003
by
Paul Rupe
Committed by
Alexandre Julliard
Jul 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
register_new_async sets status already. Do not overwrite it with the
function's return value.
parent
8219eb69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
file.c
dlls/ntdll/file.c
+8
-12
No files found.
dlls/ntdll/file.c
View file @
eede817d
...
...
@@ -375,6 +375,7 @@ NTSTATUS WINAPI NtReadFile(HANDLE hFile, HANDLE hEvent,
if
(
flags
&
(
FD_FLAG_OVERLAPPED
|
FD_FLAG_TIMEOUT
))
{
async_fileio
*
ovp
;
NTSTATUS
ret
;
if
(
unix_handle
<
0
)
return
STATUS_INVALID_HANDLE
;
...
...
@@ -397,12 +398,9 @@ NTSTATUS WINAPI NtReadFile(HANDLE hFile, HANDLE hEvent,
ovp
->
fd_type
=
type
;
io_status
->
Information
=
0
;
io_status
->
u
.
Status
=
register_new_async
(
&
ovp
->
async
);
if
(
io_status
->
u
.
Status
==
STATUS_PENDING
&&
hEvent
)
{
finish_async
(
&
ovp
->
async
);
close
(
unix_handle
);
}
ret
=
register_new_async
(
&
ovp
->
async
);
if
(
ret
!=
STATUS_SUCCESS
)
return
ret
;
return
io_status
->
u
.
Status
;
}
switch
(
type
)
...
...
@@ -531,6 +529,7 @@ NTSTATUS WINAPI NtWriteFile(HANDLE hFile, HANDLE hEvent,
if
(
flags
&
(
FD_FLAG_OVERLAPPED
|
FD_FLAG_TIMEOUT
))
{
async_fileio
*
ovp
;
NTSTATUS
ret
;
if
(
unix_handle
<
0
)
return
STATUS_INVALID_HANDLE
;
...
...
@@ -553,12 +552,9 @@ NTSTATUS WINAPI NtWriteFile(HANDLE hFile, HANDLE hEvent,
ovp
->
fd_type
=
type
;
io_status
->
Information
=
0
;
io_status
->
u
.
Status
=
register_new_async
(
&
ovp
->
async
);
if
(
io_status
->
u
.
Status
==
STATUS_PENDING
&&
hEvent
)
{
finish_async
(
&
ovp
->
async
);
close
(
unix_handle
);
}
ret
=
register_new_async
(
&
ovp
->
async
);
if
(
ret
!=
STATUS_SUCCESS
)
return
ret
;
return
io_status
->
u
.
Status
;
}
switch
(
type
)
...
...
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