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
82b26c50
Commit
82b26c50
authored
Feb 16, 2023
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp/tests: Test return value of SymLoadModule.
It's supposed to be the base address of the module. Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
adbbe259
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
dbghelp.c
dlls/dbghelp/tests/dbghelp.c
+5
-4
No files found.
dlls/dbghelp/tests/dbghelp.c
View file @
82b26c50
...
...
@@ -241,6 +241,7 @@ static void test_modules(void)
BOOL
ret
;
char
file_system
[
MAX_PATH
];
char
file_wow64
[
MAX_PATH
];
DWORD64
base
;
const
DWORD64
base1
=
0x00010000
;
const
DWORD64
base2
=
0x08010000
;
IMAGEHLP_MODULEW64
im
;
...
...
@@ -261,8 +262,8 @@ static void test_modules(void)
machine_wow
=
get_module_machine
(
file_wow64
);
if
(
machine_wow
!=
IMAGE_FILE_MACHINE_UNKNOWN
)
{
ret
=
SymLoadModule
(
GetCurrentProcess
(),
NULL
,
file_wow64
,
NULL
,
base2
,
0
);
ok
(
ret
,
"SymLoadModule failed: %lu
\n
"
,
GetLastError
());
base
=
SymLoadModule
(
GetCurrentProcess
(),
NULL
,
file_wow64
,
NULL
,
base2
,
0
);
ok
(
base
==
base2
,
"SymLoadModule failed: %lu
\n
"
,
GetLastError
());
ret
=
SymGetModuleInfoW64
(
GetCurrentProcess
(),
base2
,
&
im
);
if
(
!
ret
&&
skip_too_old_dbghelp
(
GetCurrentProcess
(),
base2
))
return
;
ok
(
ret
,
"SymGetModuleInfoW64 failed: %lu
\n
"
,
GetLastError
());
...
...
@@ -273,8 +274,8 @@ static void test_modules(void)
GetSystemDirectoryA
(
file_system
,
MAX_PATH
);
strcat
(
file_system
,
"
\\
notepad.exe"
);
ret
=
SymLoadModule
(
GetCurrentProcess
(),
NULL
,
file_system
,
NULL
,
base1
,
0
);
ok
(
ret
,
"SymLoadModule failed: %lu
\n
"
,
GetLastError
());
base
=
SymLoadModule
(
GetCurrentProcess
(),
NULL
,
file_system
,
NULL
,
base1
,
0
);
ok
(
base
==
base1
,
"SymLoadModule failed: %lu
\n
"
,
GetLastError
());
ret
=
SymGetModuleInfoW64
(
GetCurrentProcess
(),
base1
,
&
im
);
if
(
!
ret
&&
skip_too_old_dbghelp
(
GetCurrentProcess
(),
base1
))
return
;
ok
(
ret
,
"SymGetModuleInfoW64 failed: %lu
\n
"
,
GetLastError
());
...
...
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