From 43182842cdd8bbbc9b5842545c4130ba1a406b45 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Tue, 20 Oct 2009 12:48:48 -0700 Subject: [PATCH] crypt32: Set an output parameter on the success path. --- dlls/crypt32/encode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/crypt32/encode.c b/dlls/crypt32/encode.c index 10d63b446ff..01f853c3c28 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,