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