[PATCH] shell32: fixed wrong sizeof() in ZeroMemory (Coverity)
Marcus Meissner
marcus at jet.franken.de
Sun Sep 29 04:07:14 CDT 2013
1099505 Wrong sizeof argument
---
dlls/shell32/pidl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/shell32/pidl.c b/dlls/shell32/pidl.c
index a712504..2be47a8 100644
--- a/dlls/shell32/pidl.c
+++ b/dlls/shell32/pidl.c
@@ -1182,7 +1182,7 @@ HRESULT WINAPI SHGetDataFromIDListW(LPSHELLFOLDER psf, LPCITEMIDLIST pidl,
if (len < sizeof(WIN32_FIND_DATAW))
return E_INVALIDARG;
- ZeroMemory(pfd, sizeof (WIN32_FIND_DATAA));
+ ZeroMemory(pfd, sizeof (WIN32_FIND_DATAW));
_ILGetFileDateTime( pidl, &(pfd->ftLastWriteTime));
pfd->dwFileAttributes = _ILGetFileAttributes(pidl, NULL, 0);
pfd->nFileSizeLow = _ILGetFileSize ( pidl, NULL, 0);
--
1.7.10.4
More information about the wine-patches
mailing list