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
450e9e3a
Commit
450e9e3a
authored
Jan 09, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4/tests: Fix an uninitialized pointer check for Win64.
parent
328ca0e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
rpc_async.c
dlls/rpcrt4/tests/rpc_async.c
+3
-1
No files found.
dlls/rpcrt4/tests/rpc_async.c
View file @
450e9e3a
...
...
@@ -34,6 +34,7 @@ static void test_RpcAsyncInitializeHandle(void)
RPC_ASYNC_STATE
async
;
RPC_STATUS
status
;
int
i
;
void
*
unset_ptr
;
status
=
pRpcAsyncInitializeHandle
((
PRPC_ASYNC_STATE
)
buffer
,
sizeof
(
buffer
));
ok
(
status
==
ERROR_INVALID_PARAMETER
,
"RpcAsyncInitializeHandle with large Size should have returned ERROR_INVALID_PARAMETER instead of %d
\n
"
,
status
);
...
...
@@ -42,6 +43,7 @@ static void test_RpcAsyncInitializeHandle(void)
ok
(
status
==
ERROR_INVALID_PARAMETER
,
"RpcAsyncInitializeHandle with small Size should have returned ERROR_INVALID_PARAMETER instead of %d
\n
"
,
status
);
memset
(
&
async
,
0xcc
,
sizeof
(
async
));
memset
(
&
unset_ptr
,
0xcc
,
sizeof
(
unset_ptr
));
status
=
pRpcAsyncInitializeHandle
(
&
async
,
sizeof
(
async
));
ok
(
status
==
RPC_S_OK
,
"RpcAsyncInitializeHandle failed with error %d
\n
"
,
status
);
...
...
@@ -50,7 +52,7 @@ static void test_RpcAsyncInitializeHandle(void)
ok
(
async
.
Lock
==
0
,
"async.Lock should be 0, but is %d instead
\n
"
,
async
.
Lock
);
ok
(
async
.
Flags
==
0
,
"async.Flags should be 0, but is %d instead
\n
"
,
async
.
Flags
);
ok
(
async
.
StubInfo
==
NULL
,
"async.StubInfo should be NULL, not %p
\n
"
,
async
.
StubInfo
);
ok
(
async
.
UserInfo
==
(
void
*
)
0xcccccccc
,
"async.UserInfo should be unset, not %p
\n
"
,
async
.
UserInfo
);
ok
(
async
.
UserInfo
==
unset_ptr
,
"async.UserInfo should be unset, not %p
\n
"
,
async
.
UserInfo
);
ok
(
async
.
RuntimeInfo
==
NULL
,
"async.RuntimeInfo should be NULL, not %p
\n
"
,
async
.
RuntimeInfo
);
ok
(
async
.
Event
==
0xcccccccc
,
"async.Event should be unset, not %d
\n
"
,
async
.
Event
);
ok
(
async
.
NotificationType
==
0xcccccccc
,
"async.NotificationType should be unset, not %d
\n
"
,
async
.
NotificationType
);
...
...
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