[APPWIZ.CPL] Set a default shortcut-link description (#1520)

CORE-15511
This commit is contained in:
Katayama Hirofumi MZ 2019-04-24 10:44:44 +09:00 committed by Hermès BÉLUSCA - MAÏTO
parent 62823a08ce
commit 9de816c971

View file

@ -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);