[PATCH] shell32: memset only gets character (Coverity)
Marcus Meissner
meissner at suse.de
Mon Mar 14 20:07:45 CDT 2011
Hi,
0xdeadbeef is too large for a character. Just use 0xef.
CID 1725
Ciao, Marcus
---
dlls/shell32/tests/shlfolder.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/shell32/tests/shlfolder.c b/dlls/shell32/tests/shlfolder.c
index c17694b..3d9c959 100644
--- a/dlls/shell32/tests/shlfolder.c
+++ b/dlls/shell32/tests/shlfolder.c
@@ -4063,7 +4063,7 @@ static HRESULT WINAPI fsbd_GetFindData_nul(IFileSystemBindData *fsbd,
static HRESULT WINAPI fsbd_GetFindData_junk(IFileSystemBindData *fsbd,
WIN32_FIND_DATAW *pfd)
{
- memset(pfd, 0xdeadbeef, sizeof(WIN32_FIND_DATAW));
+ memset(pfd, 0xef, sizeof(WIN32_FIND_DATAW));
return S_OK;
}
--
1.7.1
More information about the wine-patches
mailing list