mirror of
https://github.com/reactos/reactos.git
synced 2025-05-09 03:37:08 +00:00
[BROWSEUI] SHExplorerParseCmdLine: Improve relative path handling
CORE-12882, CORE-13847
This commit is contained in:
parent
5dade73072
commit
53edadb8c0
1 changed files with 6 additions and 0 deletions
|
@ -382,6 +382,12 @@ SHExplorerParseCmdLine(ExplorerCommandLineParseResults * pInfo)
|
||||||
{
|
{
|
||||||
// Or just a plain old string.
|
// Or just a plain old string.
|
||||||
|
|
||||||
|
WCHAR szPath[MAX_PATH];
|
||||||
|
DWORD result = GetFullPathNameW(strField, _countof(szPath), szPath, NULL);
|
||||||
|
|
||||||
|
if (result != 0 && result <= _countof(szPath) && PathFileExistsW(szPath))
|
||||||
|
StringCchCopyW(strField, _countof(strField), szPath);
|
||||||
|
|
||||||
LPITEMIDLIST pidlPath = ILCreateFromPathW(strField);
|
LPITEMIDLIST pidlPath = ILCreateFromPathW(strField);
|
||||||
|
|
||||||
pInfo->pidlPath = pidlPath;
|
pInfo->pidlPath = pidlPath;
|
||||||
|
|
Loading…
Reference in a new issue