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
ed016f9b
Commit
ed016f9b
authored
Mar 21, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Move the signalling of the completion event for NtRead/WriteFile to the server.
parent
8adce776
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
file.c
dlls/ntdll/file.c
+1
-4
No files found.
dlls/ntdll/file.c
View file @
ed016f9b
...
...
@@ -299,8 +299,6 @@ static void fileio_terminate(async_fileio *fileio, IO_STATUS_BLOCK* iosb)
{
TRACE
(
"data: %p
\n
"
,
fileio
);
if
(
fileio
->
event
)
NtSetEvent
(
fileio
->
event
,
NULL
);
if
(
fileio
->
apc
&&
(
iosb
->
u
.
Status
==
STATUS_SUCCESS
||
fileio
->
queue_apc_on_error
))
fileio
->
apc
(
fileio
->
apc_user
,
iosb
,
iosb
->
Information
);
...
...
@@ -321,6 +319,7 @@ static ULONG fileio_queue_async(async_fileio* fileio, IO_STATUS_BLOCK* iosb,
req
->
async
.
callback
=
apc
;
req
->
async
.
iosb
=
iosb
;
req
->
async
.
arg
=
fileio
;
req
->
async
.
event
=
fileio
->
event
;
req
->
type
=
do_read
?
ASYNC_TYPE_READ
:
ASYNC_TYPE_WRITE
;
req
->
count
=
(
fileio
->
count
<
iosb
->
Information
)
?
0
:
fileio
->
count
-
iosb
->
Information
;
...
...
@@ -573,7 +572,6 @@ NTSTATUS WINAPI NtReadFile(HANDLE hFile, HANDLE hEvent,
fileio
->
queue_apc_on_error
=
0
;
fileio
->
avail_mode
=
(
flags
&
FD_FLAG_AVAILABLE
);
fileio
->
event
=
hEvent
;
if
(
hEvent
)
NtResetEvent
(
hEvent
,
NULL
);
if
(
needs_close
)
close
(
unix_handle
);
io_status
->
u
.
Status
=
STATUS_PENDING
;
...
...
@@ -804,7 +802,6 @@ NTSTATUS WINAPI NtWriteFile(HANDLE hFile, HANDLE hEvent,
fileio
->
queue_apc_on_error
=
0
;
fileio
->
avail_mode
=
(
flags
&
FD_FLAG_AVAILABLE
);
fileio
->
event
=
hEvent
;
if
(
hEvent
)
NtResetEvent
(
hEvent
,
NULL
);
if
(
needs_close
)
close
(
unix_handle
);
io_status
->
Information
=
0
;
...
...
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