wintrust: Remove redundant check of pbSignedDataMsg (Coverity #594)
Juan Lang
juan.lang at gmail.com
Wed Aug 15 18:50:38 CDT 2007
--Juan
-------------- next part --------------
From a1fe9efd3fd4948505b6939fc80492a4db61108e Mon Sep 17 00:00:00 2001
From: Juan Lang <juan.lang at gmail.com>
Date: Wed, 15 Aug 2007 16:41:32 -0700
Subject: [PATCH] Remove redundant check of pbSignedDataMsg (Coverity #594)
---
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
&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);
--
1.4.1
More information about the wine-patches
mailing list