[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: [PATCH] shell32: Fix sizeof argument in DoPaste (Coverity)
From: Alex Henrie <alexhenrie24 () gmail ! com>
Date: 2021-12-30 6:09:20
Message-ID: 20211230060920.92501-1-alexhenrie24 () gmail ! com
[Download RAW message or body]
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
---
dlls/shell32/shlview_cmenu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/shell32/shlview_cmenu.c b/dlls/shell32/shlview_cmenu.c
index 6c05904bb91..a7e14b3e241 100644
--- a/dlls/shell32/shlview_cmenu.c
+++ b/dlls/shell32/shlview_cmenu.c
@@ -1218,7 +1218,7 @@ static HRESULT DoPaste(ContextMenu *This)
TRACE("CF_HDROP=%p\n", medium.u.hGlobal);
count = DragQueryFileW(medium.u.hGlobal, -1, NULL, 0);
- pidls = SHAlloc(count*sizeof(ITEMIDLIST**));
+ pidls = SHAlloc(count*sizeof(ITEMIDLIST*));
if (pidls)
{
for (i = 0; i < count; i++)
--
2.34.1
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic