Dmitry Timoshkov : crypt32: Make it clear that LocalAlloc should return a pointer.
Alexandre Julliard
julliard at winehq.org
Thu Oct 25 15:24:35 CDT 2018
Module: wine
Branch: master
Commit: 855dab34bd4a76f36e2ae986b6a4025326bbed62
URL: https://source.winehq.org/git/wine.git/?a=commit;h=855dab34bd4a76f36e2ae986b6a4025326bbed62
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Thu Oct 25 14:50:26 2018 +0300
crypt32: Make it clear that LocalAlloc should return a pointer.
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 080feec..b177872 100644
--- a/dlls/crypt32/decode.c
+++ b/dlls/crypt32/decode.c
@@ -215,7 +215,7 @@ static BOOL CRYPT_DecodeEnsureSpace(DWORD dwFlags,
if (pDecodePara && pDecodePara->pfnAlloc)
*(BYTE **)pvStructInfo = pDecodePara->pfnAlloc(bytesNeeded);
else
- *(BYTE **)pvStructInfo = LocalAlloc(0, bytesNeeded);
+ *(BYTE **)pvStructInfo = LocalAlloc(LPTR, bytesNeeded);
if (!*(BYTE **)pvStructInfo)
ret = FALSE;
else
More information about the wine-cvs
mailing list