https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9de816c9710243678c933567abec34856d34aa42

commit 9de816c9710243678c933567abec34856d34aa42
Author:     Katayama Hirofumi MZ <[email protected]>
AuthorDate: Wed Apr 24 10:44:44 2019 +0900
Commit:     Hermès BÉLUSCA - MAÏTO <[email protected]>
CommitDate: Wed Apr 24 03:44:44 2019 +0200

    [APPWIZ.CPL] Set a default shortcut-link description (#1520)
    
    CORE-15511
---
 dll/cpl/appwiz/createlink.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/dll/cpl/appwiz/createlink.c b/dll/cpl/appwiz/createlink.c
index a35e915f03..77213efefe 100644
--- a/dll/cpl/appwiz/createlink.c
+++ b/dll/cpl/appwiz/createlink.c
@@ -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);
 

Reply via email to