[SHELL32]: Use Unicode version of GetWindowTextLength in the Run dialog box.

svn path=/trunk/; revision=70989
This commit is contained in:
Hermès Bélusca-Maïto 2016-03-10 00:05:00 +00:00
parent e43a9a5105
commit ac22a1149a

View file

@ -350,7 +350,7 @@ static void EnableOkButtonFromEditContents(HWND hwnd)
BOOL Enable = FALSE;
INT Length, n;
HWND Edit = GetDlgItem(hwnd, IDC_RUNDLG_EDITPATH);
Length = GetWindowTextLengthA(Edit);
Length = GetWindowTextLengthW(Edit);
if (Length > 0)
{
PWCHAR psz = (PWCHAR)HeapAlloc(GetProcessHeap(), 0, (Length + 1) * sizeof(WCHAR));