Commit f2f3de20 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

ntdll: Initialize the APC call union to suppress valgrind warnings. Take 2.

parent 8d5f94b1
...@@ -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;
......
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment