Juan Lang : wintrust: Remove redundant check of pbSignedDataMsg
(Coverity).
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Aug 16 05:38:38 CDT 2007
Module: wine
Branch: master
Commit: cf3535351ac00e2572388f874fa7d8d47a58f8be
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cf3535351ac00e2572388f874fa7d8d47a58f8be
Author: Juan Lang <juan.lang at gmail.com>
Date: Wed Aug 15 16:41:32 2007 -0700
wintrust: Remove redundant check of pbSignedDataMsg (Coverity).
---
dlls/wintrust/crypt.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/dlls/wintrust/crypt.c b/dlls/wintrust/crypt.c
index 119052b..e69db9e 100644
--- a/dlls/wintrust/crypt.c
+++ b/dlls/wintrust/crypt.c
@@ -233,9 +233,7 @@ BOOL WINAPI CryptSIPGetSignedDataMsg(SIP_SUBJECTINFO* pSubjectInfo, DWORD* pdwEn
&len);
if (!ret)
goto error;
- if (!pbSignedDataMsg)
- *pcbSignedDataMsg = pCert->dwLength;
- else if (*pcbSignedDataMsg < pCert->dwLength)
+ if (*pcbSignedDataMsg < pCert->dwLength)
{
*pcbSignedDataMsg = pCert->dwLength;
SetLastError(ERROR_INSUFFICIENT_BUFFER);
More information about the wine-cvs
mailing list