https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4ba56962e64741a9b280df88124604b45eceea62
commit 4ba56962e64741a9b280df88124604b45eceea62 Author: Hermès Bélusca-Maïto <hermes.belusca-ma...@reactos.org> AuthorDate: Fri Mar 22 12:58:24 2024 +0100 Commit: Hermès Bélusca-Maïto <hermes.belusca-ma...@reactos.org> CommitDate: Sat Sep 14 23:05:51 2024 +0200 [APPWIZ] NewLinkHereA(): Just call NewLinkHereW after the UNICODE conversion. --- dll/cpl/appwiz/createlink.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/dll/cpl/appwiz/createlink.c b/dll/cpl/appwiz/createlink.c index acce1443d3d..516a140539a 100644 --- a/dll/cpl/appwiz/createlink.c +++ b/dll/cpl/appwiz/createlink.c @@ -635,7 +635,7 @@ CALLBACK NewLinkHereW(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2) { InitCommonControls(); - return ShowCreateShortcutWizard(hwndCPl, (LPWSTR)lParam1); + return ShowCreateShortcutWizard(hwndCPl, (LPCWSTR)lParam1); } LONG @@ -644,10 +644,7 @@ NewLinkHereA(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2) { WCHAR szFile[MAX_PATH]; - if (MultiByteToWideChar(CP_ACP, 0, (LPSTR)lParam1, -1, szFile, _countof(szFile))) - { - InitCommonControls(); - return ShowCreateShortcutWizard(hwndCPl, szFile); - } + if (MultiByteToWideChar(CP_ACP, 0, (LPCSTR)lParam1, -1, szFile, _countof(szFile))) + return NewLinkHereW(hwndCPl, uMsg, (LPARAM)szFile, lParam2); return -1; }