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
79ac1fa3
Commit
79ac1fa3
authored
Oct 21, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 21, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix debugger tests compilation with __WINESRC__ defined.
parent
fd65dfba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
debugger.c
dlls/kernel32/tests/debugger.c
+10
-10
No files found.
dlls/kernel32/tests/debugger.c
View file @
79ac1fa3
...
...
@@ -113,9 +113,9 @@ static void get_events(const char* name, HANDLE *start_event, HANDLE *done_event
event_name
=
HeapAlloc
(
GetProcessHeap
(),
0
,
6
+
strlen
(
basename
)
+
1
);
sprintf
(
event_name
,
"start_%s"
,
basename
);
*
start_event
=
CreateEvent
(
NULL
,
0
,
0
,
event_name
);
*
start_event
=
CreateEvent
A
(
NULL
,
0
,
0
,
event_name
);
sprintf
(
event_name
,
"done_%s"
,
basename
);
*
done_event
=
CreateEvent
(
NULL
,
0
,
0
,
event_name
);
*
done_event
=
CreateEvent
A
(
NULL
,
0
,
0
,
event_name
);
HeapFree
(
GetProcessHeap
(),
0
,
event_name
);
}
...
...
@@ -429,8 +429,8 @@ static void test_ExitCode(void)
reg_save_value
auto_value
;
reg_save_value
debugger_value
;
GetModuleFileNameA
(
GetModuleHandle
(
NULL
),
test_exe
,
sizeof
(
test_exe
));
if
(
GetFileAttributes
(
test_exe
)
==
INVALID_FILE_ATTRIBUTES
)
GetModuleFileNameA
(
GetModuleHandle
A
(
NULL
),
test_exe
,
sizeof
(
test_exe
));
if
(
GetFileAttributes
A
(
test_exe
)
==
INVALID_FILE_ATTRIBUTES
)
strcat
(
test_exe
,
".so"
);
if
(
GetFileAttributesA
(
test_exe
)
==
INVALID_FILE_ATTRIBUTES
)
{
...
...
@@ -686,7 +686,7 @@ static void doChildren(int argc, char **argv)
p
=
p
?
p
+
1
:
blackbox_file
;
strcpy
(
event_name
,
p
);
strcat
(
event_name
,
"_init"
);
event
=
OpenEvent
(
EVENT_ALL_ACCESS
,
FALSE
,
event_name
);
event
=
OpenEvent
A
(
EVENT_ALL_ACCESS
,
FALSE
,
event_name
);
child_ok
(
event
!=
NULL
,
"OpenEvent failed, last error %d.
\n
"
,
GetLastError
());
SetEvent
(
event
);
CloseHandle
(
event
);
...
...
@@ -695,7 +695,7 @@ static void doChildren(int argc, char **argv)
p
=
p
?
p
+
1
:
blackbox_file
;
strcpy
(
event_name
,
p
);
strcat
(
event_name
,
"_attach"
);
event
=
OpenEvent
(
EVENT_ALL_ACCESS
,
FALSE
,
event_name
);
event
=
OpenEvent
A
(
EVENT_ALL_ACCESS
,
FALSE
,
event_name
);
child_ok
(
event
!=
NULL
,
"OpenEvent failed, last error %d.
\n
"
,
GetLastError
());
WaitForSingleObject
(
event
,
INFINITE
);
CloseHandle
(
event
);
...
...
@@ -747,14 +747,14 @@ static void test_debug_children(char *name, DWORD flag, BOOL debug_child)
p
=
p
?
p
+
1
:
blackbox_file
;
strcpy
(
event_name
,
p
);
strcat
(
event_name
,
"_init"
);
event_init
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
event_name
);
event_init
=
CreateEvent
A
(
NULL
,
FALSE
,
FALSE
,
event_name
);
ok
(
event_init
!=
NULL
,
"OpenEvent failed, last error %d.
\n
"
,
GetLastError
());
p
=
strrchr
(
blackbox_file
,
'\\'
);
p
=
p
?
p
+
1
:
blackbox_file
;
strcpy
(
event_name
,
p
);
strcat
(
event_name
,
"_attach"
);
event_attach
=
CreateEvent
(
NULL
,
FALSE
,
flag
!=
0
,
event_name
);
event_attach
=
CreateEvent
A
(
NULL
,
FALSE
,
flag
!=
0
,
event_name
);
ok
(
event_attach
!=
NULL
,
"CreateEvent failed, last error %d.
\n
"
,
GetLastError
());
memset
(
&
si
,
0
,
sizeof
(
si
));
...
...
@@ -814,12 +814,12 @@ START_TEST(debugger)
{
HMODULE
hdll
;
hdll
=
GetModuleHandle
(
"kernel32.dll"
);
hdll
=
GetModuleHandle
A
(
"kernel32.dll"
);
pCheckRemoteDebuggerPresent
=
(
void
*
)
GetProcAddress
(
hdll
,
"CheckRemoteDebuggerPresent"
);
pDebugActiveProcessStop
=
(
void
*
)
GetProcAddress
(
hdll
,
"DebugActiveProcessStop"
);
pDebugSetProcessKillOnExit
=
(
void
*
)
GetProcAddress
(
hdll
,
"DebugSetProcessKillOnExit"
);
pIsDebuggerPresent
=
(
void
*
)
GetProcAddress
(
hdll
,
"IsDebuggerPresent"
);
hdll
=
GetModuleHandle
(
"ntdll.dll"
);
hdll
=
GetModuleHandle
A
(
"ntdll.dll"
);
if
(
hdll
)
pNtCurrentTeb
=
(
void
*
)
GetProcAddress
(
hdll
,
"NtCurrentTeb"
);
myARGC
=
winetest_get_mainargs
(
&
myARGV
);
...
...
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