Module: wine Branch: master Commit: ab138e9c58417876f5bff63c86cbd7ffb1c7a6d3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ab138e9c58417876f5bff63c86...
Author: Marcus Meissner meissner@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);