From 3df2610b0682bd72f5d007babe8555a7b37fd78f Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Wed, 5 Oct 2005 13:08:59 +0000 Subject: [PATCH] fix UNICODE control panel calls to handle double clicks on the task bar clock svn path=/trunk/; revision=18269 --- reactos/subsys/system/explorer/utility/utility.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/reactos/subsys/system/explorer/utility/utility.cpp b/reactos/subsys/system/explorer/utility/utility.cpp index 3110555da6d..a4dfa86fc01 100644 --- a/reactos/subsys/system/explorer/utility/utility.cpp +++ b/reactos/subsys/system/explorer/utility/utility.cpp @@ -365,12 +365,18 @@ BOOL RunDLL(HWND hwnd, LPCTSTR dllname, LPCSTR procname, LPCTSTR cmdline, UINT n } +#ifdef UNICODE +#define CONTROL_RUNDLL "Control_RunDLLW" +#else +#define CONTROL_RUNDLL "Control_RunDLLA" +#endif + BOOL launch_cpanel(HWND hwnd, LPCTSTR applet) { - //launch_file(_hwnd, applet, SW_SHOWNORMAL); // This would be enough, but we want the fastest solution. - //launch_file(_hwnd, TEXT("rundll32.exe /d shell32.dll,Control_RunDLL ")+applet, SW_SHOWNORMAL); + //launch_file(_hwnd, applet, SW_SHOWNORMAL); // This would be enough, but we want the to use the most direct and fastest call. + //launch_file(_hwnd, String(TEXT("rundll32.exe /d shell32.dll,Control_RunDLL "))+applet, SW_SHOWNORMAL); - return RunDLL(hwnd, TEXT("shell32"), "Control_RunDLL", applet, SW_SHOWNORMAL); + return RunDLL(hwnd, TEXT("shell32"), CONTROL_RUNDLL, applet, SW_SHOWNORMAL); }