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
76d92298
Commit
76d92298
authored
May 16, 2023
by
Eric Pouech
Committed by
Alexandre Julliard
Jun 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp/tests: Fix process kind detection on old Windows machines.
Signed-off-by:
Eric Pouech
<
epouech@codeweavers.com
>
parent
b337c5b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
dbghelp.c
dlls/dbghelp/tests/dbghelp.c
+6
-4
No files found.
dlls/dbghelp/tests/dbghelp.c
View file @
76d92298
...
...
@@ -571,12 +571,14 @@ static enum process_kind get_process_kind_internal(HANDLE process)
{
USHORT
m1
,
m2
;
if
(
!
pIsWow64Process2
)
if
(
!
pIsWow64Process2
)
/* only happens on old Win 8 and early win 1064v1507 */
{
BOOL
is_wow64
;
return
is_win64
?
PCSKIND_64BIT
:
IsWow64Process
(
process
,
&
is_wow64
)
&&
is_wow64
?
PCSKIND_WOW64
:
PCSKIND_32BIT
;
if
(
!
strcmp
(
winetest_platform
,
"wine"
)
||
!
IsWow64Process
(
process
,
&
is_wow64
))
return
PCSKIND_ERROR
;
if
(
is_wow64
)
return
PCSKIND_WOW64
;
return
is_win64
?
PCSKIND_64BIT
:
PCSKIND_32BIT
;
}
if
(
!
pIsWow64Process2
(
process
,
&
m1
,
&
m2
))
return
PCSKIND_ERROR
;
if
(
m1
==
IMAGE_FILE_MACHINE_UNKNOWN
&&
get_machine_bitness
(
m2
)
==
32
)
return
PCSKIND_32BIT
;
...
...
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