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
a0eb2ed4
Commit
a0eb2ed4
authored
Aug 17, 2009
by
Michael Karcher
Committed by
Alexandre Julliard
Aug 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Don't report LOAD_DLL debug event for exe module.
parent
9d6d3b3b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
process.c
dlls/kernel32/tests/process.c
+9
-0
debugger.c
server/debugger.c
+1
-1
No files found.
dlls/kernel32/tests/process.c
View file @
a0eb2ed4
...
...
@@ -1241,6 +1241,7 @@ static void test_SuspendFlag(void)
static
void
test_DebuggingFlag
(
void
)
{
char
buffer
[
MAX_PATH
];
void
*
processbase
=
NULL
;
PROCESS_INFORMATION
info
;
STARTUPINFOA
startup
,
us
;
DEBUG_EVENT
de
;
...
...
@@ -1261,7 +1262,15 @@ static void test_DebuggingFlag(void)
{
ok
(
WaitForDebugEvent
(
&
de
,
INFINITE
),
"reading debug event
\n
"
);
ContinueDebugEvent
(
de
.
dwProcessId
,
de
.
dwThreadId
,
DBG_CONTINUE
);
if
(
!
dbg
)
{
ok
(
de
.
dwDebugEventCode
==
CREATE_PROCESS_DEBUG_EVENT
,
"first event: %d
\n
"
,
de
.
dwDebugEventCode
);
processbase
=
de
.
u
.
CreateProcessInfo
.
lpBaseOfImage
;
}
if
(
de
.
dwDebugEventCode
!=
EXCEPTION_DEBUG_EVENT
)
dbg
++
;
ok
(
de
.
dwDebugEventCode
!=
LOAD_DLL_DEBUG_EVENT
||
de
.
u
.
LoadDll
.
lpBaseOfDll
!=
processbase
,
"got LOAD_DLL for main module
\n
"
);
}
while
(
de
.
dwDebugEventCode
!=
EXIT_PROCESS_DEBUG_EVENT
);
ok
(
dbg
,
"I have seen a debug event
\n
"
);
...
...
server/debugger.c
View file @
a0eb2ed4
...
...
@@ -514,7 +514,7 @@ void generate_startup_debug_events( struct process *process, client_ptr_t entry
/* generate dll events (in loading order, i.e. reverse list order) */
ptr
=
list_tail
(
&
process
->
dlls
);
while
(
ptr
)
while
(
ptr
!=
list_head
(
&
process
->
dlls
)
)
{
struct
process_dll
*
dll
=
LIST_ENTRY
(
ptr
,
struct
process_dll
,
entry
);
generate_debug_event
(
first_thread
,
LOAD_DLL_DEBUG_EVENT
,
dll
);
...
...
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