mirror of
https://github.com/reactos/reactos.git
synced 2025-04-18 03:34:11 +00:00
[SHELL32] Fix starting disk cleanup from drive properties
CORE-12314
This commit is contained in:
parent
97e7efc020
commit
70422cda51
1 changed files with 6 additions and 1 deletions
|
@ -553,8 +553,13 @@ CDrvDefExt::GeneralPageProc(
|
|||
WCHAR wszCmd[MAX_PATH];
|
||||
|
||||
StringCbPrintfW(wszCmd, sizeof(wszCmd), wszBuf, pDrvDefExt->m_wszDrive[0]);
|
||||
WCHAR* wszArgs = PathGetArgsW(wszCmd);
|
||||
if (wszArgs && *wszArgs && wszArgs != wszCmd)
|
||||
wszArgs[-1] = UNICODE_NULL;
|
||||
else
|
||||
wszArgs = NULL;
|
||||
|
||||
if (ShellExecuteW(hwndDlg, NULL, wszCmd, NULL, NULL, SW_SHOW) <= (HINSTANCE)32)
|
||||
if (ShellExecuteW(hwndDlg, NULL, wszCmd, wszArgs, NULL, SW_SHOW) <= (HINSTANCE)32)
|
||||
ERR("Failed to create cleanup process %ls\n", wszCmd);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue