[ZIPFLDR] Fix PathCompactPathW writing out of bounds

CORE-17245
This commit is contained in:
Mark Jansen 2020-09-06 14:28:56 +02:00
parent a4fee60e46
commit 53badbd2f7
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -293,7 +293,7 @@ public:
{
SetWizardButtons(PSWIZB_FINISH);
CStringW Path = m_pExtract->m_Directory;
PWSTR Ptr = Path.GetBuffer();
PWSTR Ptr = Path.GetBuffer(MAX_PATH);
RECT rc;
::GetWindowRect(GetDlgItem(IDC_DESTDIR), &rc);
HDC dc = GetDC();