crypt32(17/25): Don't check if msg is NULL,
tests show native doesn't either
Juan Lang
juan.lang at gmail.com
Thu Jul 12 17:22:34 CDT 2007
--Juan
-------------- next part --------------
From 582fc35a0afa00d9de6c28b25caec11559e9e891 Mon Sep 17 00:00:00 2001
From: Juan Lang <juanlang at juan.corp.google.com>
Date: Thu, 12 Jul 2007 14:55:44 -0700
Subject: [PATCH] Don't check if msg is NULL, tests show native doesn't either
---
dlls/crypt32/msg.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/dlls/crypt32/msg.c b/dlls/crypt32/msg.c
index e69c624..0bc3d0b 100644
--- a/dlls/crypt32/msg.c
+++ b/dlls/crypt32/msg.c
@@ -621,23 +621,17 @@ BOOL WINAPI CryptMsgUpdate(HCRYPTMSG hCr
DWORD cbData, BOOL fFinal)
{
CryptMsgBase *msg = (CryptMsgBase *)hCryptMsg;
- BOOL ret = FALSE;
TRACE("(%p, %p, %d, %d)\n", hCryptMsg, pbData, cbData, fFinal);
- if (msg && msg->update)
- ret = msg->update(hCryptMsg, pbData, cbData, fFinal);
- return ret;
+ return msg->update(hCryptMsg, pbData, cbData, fFinal);
}
BOOL WINAPI CryptMsgGetParam(HCRYPTMSG hCryptMsg, DWORD dwParamType,
DWORD dwIndex, void *pvData, DWORD *pcbData)
{
CryptMsgBase *msg = (CryptMsgBase *)hCryptMsg;
- BOOL ret = FALSE;
TRACE("(%p, %d, %d, %p, %p)\n", hCryptMsg, dwParamType, dwIndex,
pvData, pcbData);
- if (msg && msg->get_param)
- ret = msg->get_param(hCryptMsg, dwParamType, dwIndex, pvData, pcbData);
- return ret;
+ return msg->get_param(hCryptMsg, dwParamType, dwIndex, pvData, pcbData);
}
--
1.4.1
More information about the wine-patches
mailing list