Commit a697aa21 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

ole32: Fix string buffer size.

parent cab617bb
...@@ -554,7 +554,7 @@ static HRESULT PropertyStorage_StringCopy(LPCSTR src, UINT srcCP, LPSTR *dst, UI ...@@ -554,7 +554,7 @@ static HRESULT PropertyStorage_StringCopy(LPCSTR src, UINT srcCP, LPSTR *dst, UI
len = (lstrlenW((LPCWSTR)src) + 1) * sizeof(WCHAR); len = (lstrlenW((LPCWSTR)src) + 1) * sizeof(WCHAR);
else else
len = strlen(src) + 1; len = strlen(src) + 1;
*dst = CoTaskMemAlloc(len * sizeof(WCHAR)); *dst = CoTaskMemAlloc(len);
if (!*dst) if (!*dst)
hr = STG_E_INSUFFICIENTMEMORY; hr = STG_E_INSUFFICIENTMEMORY;
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment