mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 22:47:28 +00:00
[SHELL32]: Use Unicode version of GetWindowTextLength in the Run dialog box.
svn path=/trunk/; revision=70989
This commit is contained in:
parent
e43a9a5105
commit
ac22a1149a
|
@ -350,7 +350,7 @@ static void EnableOkButtonFromEditContents(HWND hwnd)
|
||||||
BOOL Enable = FALSE;
|
BOOL Enable = FALSE;
|
||||||
INT Length, n;
|
INT Length, n;
|
||||||
HWND Edit = GetDlgItem(hwnd, IDC_RUNDLG_EDITPATH);
|
HWND Edit = GetDlgItem(hwnd, IDC_RUNDLG_EDITPATH);
|
||||||
Length = GetWindowTextLengthA(Edit);
|
Length = GetWindowTextLengthW(Edit);
|
||||||
if (Length > 0)
|
if (Length > 0)
|
||||||
{
|
{
|
||||||
PWCHAR psz = (PWCHAR)HeapAlloc(GetProcessHeap(), 0, (Length + 1) * sizeof(WCHAR));
|
PWCHAR psz = (PWCHAR)HeapAlloc(GetProcessHeap(), 0, (Length + 1) * sizeof(WCHAR));
|
||||||
|
|
Loading…
Reference in a new issue