mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 04:20:46 +00:00
parent
c64d31e9b8
commit
fad9f6677a
1 changed files with 1 additions and 1 deletions
|
@ -578,7 +578,7 @@ static INT_PTR CALLBACK RunDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARA
|
||||||
|
|
||||||
if (wcschr(psz, L'%') != NULL)
|
if (wcschr(psz, L'%') != NULL)
|
||||||
{
|
{
|
||||||
cchExpand = ExpandEnvironmentStringsW(psz, NULL, 0) + 1;
|
cchExpand = ExpandEnvironmentStringsW(psz, NULL, 0);
|
||||||
pszExpanded = (WCHAR*)HeapAlloc(GetProcessHeap(), 0, cchExpand * sizeof(WCHAR));
|
pszExpanded = (WCHAR*)HeapAlloc(GetProcessHeap(), 0, cchExpand * sizeof(WCHAR));
|
||||||
if (!pszExpanded)
|
if (!pszExpanded)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue