Juan Lang : crypt32: Set an output parameter on the success path.

Alexandre Julliard julliard at winehq.org
Wed Oct 21 13:13:59 CDT 2009


Module: wine
Branch: master
Commit: 43182842cdd8bbbc9b5842545c4130ba1a406b45
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=43182842cdd8bbbc9b5842545c4130ba1a406b45

Author: Juan Lang <juan.lang at gmail.com>
Date:   Tue Oct 20 12:48:48 2009 -0700

crypt32: Set an output parameter on the success path.

---

 dlls/crypt32/encode.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/crypt32/encode.c b/dlls/crypt32/encode.c
index 10d63b4..01f853c 100644
--- a/dlls/crypt32/encode.c
+++ b/dlls/crypt32/encode.c
@@ -4565,6 +4565,7 @@ static BOOL WINAPI CRYPT_ExportRsaPublicKeyInfoEx(HCRYPTPROV_OR_NCRYPT_KEY_HANDL
                         }
                         else
                         {
+                            *pcbInfo = sizeNeeded;
                             pInfo->Algorithm.pszObjId = (char *)pInfo +
                              sizeof(CERT_PUBLIC_KEY_INFO);
                             lstrcpyA(pInfo->Algorithm.pszObjId,




More information about the wine-cvs mailing list