Marcus Meissner : shell32: Fixed wrong sizeof() in ZeroMemory (Coverity).

Alexandre Julliard julliard at winehq.org
Mon Sep 30 16:07:54 CDT 2013


Module: wine
Branch: master
Commit: 1440c54b99ab92d74ba577bd66c7399c9db26e91
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1440c54b99ab92d74ba577bd66c7399c9db26e91

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Sun Sep 29 11:07:14 2013 +0200

shell32: Fixed wrong sizeof() in ZeroMemory (Coverity).

---

 dlls/shell32/pidl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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);




More information about the wine-cvs mailing list