mirror of
https://github.com/reactos/reactos.git
synced 2025-05-01 19:50:36 +00:00
[SHELL32] Fixing COpenWithMenu.cpp for handling path strings with spaces (#3449)
CORE-17445 Fixing the bug where open with menu where OpenWithMenu does not handle handler's path when there are spaces in the path string, by adding the missing quote marks around %1 when recording the registry entry for file handler.
This commit is contained in:
parent
32f7474f38
commit
bb723c337a
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ COpenWithList::SApp *COpenWithList::Add(LPCWSTR pwszPath)
|
||||||
|
|
||||||
if (pApp)
|
if (pApp)
|
||||||
{
|
{
|
||||||
StringCbPrintfW(pApp->wszCmd, sizeof(pApp->wszCmd), L"\"%s\" %%1", pwszPath);
|
StringCbPrintfW(pApp->wszCmd, sizeof(pApp->wszCmd), L"\"%s\" \"%%1\"", pwszPath);
|
||||||
SaveApp(pApp);
|
SaveApp(pApp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue