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
f2f3de20
Commit
f2f3de20
authored
Dec 11, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 11, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Initialize the APC call union to suppress valgrind warnings. Take 2.
parent
8d5f94b1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
thread.c
dlls/ntdll/thread.c
+2
-0
virtual.c
dlls/ntdll/virtual.c
+18
-0
No files found.
dlls/ntdll/thread.c
View file @
f2f3de20
...
@@ -508,6 +508,8 @@ NTSTATUS WINAPI RtlCreateUserThread( HANDLE process, const SECURITY_DESCRIPTOR *
...
@@ -508,6 +508,8 @@ NTSTATUS WINAPI RtlCreateUserThread( HANDLE process, const SECURITY_DESCRIPTOR *
apc_call_t
call
;
apc_call_t
call
;
apc_result_t
result
;
apc_result_t
result
;
memset
(
&
call
,
0
,
sizeof
(
call
)
);
call
.
create_thread
.
type
=
APC_CREATE_THREAD
;
call
.
create_thread
.
type
=
APC_CREATE_THREAD
;
call
.
create_thread
.
func
=
start
;
call
.
create_thread
.
func
=
start
;
call
.
create_thread
.
arg
=
param
;
call
.
create_thread
.
arg
=
param
;
...
...
dlls/ntdll/virtual.c
View file @
f2f3de20
...
@@ -1363,6 +1363,8 @@ NTSTATUS WINAPI NtAllocateVirtualMemory( HANDLE process, PVOID *ret, ULONG zero_
...
@@ -1363,6 +1363,8 @@ NTSTATUS WINAPI NtAllocateVirtualMemory( HANDLE process, PVOID *ret, ULONG zero_
apc_call_t
call
;
apc_call_t
call
;
apc_result_t
result
;
apc_result_t
result
;
memset
(
&
call
,
0
,
sizeof
(
call
)
);
call
.
virtual_alloc
.
type
=
APC_VIRTUAL_ALLOC
;
call
.
virtual_alloc
.
type
=
APC_VIRTUAL_ALLOC
;
call
.
virtual_alloc
.
addr
=
*
ret
;
call
.
virtual_alloc
.
addr
=
*
ret
;
call
.
virtual_alloc
.
size
=
*
size_ptr
;
call
.
virtual_alloc
.
size
=
*
size_ptr
;
...
@@ -1484,6 +1486,8 @@ NTSTATUS WINAPI NtFreeVirtualMemory( HANDLE process, PVOID *addr_ptr, SIZE_T *si
...
@@ -1484,6 +1486,8 @@ NTSTATUS WINAPI NtFreeVirtualMemory( HANDLE process, PVOID *addr_ptr, SIZE_T *si
apc_call_t
call
;
apc_call_t
call
;
apc_result_t
result
;
apc_result_t
result
;
memset
(
&
call
,
0
,
sizeof
(
call
)
);
call
.
virtual_free
.
type
=
APC_VIRTUAL_FREE
;
call
.
virtual_free
.
type
=
APC_VIRTUAL_FREE
;
call
.
virtual_free
.
addr
=
addr
;
call
.
virtual_free
.
addr
=
addr
;
call
.
virtual_free
.
size
=
size
;
call
.
virtual_free
.
size
=
size
;
...
@@ -1580,6 +1584,8 @@ NTSTATUS WINAPI NtProtectVirtualMemory( HANDLE process, PVOID *addr_ptr, SIZE_T
...
@@ -1580,6 +1584,8 @@ NTSTATUS WINAPI NtProtectVirtualMemory( HANDLE process, PVOID *addr_ptr, SIZE_T
apc_call_t
call
;
apc_call_t
call
;
apc_result_t
result
;
apc_result_t
result
;
memset
(
&
call
,
0
,
sizeof
(
call
)
);
call
.
virtual_protect
.
type
=
APC_VIRTUAL_PROTECT
;
call
.
virtual_protect
.
type
=
APC_VIRTUAL_PROTECT
;
call
.
virtual_protect
.
addr
=
addr
;
call
.
virtual_protect
.
addr
=
addr
;
call
.
virtual_protect
.
size
=
size
;
call
.
virtual_protect
.
size
=
size
;
...
@@ -1681,6 +1687,8 @@ NTSTATUS WINAPI NtQueryVirtualMemory( HANDLE process, LPCVOID addr,
...
@@ -1681,6 +1687,8 @@ NTSTATUS WINAPI NtQueryVirtualMemory( HANDLE process, LPCVOID addr,
apc_call_t
call
;
apc_call_t
call
;
apc_result_t
result
;
apc_result_t
result
;
memset
(
&
call
,
0
,
sizeof
(
call
)
);
call
.
virtual_query
.
type
=
APC_VIRTUAL_QUERY
;
call
.
virtual_query
.
type
=
APC_VIRTUAL_QUERY
;
call
.
virtual_query
.
addr
=
addr
;
call
.
virtual_query
.
addr
=
addr
;
status
=
NTDLL_queue_process_apc
(
process
,
&
call
,
&
result
);
status
=
NTDLL_queue_process_apc
(
process
,
&
call
,
&
result
);
...
@@ -1787,6 +1795,8 @@ NTSTATUS WINAPI NtLockVirtualMemory( HANDLE process, PVOID *addr, SIZE_T *size,
...
@@ -1787,6 +1795,8 @@ NTSTATUS WINAPI NtLockVirtualMemory( HANDLE process, PVOID *addr, SIZE_T *size,
apc_call_t
call
;
apc_call_t
call
;
apc_result_t
result
;
apc_result_t
result
;
memset
(
&
call
,
0
,
sizeof
(
call
)
);
call
.
virtual_lock
.
type
=
APC_VIRTUAL_LOCK
;
call
.
virtual_lock
.
type
=
APC_VIRTUAL_LOCK
;
call
.
virtual_lock
.
addr
=
*
addr
;
call
.
virtual_lock
.
addr
=
*
addr
;
call
.
virtual_lock
.
size
=
*
size
;
call
.
virtual_lock
.
size
=
*
size
;
...
@@ -1822,6 +1832,8 @@ NTSTATUS WINAPI NtUnlockVirtualMemory( HANDLE process, PVOID *addr, SIZE_T *size
...
@@ -1822,6 +1832,8 @@ NTSTATUS WINAPI NtUnlockVirtualMemory( HANDLE process, PVOID *addr, SIZE_T *size
apc_call_t
call
;
apc_call_t
call
;
apc_result_t
result
;
apc_result_t
result
;
memset
(
&
call
,
0
,
sizeof
(
call
)
);
call
.
virtual_unlock
.
type
=
APC_VIRTUAL_UNLOCK
;
call
.
virtual_unlock
.
type
=
APC_VIRTUAL_UNLOCK
;
call
.
virtual_unlock
.
addr
=
*
addr
;
call
.
virtual_unlock
.
addr
=
*
addr
;
call
.
virtual_unlock
.
size
=
*
size
;
call
.
virtual_unlock
.
size
=
*
size
;
...
@@ -1963,6 +1975,8 @@ NTSTATUS WINAPI NtMapViewOfSection( HANDLE handle, HANDLE process, PVOID *addr_p
...
@@ -1963,6 +1975,8 @@ NTSTATUS WINAPI NtMapViewOfSection( HANDLE handle, HANDLE process, PVOID *addr_p
apc_call_t
call
;
apc_call_t
call
;
apc_result_t
result
;
apc_result_t
result
;
memset
(
&
call
,
0
,
sizeof
(
call
)
);
call
.
map_view
.
type
=
APC_MAP_VIEW
;
call
.
map_view
.
type
=
APC_MAP_VIEW
;
call
.
map_view
.
handle
=
handle
;
call
.
map_view
.
handle
=
handle
;
call
.
map_view
.
addr
=
*
addr_ptr
;
call
.
map_view
.
addr
=
*
addr_ptr
;
...
@@ -2122,6 +2136,8 @@ NTSTATUS WINAPI NtUnmapViewOfSection( HANDLE process, PVOID addr )
...
@@ -2122,6 +2136,8 @@ NTSTATUS WINAPI NtUnmapViewOfSection( HANDLE process, PVOID addr )
apc_call_t
call
;
apc_call_t
call
;
apc_result_t
result
;
apc_result_t
result
;
memset
(
&
call
,
0
,
sizeof
(
call
)
);
call
.
unmap_view
.
type
=
APC_UNMAP_VIEW
;
call
.
unmap_view
.
type
=
APC_UNMAP_VIEW
;
call
.
unmap_view
.
addr
=
addr
;
call
.
unmap_view
.
addr
=
addr
;
status
=
NTDLL_queue_process_apc
(
process
,
&
call
,
&
result
);
status
=
NTDLL_queue_process_apc
(
process
,
&
call
,
&
result
);
...
@@ -2157,6 +2173,8 @@ NTSTATUS WINAPI NtFlushVirtualMemory( HANDLE process, LPCVOID *addr_ptr,
...
@@ -2157,6 +2173,8 @@ NTSTATUS WINAPI NtFlushVirtualMemory( HANDLE process, LPCVOID *addr_ptr,
apc_call_t
call
;
apc_call_t
call
;
apc_result_t
result
;
apc_result_t
result
;
memset
(
&
call
,
0
,
sizeof
(
call
)
);
call
.
virtual_flush
.
type
=
APC_VIRTUAL_FLUSH
;
call
.
virtual_flush
.
type
=
APC_VIRTUAL_FLUSH
;
call
.
virtual_flush
.
addr
=
addr
;
call
.
virtual_flush
.
addr
=
addr
;
call
.
virtual_flush
.
size
=
*
size_ptr
;
call
.
virtual_flush
.
size
=
*
size_ptr
;
...
...
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