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
836ec1d7
Commit
836ec1d7
authored
Jun 17, 2021
by
Gijs Vermeulen
Committed by
Alexandre Julliard
Jun 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Avoid declaration-after-statement warning.
Signed-off-by:
Gijs Vermeulen
<
gijsvrm@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0ca8b6dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
process.c
dlls/ntdll/unix/process.c
+2
-1
No files found.
dlls/ntdll/unix/process.c
View file @
836ec1d7
...
@@ -894,10 +894,11 @@ void fill_vm_counters( VM_COUNTERS_EX *pvmi, int unix_pid )
...
@@ -894,10 +894,11 @@ void fill_vm_counters( VM_COUNTERS_EX *pvmi, int unix_pid )
{
{
#if defined(MACH_TASK_BASIC_INFO)
#if defined(MACH_TASK_BASIC_INFO)
struct
mach_task_basic_info
info
;
struct
mach_task_basic_info
info
;
mach_msg_type_number_t
infoCount
;
if
(
unix_pid
!=
-
1
)
return
;
/* FIXME: Retrieve information for other processes. */
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
)
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
;
pvmi
->
VirtualSize
=
info
.
resident_size
+
info
.
virtual_size
;
...
...
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