[BROWSEUI] Follow up of #1121

CORE-15434
This commit is contained in:
Katayama Hirofumi MZ 2018-12-13 20:40:05 +09:00
parent c64d31e9b8
commit fad9f6677a

View file

@ -578,7 +578,7 @@ static INT_PTR CALLBACK RunDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARA
if (wcschr(psz, L'%') != NULL)
{
cchExpand = ExpandEnvironmentStringsW(psz, NULL, 0) + 1;
cchExpand = ExpandEnvironmentStringsW(psz, NULL, 0);
pszExpanded = (WCHAR*)HeapAlloc(GetProcessHeap(), 0, cchExpand * sizeof(WCHAR));
if (!pszExpanded)
{