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
aabb4e12
Commit
aabb4e12
authored
Mar 08, 2023
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Use 'wine' as loader on multi-arch configuration.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
e1f41c0a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
module.c
dlls/dbghelp/module.c
+8
-3
No files found.
dlls/dbghelp/module.c
View file @
aabb4e12
...
...
@@ -134,7 +134,7 @@ WCHAR *get_wine_loader_name(struct process *pcs)
unsigned
len
;
name
=
process_getenv
(
pcs
,
L"WINELOADER"
);
if
(
!
name
)
name
=
pcs
->
is_64bit
?
L"wine64"
:
L"wine"
;
if
(
!
name
)
name
=
pcs
->
is_
system_
64bit
?
L"wine64"
:
L"wine"
;
len
=
lstrlenW
(
name
);
/* WINELOADER isn't properly updated in Wow64 process calling inside Windows env block
...
...
@@ -145,9 +145,14 @@ WCHAR *get_wine_loader_name(struct process *pcs)
if
(
altname
)
{
memcpy
(
altname
,
name
,
len
*
sizeof
(
WCHAR
));
if
(
pcs
->
is_64bit
&&
len
>=
2
&&
memcmp
(
name
+
len
-
2
,
L"64"
,
2
*
sizeof
(
WCHAR
))
!=
0
)
if
(
pcs
->
is_system_64bit
&&
len
>=
2
&&
memcmp
(
name
+
len
-
2
,
L"64"
,
2
*
sizeof
(
WCHAR
))
!=
0
)
{
lstrcpyW
(
altname
+
len
,
L"64"
);
else
if
(
!
pcs
->
is_64bit
&&
len
>=
2
&&
!
memcmp
(
name
+
len
-
2
,
L"64"
,
2
*
sizeof
(
WCHAR
)))
/* in multi-arch wow configuration, wine64 doesn't exist */
if
(
GetFileAttributesW
(
altname
)
==
INVALID_FILE_ATTRIBUTES
)
altname
[
len
]
=
L'\0'
;
}
else
if
(
!
pcs
->
is_system_64bit
&&
len
>=
2
&&
!
memcmp
(
name
+
len
-
2
,
L"64"
,
2
*
sizeof
(
WCHAR
)))
altname
[
len
-
2
]
=
'\0'
;
else
altname
[
len
]
=
'\0'
;
...
...
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