Juan Lang : crypt32: Initialize mask when allocating it.
Alexandre Julliard
julliard at winehq.org
Mon Oct 22 09:55:15 CDT 2007
Module: wine
Branch: master
Commit: d0e7aaf1be5be27125d3197ff7ab60ed9fccec8f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d0e7aaf1be5be27125d3197ff7ab60ed9fccec8f
Author: Juan Lang <juan.lang at gmail.com>
Date: Fri Oct 19 13:36:03 2007 -0700
crypt32: Initialize mask when allocating it.
---
dlls/crypt32/cert.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/crypt32/cert.c b/dlls/crypt32/cert.c
index 2451973..d356c40 100644
--- a/dlls/crypt32/cert.c
+++ b/dlls/crypt32/cert.c
@@ -1939,7 +1939,10 @@ static void CRYPT_SetBitInField(struct BitField *field, DWORD bit)
else
field->indexes = CryptMemAlloc(sizeof(DWORD));
if (field->indexes)
+ {
+ field->indexes[indexIndex] = 0;
field->cIndexes = indexIndex + 1;
+ }
}
if (field->indexes)
field->indexes[indexIndex] |= 1 << (bit % BITS_PER_DWORD);
More information about the wine-cvs
mailing list