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
0359f9d4
Commit
0359f9d4
authored
Sep 09, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32/tests: Avoid crash on test failure.
parent
e3edf08e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
schannel.c
dlls/secur32/tests/schannel.c
+8
-5
No files found.
dlls/secur32/tests/schannel.c
View file @
0359f9d4
...
...
@@ -746,12 +746,15 @@ static void test_communication(void)
buffers
[
0
].
pBuffers
[
1
].
BufferType
=
SECBUFFER_EMPTY
;
status
=
pDecryptMessage
(
&
context
,
&
buffers
[
0
],
0
,
NULL
);
ok
(
status
==
SEC_E_OK
,
"DecryptMessage failed: %08x
\n
"
,
status
);
ok
(
buffers
[
0
].
pBuffers
[
0
].
BufferType
==
SECBUFFER_STREAM_HEADER
,
"Expected first buffer to be SECBUFFER_STREAM_HEADER
\n
"
);
ok
(
buffers
[
0
].
pBuffers
[
1
].
BufferType
==
SECBUFFER_DATA
,
"Expected second buffer to be SECBUFFER_DATA
\n
"
);
ok
(
buffers
[
0
].
pBuffers
[
2
].
BufferType
==
SECBUFFER_STREAM_TRAILER
,
"Expected third buffer to be SECBUFFER_STREAM_TRAILER
\n
"
);
if
(
status
==
SEC_E_OK
)
{
ok
(
buffers
[
0
].
pBuffers
[
0
].
BufferType
==
SECBUFFER_STREAM_HEADER
,
"Expected first buffer to be SECBUFFER_STREAM_HEADER
\n
"
);
ok
(
buffers
[
0
].
pBuffers
[
1
].
BufferType
==
SECBUFFER_DATA
,
"Expected second buffer to be SECBUFFER_DATA
\n
"
);
ok
(
buffers
[
0
].
pBuffers
[
2
].
BufferType
==
SECBUFFER_STREAM_TRAILER
,
"Expected third buffer to be SECBUFFER_STREAM_TRAILER
\n
"
);
data
=
buffers
[
0
].
pBuffers
[
1
].
pvBuffer
;
data
[
buffers
[
0
].
pBuffers
[
1
].
cbBuffer
]
=
0
;
data
=
buffers
[
0
].
pBuffers
[
1
].
pvBuffer
;
data
[
buffers
[
0
].
pBuffers
[
1
].
cbBuffer
]
=
0
;
}
pDeleteSecurityContext
(
&
context
);
pFreeCredentialsHandle
(
&
cred_handle
);
...
...
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