Commit 70eabded authored by Alexandre Julliard's avatar Alexandre Julliard Committed by Alexandre Julliard

Fixed buffer overflow.

parent b905023c
......@@ -2616,7 +2616,7 @@ static HRESULT WINAPI ISFPersistFolder2_Initialize(
/* set my path */
if (SHGetPathFromIDListA(pidl, sTemp))
{
This->sMyPath = SHAlloc(strlen(sTemp+1));
This->sMyPath = SHAlloc(strlen(sTemp)+1);
strcpy(This->sMyPath, sTemp);
}
......
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