Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6fd9a98f
Commit
6fd9a98f
authored
Jan 31, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Use correct module name buffer length when doing enumeration.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d9f43904
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
dbghelp_private.h
dlls/dbghelp/dbghelp_private.h
+1
-0
module.c
dlls/dbghelp/module.c
+2
-1
No files found.
dlls/dbghelp/dbghelp_private.h
View file @
6fd9a98f
...
...
@@ -353,6 +353,7 @@ struct module
{
struct
process
*
process
;
IMAGEHLP_MODULEW64
module
;
WCHAR
modulename
[
64
];
/* used for enumeration */
struct
module
*
next
;
enum
module_type
type
:
16
;
unsigned
short
is_virtual
:
1
;
...
...
dlls/dbghelp/module.c
View file @
6fd9a98f
...
...
@@ -102,6 +102,7 @@ void module_set_module(struct module* module, const WCHAR* name)
{
module_fill_module
(
name
,
module
->
module
.
ModuleName
,
sizeof
(
module
->
module
.
ModuleName
)
/
sizeof
(
module
->
module
.
ModuleName
[
0
]));
module_fill_module
(
name
,
module
->
modulename
,
sizeof
(
module
->
modulename
)
/
sizeof
(
module
->
modulename
[
0
]));
}
const
WCHAR
*
get_wine_loader_name
(
void
)
...
...
@@ -812,7 +813,7 @@ BOOL WINAPI SymEnumerateModulesW64(HANDLE hProcess,
if
(
!
(
dbghelp_options
&
SYMOPT_WINE_WITH_NATIVE_MODULES
)
&&
(
module
->
type
==
DMT_ELF
||
module
->
type
==
DMT_MACHO
))
continue
;
if
(
!
EnumModulesCallback
(
module
->
module
.
ModuleN
ame
,
if
(
!
EnumModulesCallback
(
module
->
module
n
ame
,
module
->
module
.
BaseOfImage
,
UserContext
))
break
;
}
...
...
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