Fixed buffer overflow.
This commit is contained in:
parent
b905023c74
commit
70eabdedd5
|
@ -2616,7 +2616,7 @@ static HRESULT WINAPI ISFPersistFolder2_Initialize(
|
||||||
/* set my path */
|
/* set my path */
|
||||||
if (SHGetPathFromIDListA(pidl, sTemp))
|
if (SHGetPathFromIDListA(pidl, sTemp))
|
||||||
{
|
{
|
||||||
This->sMyPath = SHAlloc(strlen(sTemp+1));
|
This->sMyPath = SHAlloc(strlen(sTemp)+1);
|
||||||
strcpy(This->sMyPath, sTemp);
|
strcpy(This->sMyPath, sTemp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue