mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[SHELL32] Command 'start C:' should open 'C:\' (#2642)
Based on JIRA user amaneureka's idea. In SHELL_execute function, add a backslash for Drive "C:", "D:" or "E:" etc. CORE-16384
This commit is contained in:
@@ -1824,6 +1824,14 @@ static BOOL SHELL_execute(LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfunc)
|
||||
if(l > dwApplicationNameLen) dwApplicationNameLen = l + 1;
|
||||
wszApplicationName = (LPWSTR)HeapAlloc(GetProcessHeap(), 0, dwApplicationNameLen * sizeof(WCHAR));
|
||||
memcpy(wszApplicationName, sei_tmp.lpFile, l * sizeof(WCHAR));
|
||||
|
||||
if (wszApplicationName[2] == 0 && wszApplicationName[1] == L':' &&
|
||||
((L'A' <= wszApplicationName[0] && wszApplicationName[0] <= L'Z') ||
|
||||
(L'a' <= wszApplicationName[0] && wszApplicationName[0] <= L'z')))
|
||||
{
|
||||
// 'C:' --> 'C:\'
|
||||
PathAddBackslashW(wszApplicationName);
|
||||
}
|
||||
}
|
||||
|
||||
wszParameters = parametersBuffer;
|
||||
|
||||
Reference in New Issue
Block a user