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
a10dfea0
Commit
a10dfea0
authored
Nov 19, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Nov 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Use BOOL type where appropriate.
parent
4cc3705f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
heap.c
dlls/kernel32/tests/heap.c
+2
-2
pipe.c
dlls/kernel32/tests/pipe.c
+9
-7
No files found.
dlls/kernel32/tests/heap.c
View file @
a10dfea0
...
...
@@ -56,7 +56,7 @@ static SIZE_T resize_9x(SIZE_T size)
static
void
test_sized_HeapAlloc
(
int
nbytes
)
{
int
success
;
BOOL
success
;
char
*
buf
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
nbytes
);
ok
(
buf
!=
NULL
,
"allocate failed
\n
"
);
ok
(
buf
[
0
]
==
0
,
"buffer not zeroed
\n
"
);
...
...
@@ -66,7 +66,7 @@ static void test_sized_HeapAlloc(int nbytes)
static
void
test_sized_HeapReAlloc
(
int
nbytes1
,
int
nbytes2
)
{
int
success
;
BOOL
success
;
char
*
buf
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
nbytes1
);
ok
(
buf
!=
NULL
,
"allocate failed
\n
"
);
ok
(
buf
[
0
]
==
0
,
"buffer not zeroed
\n
"
);
...
...
dlls/kernel32/tests/pipe.c
View file @
a10dfea0
...
...
@@ -452,7 +452,7 @@ static DWORD CALLBACK serverThreadMain1(LPVOID arg)
char
buf
[
512
];
DWORD
written
;
DWORD
readden
;
DWORD
success
;
BOOL
success
;
/* Wait for client to connect */
trace
(
"Server calling ConnectNamedPipe...
\n
"
);
...
...
@@ -504,13 +504,15 @@ static DWORD CALLBACK serverThreadMain2(LPVOID arg)
char
buf
[
512
];
DWORD
written
;
DWORD
readden
;
DWORD
success
;
DWORD
ret
;
BOOL
success
;
user_apc_ran
=
FALSE
;
if
(
i
==
0
&&
pQueueUserAPC
)
{
trace
(
"Queueing an user APC
\n
"
);
/* verify the pipe is non alerable */
success
=
pQueueUserAPC
(
&
user_apc
,
GetCurrentThread
(),
0
);
ok
(
success
,
"QueueUserAPC failed: %d
\n
"
,
GetLastError
());
ret
=
pQueueUserAPC
(
&
user_apc
,
GetCurrentThread
(),
0
);
ok
(
ret
,
"QueueUserAPC failed: %d
\n
"
,
GetLastError
());
}
/* Wait for client to connect */
...
...
@@ -587,7 +589,7 @@ static DWORD CALLBACK serverThreadMain3(LPVOID arg)
DWORD
written
;
DWORD
readden
;
DWORD
dummy
;
DWORD
success
;
BOOL
success
;
OVERLAPPED
oOverlap
;
int
letWFSOEwait
=
(
i
&
2
);
int
letGORwait
=
(
i
&
1
);
...
...
@@ -713,7 +715,7 @@ static DWORD CALLBACK serverThreadMain4(LPVOID arg)
DWORD
written
;
DWORD
readden
;
DWORD
dummy
;
DWORD
success
;
BOOL
success
;
OVERLAPPED
oConnect
;
OVERLAPPED
oRead
;
OVERLAPPED
oWrite
;
...
...
@@ -837,7 +839,7 @@ static DWORD CALLBACK serverThreadMain5(LPVOID arg)
for
(
i
=
0
;
i
<
NB_SERVER_LOOPS
;
i
++
)
{
char
buf
[
512
];
DWORD
readden
;
DWORD
success
;
BOOL
success
;
OVERLAPPED
oOverlap
;
DWORD
err
;
...
...
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