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
1d281c62
Commit
1d281c62
authored
Jun 26, 2023
by
Eric Pouech
Committed by
Alexandre Julliard
Jun 26, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp/tests: Don't call SymSetExtendedOption() directly.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55128
Signed-off-by:
Eric Pouech
<
epouech@codeweavers.com
>
parent
a312a8e2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
dbghelp.c
dlls/dbghelp/tests/dbghelp.c
+8
-1
No files found.
dlls/dbghelp/tests/dbghelp.c
View file @
1d281c62
...
...
@@ -318,10 +318,17 @@ static unsigned get_module_count(HANDLE proc)
static
unsigned
get_native_module_count
(
HANDLE
proc
)
{
static
BOOL
(
*
WINAPI
pSymSetExtendedOption
)(
IMAGEHLP_EXTENDED_OPTIONS
option
,
BOOL
value
);
unsigned
count
=
0
;
BOOL
old
,
ret
;
old
=
SymSetExtendedOption
(
SYMOPT_EX_WINE_NATIVE_MODULES
,
TRUE
);
if
(
!
pSymSetExtendedOption
)
{
pSymSetExtendedOption
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"dbghelp.dll"
),
"SymSetExtendedOption"
);
ok
(
pSymSetExtendedOption
!=
NULL
,
"SymSetExtendedOption should be present on Wine
\n
"
);
}
old
=
pSymSetExtendedOption
(
SYMOPT_EX_WINE_NATIVE_MODULES
,
TRUE
);
ret
=
SymEnumerateModules64
(
proc
,
count_native_module_cb
,
&
count
);
ok
(
ret
,
"SymEnumerateModules64 failed: %lu
\n
"
,
GetLastError
());
SymSetExtendedOption
(
SYMOPT_EX_WINE_NATIVE_MODULES
,
old
);
...
...
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