Marcus Meissner : shell32: Fixed wrong sizeof() in ZeroMemory (Coverity).
Module: wine Branch: master Commit: 1440c54b99ab92d74ba577bd66c7399c9db26e91 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1440c54b99ab92d74ba577bd66... Author: Marcus Meissner <marcus(a)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);
participants (1)
-
Alexandre Julliard