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
a4435e3a
Commit
a4435e3a
authored
Aug 18, 2010
by
Mikko Rasa
Committed by
Alexandre Julliard
Aug 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Only clear *pcbDecoded on error in CryptVerifyMessageSignature.
parent
46050fb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
message.c
dlls/crypt32/message.c
+4
-2
No files found.
dlls/crypt32/message.c
View file @
a4435e3a
...
@@ -194,13 +194,13 @@ BOOL WINAPI CryptVerifyMessageSignature(PCRYPT_VERIFY_MESSAGE_PARA pVerifyPara,
...
@@ -194,13 +194,13 @@ BOOL WINAPI CryptVerifyMessageSignature(PCRYPT_VERIFY_MESSAGE_PARA pVerifyPara,
if
(
ppSignerCert
)
if
(
ppSignerCert
)
*
ppSignerCert
=
NULL
;
*
ppSignerCert
=
NULL
;
if
(
pcbDecoded
)
*
pcbDecoded
=
0
;
if
(
!
pVerifyPara
||
if
(
!
pVerifyPara
||
pVerifyPara
->
cbSize
!=
sizeof
(
CRYPT_VERIFY_MESSAGE_PARA
)
||
pVerifyPara
->
cbSize
!=
sizeof
(
CRYPT_VERIFY_MESSAGE_PARA
)
||
GET_CMSG_ENCODING_TYPE
(
pVerifyPara
->
dwMsgAndCertEncodingType
)
!=
GET_CMSG_ENCODING_TYPE
(
pVerifyPara
->
dwMsgAndCertEncodingType
)
!=
PKCS_7_ASN_ENCODING
)
PKCS_7_ASN_ENCODING
)
{
{
if
(
pcbDecoded
)
*
pcbDecoded
=
0
;
SetLastError
(
E_INVALIDARG
);
SetLastError
(
E_INVALIDARG
);
return
FALSE
;
return
FALSE
;
}
}
...
@@ -246,6 +246,8 @@ BOOL WINAPI CryptVerifyMessageSignature(PCRYPT_VERIFY_MESSAGE_PARA pVerifyPara,
...
@@ -246,6 +246,8 @@ BOOL WINAPI CryptVerifyMessageSignature(PCRYPT_VERIFY_MESSAGE_PARA pVerifyPara,
}
}
CryptMsgClose
(
msg
);
CryptMsgClose
(
msg
);
}
}
if
(
!
ret
&&
pcbDecoded
)
*
pcbDecoded
=
0
;
TRACE
(
"returning %d
\n
"
,
ret
);
TRACE
(
"returning %d
\n
"
,
ret
);
return
ret
;
return
ret
;
}
}
...
...
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