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
9896f1ce
Commit
9896f1ce
authored
Apr 06, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Fix GCC warnings in macho_module.c.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
26f5bfdd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
image_private.h
dlls/dbghelp/image_private.h
+1
-1
macho_module.c
dlls/dbghelp/macho_module.c
+3
-2
No files found.
dlls/dbghelp/image_private.h
View file @
9896f1ce
...
...
@@ -130,7 +130,7 @@ struct image_file_map
struct
image_file_map
*
dsym
;
/* the debug symbols file associated with this one */
size_t
header_size
;
/* size of real header in file */
size_t
commands_size
;
size_t
commands_count
;
unsigned
int
commands_count
;
const
struct
macho_load_command
*
load_commands
;
const
struct
macho_uuid_command
*
uuid
;
...
...
dlls/dbghelp/macho_module.c
View file @
9896f1ce
...
...
@@ -566,7 +566,7 @@ static int macho_enum_load_commands(struct image_file_map *ifm, unsigned cmd,
if
((
lc
=
macho_map_load_commands
(
fmap
))
==
IMAGE_NO_MAP
)
return
-
1
;
TRACE
(
"%
l
u total commands
\n
"
,
fmap
->
commands_count
);
TRACE
(
"%u total commands
\n
"
,
fmap
->
commands_count
);
for
(
i
=
0
;
i
<
fmap
->
commands_count
;
i
++
,
lc
=
macho_next_load_command
(
lc
))
{
...
...
@@ -1639,7 +1639,7 @@ static BOOL macho_enum_modules_internal(const struct process* pcs,
}
if
(
!
image_infos
.
infos64
.
infoArray
)
goto
done
;
TRACE
(
"Process has %u image infos at %
p
\n
"
,
image_infos
.
infos64
.
infoArrayCount
,
(
void
*
)
image_infos
.
infos64
.
infoArray
);
TRACE
(
"Process has %u image infos at %
s
\n
"
,
image_infos
.
infos64
.
infoArrayCount
,
wine_dbgstr_longlong
(
image_infos
.
infos64
.
infoArray
)
);
if
(
pcs
->
is_64bit
)
len
=
sizeof
(
info_array
->
info64
);
...
...
@@ -1751,6 +1751,7 @@ static BOOL macho_enum_modules(struct process* process, enum_modules_cb cb, void
TRACE
(
"(%p, %p, %p)
\n
"
,
process
->
handle
,
cb
,
user
);
macho_info
.
flags
=
MACHO_INFO_NAME
;
macho_info
.
module_name
=
NULL
;
ret
=
macho_enum_modules_internal
(
process
,
macho_info
.
module_name
,
cb
,
user
);
HeapFree
(
GetProcessHeap
(),
0
,
(
char
*
)
macho_info
.
module_name
);
return
ret
;
...
...
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