projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[BROWSEUI] Follow up of #1121
[reactos.git]
/
dll
/
win32
/
shell32
/
dialogs
/
dialogs.cpp
diff --git
a/dll/win32/shell32/dialogs/dialogs.cpp
b/dll/win32/shell32/dialogs/dialogs.cpp
index
f2fce61
..
5903fe4
100644
(file)
--- a/
dll/win32/shell32/dialogs/dialogs.cpp
+++ b/
dll/win32/shell32/dialogs/dialogs.cpp
@@
-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)
{