Nikolay Sivov : ole32: Fix string buffer size.
Alexandre Julliard
julliard at winehq.org
Mon Jan 27 15:00:21 CST 2020
Module: wine
Branch: master
Commit: a697aa21f39f693482290ca810d07f7166665294
URL: https://source.winehq.org/git/wine.git/?a=commit;h=a697aa21f39f693482290ca810d07f7166665294
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon Jan 27 09:24:20 2020 +0300
ole32: Fix string buffer size.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ole32/stg_prop.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ole32/stg_prop.c b/dlls/ole32/stg_prop.c
index 0f0f824a77..c5d2a42e1c 100644
--- a/dlls/ole32/stg_prop.c
+++ b/dlls/ole32/stg_prop.c
@@ -554,7 +554,7 @@ static HRESULT PropertyStorage_StringCopy(LPCSTR src, UINT srcCP, LPSTR *dst, UI
len = (lstrlenW((LPCWSTR)src) + 1) * sizeof(WCHAR);
else
len = strlen(src) + 1;
- *dst = CoTaskMemAlloc(len * sizeof(WCHAR));
+ *dst = CoTaskMemAlloc(len);
if (!*dst)
hr = STG_E_INSUFFICIENTMEMORY;
else
More information about the wine-cvs
mailing list