From 5291d19b25b3d447c1aa67cdee700ddb4efc170e Mon Sep 17 00:00:00 2001 From: Claudiu Mihail Date: Wed, 7 Sep 2011 17:10:45 +0000 Subject: [PATCH] [shell32.dll] - Fix bug 6316. Patch by Edijs Kolesnikovics. svn path=/branches/shell32_new-bringup/; revision=53623 --- dll/win32/shell32/fprop.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dll/win32/shell32/fprop.cpp b/dll/win32/shell32/fprop.cpp index 15c2c6fbef6..3d317998a98 100644 --- a/dll/win32/shell32/fprop.cpp +++ b/dll/win32/shell32/fprop.cpp @@ -259,6 +259,12 @@ SH_FileGeneralSetText(HWND hwndDlg, WCHAR *lpstr) /* location text field */ wcsncpy(buff, lpstr, plength - flength); buff[plength - flength] = UNICODE_NULL; + + if (wcslen(buff) == 2) + { + wcscat(buff, L"\\"); + } + hDlgCtrl = GetDlgItem(hwndDlg, 14009); SendMessageW(hDlgCtrl, WM_SETTEXT, (WPARAM)NULL, (LPARAM)buff); }