crypt32(4/9): Actually skip content when skipping an item in a sequence

Juan Lang juan.lang at gmail.com
Wed Jul 25 20:17:51 CDT 2007


--Juan
-------------- next part --------------
From e6ff089374f4535afcafa14b39a21b3001816c4a Mon Sep 17 00:00:00 2001
From: Juan Lang <juanlang at juan.corp.google.com>
Date: Wed, 25 Jul 2007 18:10:40 -0700
Subject: [PATCH] Actually skip content when skipping an item in a sequence
---
 dlls/crypt32/decode.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/crypt32/decode.c b/dlls/crypt32/decode.c
index 8a062ce..7281b15 100644
--- a/dlls/crypt32/decode.c
+++ b/dlls/crypt32/decode.c
@@ -381,6 +381,7 @@ static BOOL CRYPT_AsnDecodeSequenceItems
                     }
                     else
                     {
+                        ptr += 1 + nextItemLenBytes + nextItemLen;
                         decoded += 1 + nextItemLenBytes + nextItemLen;
                         items[i].size = items[i].minSize;
                     }
-- 
1.4.1


More information about the wine-patches mailing list