Module: wine Branch: master Commit: 37bc7518b8402706537b7854516a409a435bebac URL: https://source.winehq.org/git/wine.git/?a=commit;h=37bc7518b8402706537b78545...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Wed Sep 15 13:31:03 2021 +0300
secur32: Fix allocation size (Coverity).
Fixes copy-paste issue from fbd30fff038645bf2f7967ff63d4178309a14138.
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/secur32/secur32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/secur32/secur32.c b/dlls/secur32/secur32.c index 08bac24686a..a20469a3ff3 100644 --- a/dlls/secur32/secur32.c +++ b/dlls/secur32/secur32.c @@ -365,7 +365,7 @@ SecureProvider *SECUR32_addProvider(const SecurityFunctionTableA *fnTableA,
if (!providerTable) { - if (!(providerTable = malloc(sizeof(*ret)))) + if (!(providerTable = malloc(sizeof(*providerTable)))) { LeaveCriticalSection(&cs); return NULL;