mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 18:54:25 +00:00
[APPWIZ.CPL] Set a default shortcut-link description (#1520)
CORE-15511
This commit is contained in:
parent
62823a08ce
commit
9de816c971
|
@ -450,7 +450,14 @@ ShowCreateShortcutWizard(HWND hwndCPl, LPWSTR szPath)
|
||||||
StringCchCopyW(pContext->szOldFile, _countof(pContext->szOldFile), szPath);
|
StringCchCopyW(pContext->szOldFile, _countof(pContext->szOldFile), szPath);
|
||||||
pch = PathFindFileNameW(pContext->szOrigin);
|
pch = PathFindFileNameW(pContext->szOrigin);
|
||||||
if (pch && *pch)
|
if (pch && *pch)
|
||||||
|
{
|
||||||
|
/* build szDescription */
|
||||||
|
StringCchCopyW(pContext->szDescription, _countof(pContext->szDescription), pch);
|
||||||
*pch = 0;
|
*pch = 0;
|
||||||
|
|
||||||
|
pch = PathFindExtensionW(pContext->szDescription);
|
||||||
|
*pch = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
PathAddBackslashW(pContext->szOrigin);
|
PathAddBackslashW(pContext->szOrigin);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue