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
425ac1ec
Commit
425ac1ec
authored
May 25, 2002
by
Eric Pouech
Committed by
Alexandre Julliard
May 25, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed wine exec file location after startup modifications.
parent
e6b031bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
18 deletions
+11
-18
winedbg.c
debugger/winedbg.c
+11
-18
No files found.
debugger/winedbg.c
View file @
425ac1ec
...
...
@@ -715,27 +715,20 @@ static void DEBUG_HandleDebugEvent(DEBUG_EVENT* de)
DEBUG_InitCurrProcess
();
DEBUG_InitCurrThread
();
/* module is either PE, NE or ELF module (for WineLib), but all
* are loaded with wine, so load its symbols, then the main module
*/
do
{
char
*
ptr
=
getenv
(
"WINELOADER"
);
if
(
!
ptr
||
DEBUG_ReadExecutableDbgInfo
(
ptr
)
==
DIL_ERROR
)
DEBUG_ReadExecutableDbgInfo
(
"wine"
);
}
while
(
0
);
DEBUG_LoadModule32
(
DEBUG_CurrProcess
->
imageName
,
de
->
u
.
CreateProcessInfo
.
hFile
,
(
DWORD
)
de
->
u
.
CreateProcessInfo
.
lpBaseOfImage
);
if
(
buffer
[
0
])
/* we got a process name */
{
DWORD
type
;
if
(
!
GetBinaryTypeA
(
buffer
,
&
type
))
{
/* not a Windows binary, assume it's a Unix executable then */
char
unixname
[
MAX_PATH
];
/* HACK!! should fix DEBUG_ReadExecutableDbgInfo to accept DOS filenames */
if
(
wine_get_unix_file_name
(
buffer
,
unixname
,
sizeof
(
unixname
)
))
{
DEBUG_ReadExecutableDbgInfo
(
unixname
);
break
;
}
}
}
/* if it is a Windows binary, or an invalid or missing file name,
* we use wine itself as the main executable */
DEBUG_ReadExecutableDbgInfo
(
"wine"
);
break
;
case
EXIT_THREAD_DEBUG_EVENT
:
...
...
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