[BROWSEUI] Add backslash for directory (#1121)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Thu, 13 Dec 2018 11:04:02 +0000 (20:04 +0900)
committerGitHub <noreply@github.com>
Thu, 13 Dec 2018 11:04:02 +0000 (20:04 +0900)
CORE-15434

dll/win32/browseui/parsecmdline.cpp

index 855c089..4ea538a 100644 (file)
@@ -382,6 +382,9 @@ SHExplorerParseCmdLine(ExplorerCommandLineParseResults * pInfo)
             {
                 // Or just a plain old string.
 
+                if (PathIsDirectoryW(strField))
+                    PathAddBackslash(strField);
+
                 WCHAR szPath[MAX_PATH];
                 DWORD result = GetFullPathNameW(strField, _countof(szPath), szPath, NULL);