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
16a2ea5c
Commit
16a2ea5c
authored
Jan 28, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Use wine64 as loader name on 64-bit.
parent
3bae7d03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
5 deletions
+21
-5
module.c
dlls/dbghelp/module.c
+21
-5
No files found.
dlls/dbghelp/module.c
View file @
16a2ea5c
...
@@ -108,23 +108,39 @@ void module_set_module(struct module* module, const WCHAR* name)
...
@@ -108,23 +108,39 @@ void module_set_module(struct module* module, const WCHAR* name)
const
WCHAR
*
get_wine_loader_name
(
void
)
const
WCHAR
*
get_wine_loader_name
(
void
)
{
{
static
const
int
is_win64
=
sizeof
(
void
*
)
>
sizeof
(
int
);
/* FIXME: should depend on target process */
static
const
WCHAR
wineW
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
0
};
static
const
WCHAR
wineW
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
0
};
static
const
WCHAR
suffixW
[]
=
{
'6'
,
'4'
,
0
};
static
const
WCHAR
*
loader
;
static
const
WCHAR
*
loader
;
const
char
*
ptr
;
if
(
!
loader
)
if
(
!
loader
)
{
{
WCHAR
*
p
,
*
buffer
;
const
char
*
ptr
;
/* All binaries are loaded with WINELOADER (if run from tree) or by the
/* All binaries are loaded with WINELOADER (if run from tree) or by the
* main executable
* main executable
*/
*/
if
((
ptr
=
getenv
(
"WINELOADER"
)))
if
((
ptr
=
getenv
(
"WINELOADER"
)))
{
{
DWORD
len
=
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
ptr
,
-
1
,
NULL
,
0
);
DWORD
len
=
2
+
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
ptr
,
-
1
,
NULL
,
0
);
WCHAR
*
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
);
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
ptr
,
-
1
,
buffer
,
len
);
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
ptr
,
-
1
,
buffer
,
len
);
loader
=
buffer
;
}
}
else
loader
=
wineW
;
else
{
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
wineW
)
+
2
*
sizeof
(
WCHAR
)
);
strcpyW
(
buffer
,
wineW
);
}
p
=
buffer
+
strlenW
(
buffer
)
-
strlenW
(
suffixW
);
if
(
p
>
buffer
&&
!
strcmpW
(
p
,
suffixW
))
{
if
(
!
is_win64
)
*
p
=
0
;
}
else
if
(
is_win64
)
strcatW
(
buffer
,
suffixW
);
TRACE
(
"returning %s
\n
"
,
debugstr_w
(
buffer
)
);
loader
=
buffer
;
}
}
return
loader
;
return
loader
;
}
}
...
...
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