Marcus Meissner : cryptui: Fixed bad sizeof() (Coverity).
Alexandre Julliard
julliard at winehq.org
Wed Feb 23 13:01:52 CST 2011
Module: wine
Branch: master
Commit: ab138e9c58417876f5bff63c86cbd7ffb1c7a6d3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ab138e9c58417876f5bff63c86cbd7ffb1c7a6d3
Author: Marcus Meissner <meissner at suse.de>
Date: Wed Feb 23 05:30:38 2011 +0100
cryptui: Fixed bad sizeof() (Coverity).
---
dlls/cryptui/main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/cryptui/main.c b/dlls/cryptui/main.c
index b823b6e..16f53da 100644
--- a/dlls/cryptui/main.c
+++ b/dlls/cryptui/main.c
@@ -1637,7 +1637,7 @@ HCERTSTORE WINAPI CryptUIDlgSelectStoreA(PCRYPTUI_SELECTSTORE_INFO_A info)
SetLastError(E_INVALIDARG);
return NULL;
}
- memcpy(&infoW, &info, sizeof(info));
+ memcpy(&infoW, info, sizeof(*info));
if (info->pszTitle)
{
len = MultiByteToWideChar(CP_ACP, 0, info->pszTitle, -1, NULL, 0);
More information about the wine-cvs
mailing list