Juan Lang : crypt32: Get rid of an unneeded variable.
Alexandre Julliard
julliard at winehq.org
Fri Nov 2 08:10:18 CDT 2007
Module: wine
Branch: master
Commit: 9c672fea4188f9a9424296bb0a7b72b46de4ac4e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9c672fea4188f9a9424296bb0a7b72b46de4ac4e
Author: Juan Lang <juan.lang at gmail.com>
Date: Thu Nov 1 07:48:50 2007 -0700
crypt32: Get rid of an unneeded variable.
---
dlls/crypt32/decode.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/dlls/crypt32/decode.c b/dlls/crypt32/decode.c
index 6297251..db2a3b3 100644
--- a/dlls/crypt32/decode.c
+++ b/dlls/crypt32/decode.c
@@ -617,15 +617,12 @@ static BOOL CRYPT_AsnDecodeArray(const struct AsnArrayDescriptor *arrayDesc,
for (ptr = pbEncoded + 1 + lenBytes; ret && !doneDecoding; )
{
- DWORD itemLenBytes;
-
- itemLenBytes = GET_LEN_BYTES(ptr[1]);
if (dataLen == CMSG_INDEFINITE_LENGTH)
{
if (ptr[0] == 0)
{
doneDecoding = TRUE;
- if (itemLenBytes != 1 || ptr[1] != 0)
+ if (ptr[1] != 0)
{
SetLastError(CRYPT_E_ASN1_CORRUPT);
ret = FALSE;
@@ -649,7 +646,8 @@ static BOOL CRYPT_AsnDecodeArray(const struct AsnArrayDescriptor *arrayDesc,
if (itemDataLen == CMSG_INDEFINITE_LENGTH)
itemEncoded = cbEncoded - (ptr - pbEncoded);
else
- itemEncoded = 1 + itemLenBytes + itemDataLen;
+ itemEncoded = 1 + GET_LEN_BYTES(ptr[1]) +
+ itemDataLen;
}
if (ret)
ret = arrayDesc->decodeFunc(ptr, itemEncoded,
More information about the wine-cvs
mailing list