ntdll: Avoid declaration-after-statement warning.
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 836ec1d7ed
)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
parent
dd412ae81c
commit
08a3472c54
|
@ -1108,10 +1108,11 @@ void fill_vm_counters( VM_COUNTERS_EX *pvmi, int unix_pid )
|
|||
{
|
||||
#if defined(MACH_TASK_BASIC_INFO)
|
||||
struct mach_task_basic_info info;
|
||||
mach_msg_type_number_t infoCount;
|
||||
|
||||
if (unix_pid != -1) return; /* FIXME: Retrieve information for other processes. */
|
||||
|
||||
mach_msg_type_number_t infoCount = MACH_TASK_BASIC_INFO_COUNT;
|
||||
infoCount = MACH_TASK_BASIC_INFO_COUNT;
|
||||
if(task_info(mach_task_self(), MACH_TASK_BASIC_INFO, (task_info_t)&info, &infoCount) == KERN_SUCCESS)
|
||||
{
|
||||
pvmi->VirtualSize = info.resident_size + info.virtual_size;
|
||||
|
|
Loading…
Reference in New Issue