Index: reactos/dll/win32/browseui/parsecmdline.cpp =================================================================== --- reactos/dll/win32/browseui/parsecmdline.cpp (revision 74436) +++ reactos/dll/win32/browseui/parsecmdline.cpp (working copy) @@ -2,6 +2,7 @@ * ReactOS browseui * * Copyright 2014 David Quintana +* Copyright 2017 Katayama Hirofumi MZ * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -236,6 +237,8 @@ PCWSTR strCmdLine = GetCommandLineW(); PCWSTR strFieldArray = PathGetArgsW(strCmdLine); + TRACE("strCmdLine: %S\n", strCmdLine); + if (!*strFieldArray) { pInfo->dwFlags = 9; @@ -381,8 +384,13 @@ else { // Or just a plain old string. + WCHAR szPath[MAX_PATH], *pch; + if (!::SearchPathW(NULL, strField, NULL, _countof(szPath), szPath, &pch)) + { + lstrcpynW(szPath, strField, _countof(szPath)); + } - LPITEMIDLIST pidlPath = ILCreateFromPathW(strField); + LPITEMIDLIST pidlPath = ILCreateFromPathW(szPath); pInfo->pidlPath = pidlPath; @@ -396,7 +404,7 @@ // The path could not be parsed into an ID List, // so pass it on as a plain string. - PWSTR field = StrDupW(strField); + PWSTR field = StrDupW(szPath); pInfo->strPath = field; if (field) {