Fixed a buffer overflow.

This commit is contained in:
Alexandre Julliard 2005-04-14 12:50:54 +00:00
parent 8062bbdeb8
commit f7ff216a15
1 changed files with 1 additions and 1 deletions

View File

@ -545,7 +545,7 @@ static HRESULT WINAPI IPropertyStorage_fnWritePropertyNames(
{
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));
strcpyW(name, rglpwstrName[i]);