https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0e8bf61f819116d5eda10…
commit 0e8bf61f819116d5eda10db2fe852907ca518e9f
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Sun Feb 9 14:42:26 2020 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Sun Feb 9 14:42:26 2020 +0900
[CPL][APPWIZ] Add InitCommonControls calls (#2316)
CORE-16669
---
dll/cpl/appwiz/createlink.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/dll/cpl/appwiz/createlink.c b/dll/cpl/appwiz/createlink.c
index 46cf6f9b84c..e51403658f5 100644
--- a/dll/cpl/appwiz/createlink.c
+++ b/dll/cpl/appwiz/createlink.c
@@ -11,6 +11,7 @@
*/
#include "appwiz.h"
+#include <commctrl.h>
#include <shellapi.h>
#include <strsafe.h>
@@ -495,7 +496,7 @@ PropSheetProc(HWND hwndDlg, UINT uMsg, LPARAM lParam)
}
LONG CALLBACK
-ShowCreateShortcutWizard(HWND hwndCPl, LPWSTR szPath)
+ShowCreateShortcutWizard(HWND hwndCPl, LPCWSTR szPath)
{
PROPSHEETHEADERW psh;
HPROPSHEETPAGE ahpsp[2];
@@ -601,7 +602,8 @@ LONG
CALLBACK
NewLinkHereW(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2)
{
- return ShowCreateShortcutWizard(hwndCPl, (LPWSTR) lParam1);
+ InitCommonControls();
+ return ShowCreateShortcutWizard(hwndCPl, (LPWSTR)lParam1);
}
LONG
@@ -612,6 +614,7 @@ NewLinkHereA(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2)
if (MultiByteToWideChar(CP_ACP, 0, (LPSTR)lParam1, -1, szFile, _countof(szFile)))
{
+ InitCommonControls();
return ShowCreateShortcutWizard(hwndCPl, szFile);
}
return -1;