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
1146e251
Commit
1146e251
authored
Mar 03, 2015
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Avoid the intermediate user APC callback.
parent
0a241b0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
36 deletions
+12
-36
file.c
dlls/ntdll/file.c
+12
-36
No files found.
dlls/ntdll/file.c
View file @
1146e251
...
...
@@ -388,14 +388,6 @@ static struct async_fileio *alloc_fileio( DWORD size, HANDLE handle, PIO_APC_ROU
return
io
;
}
/* callback for file I/O user APC */
static
void
WINAPI
fileio_apc
(
void
*
arg
,
IO_STATUS_BLOCK
*
io
,
ULONG
reserved
)
{
struct
async_fileio
*
async
=
arg
;
if
(
async
->
apc
)
async
->
apc
(
async
->
apc_arg
,
io
,
reserved
);
release_fileio
(
async
);
}
/***********************************************************************
* FILE_GetNtStatus(void)
*
...
...
@@ -501,13 +493,9 @@ static NTSTATUS FILE_AsyncReadService( void *user, IO_STATUS_BLOCK *iosb,
{
iosb
->
u
.
Status
=
status
;
iosb
->
Information
=
fileio
->
already
;
if
(
fileio
->
io
.
apc
)
{
*
apc
=
fileio_apc
;
*
arg
=
&
fileio
->
io
;
}
else
release_fileio
(
&
fileio
->
io
);
*
apc
=
fileio
->
io
.
apc
;
*
arg
=
fileio
->
io
.
apc_arg
;
release_fileio
(
&
fileio
->
io
);
}
return
status
;
}
...
...
@@ -1003,13 +991,9 @@ static NTSTATUS FILE_AsyncWriteService( void *user, IO_STATUS_BLOCK *iosb,
{
iosb
->
u
.
Status
=
status
;
iosb
->
Information
=
fileio
->
already
;
if
(
fileio
->
io
.
apc
)
{
*
apc
=
fileio_apc
;
*
arg
=
&
fileio
->
io
;
}
else
release_fileio
(
&
fileio
->
io
);
*
apc
=
fileio
->
io
.
apc
;
*
arg
=
fileio
->
io
.
apc_arg
;
release_fileio
(
&
fileio
->
io
);
}
return
status
;
}
...
...
@@ -1398,13 +1382,9 @@ static NTSTATUS ioctl_completion( void *user, IO_STATUS_BLOCK *io,
if
(
status
!=
STATUS_PENDING
)
{
io
->
u
.
Status
=
status
;
if
(
async
->
io
.
apc
)
{
*
apc
=
fileio_apc
;
*
arg
=
&
async
->
io
;
}
else
release_fileio
(
&
async
->
io
);
*
apc
=
async
->
io
.
apc
;
*
arg
=
async
->
io
.
apc_arg
;
release_fileio
(
&
async
->
io
);
}
return
status
;
}
...
...
@@ -1788,13 +1768,9 @@ static NTSTATUS read_changes_apc( void *user, IO_STATUS_BLOCK *iosb,
iosb
->
u
.
Status
=
ret
;
iosb
->
Information
=
size
;
if
(
fileio
->
io
.
apc
)
{
*
apc
=
fileio_apc
;
*
arg
=
&
fileio
->
io
;
}
else
release_fileio
(
&
fileio
->
io
);
*
apc
=
fileio
->
io
.
apc
;
*
arg
=
fileio
->
io
.
apc_arg
;
release_fileio
(
&
fileio
->
io
);
return
ret
;
}
...
...
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