Commit f7ff216a authored by Alexandre Julliard's avatar Alexandre Julliard

Fixed a buffer overflow.

parent 8062bbde
...@@ -545,7 +545,7 @@ static HRESULT WINAPI IPropertyStorage_fnWritePropertyNames( ...@@ -545,7 +545,7 @@ static HRESULT WINAPI IPropertyStorage_fnWritePropertyNames(
{ {
if (rgpropid[i] != PID_ILLEGAL) if (rgpropid[i] != PID_ILLEGAL)
{ {
size_t len = lstrlenW(rglpwstrName[i] + 1); size_t len = lstrlenW(rglpwstrName[i]) + 1;
LPWSTR name = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR)); LPWSTR name = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
strcpyW(name, rglpwstrName[i]); strcpyW(name, rglpwstrName[i]);
......
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