Skip to content

Commit

Permalink
[BROWSEUI] SHExplorerParseCmdLine: Fix parsing of /root (reactos#6752)
Browse files Browse the repository at this point in the history
Remove excessive (!pInfo->pidlPath) check in SHExplorerParseCmdLine
function.
JIRA issue: CORE-16939
  • Loading branch information
katahiromz authored Apr 15, 2024
1 parent ea34ecc commit 1b85a5f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions dll/win32/browseui/parsecmdline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,8 @@ SHExplorerParseCmdLine(_Out_ PEXPLORER_CMDLINE_PARSE_RESULTS pInfo)

PCWSTR strNextArg = _FindFirstField(strFieldArray);

BOOL hasNext = TRUE;
BOOL hasNext = _ReadNextArg(&strNextArg, strField, _countof(strField));

hasNext = _ReadNextArg(&strNextArg, strField, _countof(strField));
while (TRUE)
{
// Basic flags-only params first
Expand Down Expand Up @@ -319,9 +318,6 @@ SHExplorerParseCmdLine(_Out_ PEXPLORER_CMDLINE_PARSE_RESULTS pInfo)

TRACE("CmdLine Parser: Found %S flag\n", strField);

if (!pInfo->pidlPath)
return FALSE;

if (!hasNext)
return FALSE;

Expand Down Expand Up @@ -414,7 +410,6 @@ SHExplorerParseCmdLine(_Out_ PEXPLORER_CMDLINE_PARSE_RESULTS pInfo)
TRACE("CmdLine Parser: Parsed target path. dwFlags=%08lx, strPath=%S\n", pInfo->dwFlags, field);
}
}

}
}

Expand Down

0 comments on commit 1b85a5f

Please sign in to comment.