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
f8e9cdca
Commit
f8e9cdca
authored
Apr 10, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 11, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Remove no longer needed APC from async_fileio.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e2469b2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
file.c
dlls/ntdll/file.c
+7
-12
No files found.
dlls/ntdll/file.c
View file @
f8e9cdca
...
...
@@ -353,8 +353,6 @@ struct async_fileio
async_callback_t
*
callback
;
/* must be the first field */
struct
async_fileio
*
next
;
HANDLE
handle
;
PIO_APC_ROUTINE
apc
;
void
*
apc_arg
;
};
struct
async_fileio_read
...
...
@@ -394,8 +392,7 @@ static void release_fileio( struct async_fileio *io )
}
}
static
struct
async_fileio
*
alloc_fileio
(
DWORD
size
,
async_callback_t
callback
,
HANDLE
handle
,
PIO_APC_ROUTINE
apc
,
void
*
arg
)
static
struct
async_fileio
*
alloc_fileio
(
DWORD
size
,
async_callback_t
callback
,
HANDLE
handle
)
{
/* first free remaining previous fileinfos */
...
...
@@ -412,8 +409,6 @@ static struct async_fileio *alloc_fileio( DWORD size, async_callback_t callback,
{
io
->
callback
=
callback
;
io
->
handle
=
handle
;
io
->
apc
=
apc
;
io
->
apc_arg
=
arg
;
}
return
io
;
}
...
...
@@ -570,7 +565,7 @@ static NTSTATUS server_read_file( HANDLE handle, HANDLE event, PIO_APC_ROUTINE a
HANDLE
wait_handle
;
ULONG
options
;
if
(
!
(
async
=
(
struct
async_irp
*
)
alloc_fileio
(
sizeof
(
*
async
),
irp_completion
,
handle
,
apc
,
apc_context
)))
if
(
!
(
async
=
(
struct
async_irp
*
)
alloc_fileio
(
sizeof
(
*
async
),
irp_completion
,
handle
)))
return
STATUS_NO_MEMORY
;
async
->
event
=
event
;
...
...
@@ -611,7 +606,7 @@ static NTSTATUS server_write_file( HANDLE handle, HANDLE event, PIO_APC_ROUTINE
HANDLE
wait_handle
;
ULONG
options
;
if
(
!
(
async
=
(
struct
async_irp
*
)
alloc_fileio
(
sizeof
(
*
async
),
irp_completion
,
handle
,
apc
,
apc_context
)))
if
(
!
(
async
=
(
struct
async_irp
*
)
alloc_fileio
(
sizeof
(
*
async
),
irp_completion
,
handle
)))
return
STATUS_NO_MEMORY
;
async
->
event
=
event
;
...
...
@@ -783,7 +778,7 @@ static NTSTATUS register_async_file_read( HANDLE handle, HANDLE event,
struct
async_fileio_read
*
fileio
;
NTSTATUS
status
;
if
(
!
(
fileio
=
(
struct
async_fileio_read
*
)
alloc_fileio
(
sizeof
(
*
fileio
),
FILE_AsyncReadService
,
handle
,
apc
,
apc_user
)))
if
(
!
(
fileio
=
(
struct
async_fileio_read
*
)
alloc_fileio
(
sizeof
(
*
fileio
),
FILE_AsyncReadService
,
handle
)))
return
STATUS_NO_MEMORY
;
fileio
->
already
=
already
;
...
...
@@ -1337,7 +1332,7 @@ NTSTATUS WINAPI NtWriteFile(HANDLE hFile, HANDLE hEvent,
{
struct
async_fileio_write
*
fileio
;
fileio
=
(
struct
async_fileio_write
*
)
alloc_fileio
(
sizeof
(
*
fileio
),
FILE_AsyncWriteService
,
hFile
,
apc
,
apc_user
);
fileio
=
(
struct
async_fileio_write
*
)
alloc_fileio
(
sizeof
(
*
fileio
),
FILE_AsyncWriteService
,
hFile
);
if
(
!
fileio
)
{
status
=
STATUS_NO_MEMORY
;
...
...
@@ -1525,7 +1520,7 @@ static NTSTATUS server_ioctl_file( HANDLE handle, HANDLE event,
HANDLE
wait_handle
;
ULONG
options
;
if
(
!
(
async
=
(
struct
async_irp
*
)
alloc_fileio
(
sizeof
(
*
async
),
irp_completion
,
handle
,
apc
,
apc_context
)))
if
(
!
(
async
=
(
struct
async_irp
*
)
alloc_fileio
(
sizeof
(
*
async
),
irp_completion
,
handle
)))
return
STATUS_NO_MEMORY
;
async
->
event
=
event
;
async
->
buffer
=
out_buffer
;
...
...
@@ -1938,7 +1933,7 @@ NTSTATUS WINAPI NtNotifyChangeDirectoryFile( HANDLE handle, HANDLE event, PIO_AP
if
(
filter
==
0
||
(
filter
&
~
FILE_NOTIFY_ALL
))
return
STATUS_INVALID_PARAMETER
;
fileio
=
(
struct
read_changes_fileio
*
)
alloc_fileio
(
offsetof
(
struct
read_changes_fileio
,
data
[
size
]),
read_changes_apc
,
handle
,
apc
,
apc_context
);
read_changes_apc
,
handle
);
if
(
!
fileio
)
return
STATUS_NO_MEMORY
;
fileio
->
buffer
=
buffer
;
...
...
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