Juan Lang : crypt32: Only destroy a decoded message's hash if it'
s been created.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jul 30 08:55:40 CDT 2007
Module: wine
Branch: master
Commit: 6f2ae254410b36a841d2ca9908e6d4dbd37dc511
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6f2ae254410b36a841d2ca9908e6d4dbd37dc511
Author: Juan Lang <juan.lang at gmail.com>
Date: Fri Jul 27 10:58:52 2007 -0700
crypt32: Only destroy a decoded message's hash if it's been created.
---
dlls/crypt32/msg.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/crypt32/msg.c b/dlls/crypt32/msg.c
index bca4040..f554c78 100644
--- a/dlls/crypt32/msg.c
+++ b/dlls/crypt32/msg.c
@@ -1255,7 +1255,8 @@ static void CDecodeMsg_Close(HCRYPTMSG hCryptMsg)
switch (msg->type)
{
case CMSG_HASHED:
- CryptDestroyHash(msg->u.hash);
+ if (msg->u.hash)
+ CryptDestroyHash(msg->u.hash);
break;
case CMSG_SIGNED:
LocalFree(msg->u.signedInfo);
More information about the wine-cvs
mailing list