Dmitry Timoshkov : crypt32: Use sizeof(WCHAR) instead of 2.
Alexandre Julliard
julliard at winehq.org
Mon Dec 3 15:28:54 CST 2018
Module: wine
Branch: master
Commit: f4845059b634ffd3fc96169c06a1e7ebb0ff133c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=f4845059b634ffd3fc96169c06a1e7ebb0ff133c
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Mon Dec 3 18:13:47 2018 +0300
crypt32: Use sizeof(WCHAR) instead of 2.
Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/crypt32/decode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/crypt32/decode.c b/dlls/crypt32/decode.c
index 06d456a..e70940a 100644
--- a/dlls/crypt32/decode.c
+++ b/dlls/crypt32/decode.c
@@ -1550,7 +1550,7 @@ static BOOL CRYPT_AsnDecodeNameValueInternal(const BYTE *pbEncoded,
case ASN_UTF8STRING:
valueType = CERT_RDN_UTF8_STRING;
bytesNeeded += MultiByteToWideChar(CP_UTF8, 0,
- (LPCSTR)pbEncoded + 1 + lenBytes, dataLen, NULL, 0) * 2;
+ (LPCSTR)pbEncoded + 1 + lenBytes, dataLen, NULL, 0) * sizeof(WCHAR);
break;
default:
SetLastError(CRYPT_E_ASN1_BADTAG);
More information about the wine-cvs
mailing list