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
965d903f
Commit
965d903f
authored
Oct 21, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix toolhelp tests compilation with __WINESRC__ defined.
parent
7e39bfc0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
toolhelp.c
dlls/kernel32/tests/toolhelp.c
+6
-6
No files found.
dlls/kernel32/tests/toolhelp.c
View file @
965d903f
...
...
@@ -75,13 +75,13 @@ static int init(void)
case
4
:
/* the sub-process */
ev1
=
(
HANDLE
)(
INT_PTR
)
atoi
(
argv
[
2
]);
ev2
=
(
HANDLE
)(
INT_PTR
)
atoi
(
argv
[
3
]);
ev3
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
ev3
=
CreateEvent
W
(
NULL
,
FALSE
,
FALSE
,
NULL
);
if
(
ev3
==
NULL
)
ExitProcess
(
WAIT_ABANDONED
);
hThread
=
CreateThread
(
NULL
,
0
,
sub_thread
,
ev3
,
0
,
&
tid
);
if
(
hThread
==
NULL
)
ExitProcess
(
WAIT_ABANDONED
);
if
(
!
LoadLibraryA
(
"shell32.dll"
))
ExitProcess
(
WAIT_ABANDONED
);
/* signal init of sub-process is done */
SetEvent
(
ev1
);
/* wait for parent to have done all its queries */
...
...
@@ -242,7 +242,7 @@ static void test_module(DWORD pid, const char* expected[], unsigned num_expected
me
.
th32ProcessID
,
me
.
modBaseAddr
,
me
.
modBaseSize
,
me
.
szExePath
,
me
.
szModule
);
ok
(
me
.
th32ProcessID
==
pid
,
"wrong returned process id
\n
"
);
for
(
i
=
0
;
i
<
num_expected
;
i
++
)
if
(
!
lstrcmpi
(
expected
[
i
],
me
.
szModule
))
found
[
i
]
++
;
if
(
!
lstrcmpi
A
(
expected
[
i
],
me
.
szModule
))
found
[
i
]
++
;
num
++
;
}
while
(
pModule32Next
(
hSnapshot
,
&
me
));
}
...
...
@@ -260,7 +260,7 @@ static void test_module(DWORD pid, const char* expected[], unsigned num_expected
trace
(
"PID=%x base=%p size=%x %s %s
\n
"
,
me
.
th32ProcessID
,
me
.
modBaseAddr
,
me
.
modBaseSize
,
me
.
szExePath
,
me
.
szModule
);
for
(
i
=
0
;
i
<
num_expected
;
i
++
)
if
(
!
lstrcmpi
(
expected
[
i
],
me
.
szModule
))
found
[
i
]
++
;
if
(
!
lstrcmpi
A
(
expected
[
i
],
me
.
szModule
))
found
[
i
]
++
;
num
--
;
}
while
(
pModule32Next
(
hSnapshot
,
&
me
));
}
...
...
@@ -317,8 +317,8 @@ START_TEST(toolhelp)
sa
.
lpSecurityDescriptor
=
NULL
;
sa
.
bInheritHandle
=
TRUE
;
ev1
=
CreateEvent
(
&
sa
,
FALSE
,
FALSE
,
NULL
);
ev2
=
CreateEvent
(
&
sa
,
FALSE
,
FALSE
,
NULL
);
ev1
=
CreateEvent
W
(
&
sa
,
FALSE
,
FALSE
,
NULL
);
ev2
=
CreateEvent
W
(
&
sa
,
FALSE
,
FALSE
,
NULL
);
ok
(
ev1
!=
NULL
&&
ev2
!=
NULL
,
"Couldn't create events
\n
"
);
memset
(
&
startup
,
0
,
sizeof
(
startup
));
startup
.
cb
=
sizeof
(
startup
);
...
...
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