From f7ff216a155709ecc1d77aa2f229f60e57be18ea Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 14 Apr 2005 12:50:54 +0000 Subject: [PATCH] Fixed a buffer overflow. --- 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 2e59aff9901..248bd41d819 100644 --- a/dlls/ole32/stg_prop.c +++ b/dlls/ole32/stg_prop.c @@ -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]);