diff options
Diffstat (limited to 'setup_native/source/win32/customactions/quickstarter')
-rw-r--r-- | setup_native/source/win32/customactions/quickstarter/shutdown_quickstart.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/setup_native/source/win32/customactions/quickstarter/shutdown_quickstart.cxx b/setup_native/source/win32/customactions/quickstarter/shutdown_quickstart.cxx index 7a841bdbe221..f3ec02a7772b 100644 --- a/setup_native/source/win32/customactions/quickstarter/shutdown_quickstart.cxx +++ b/setup_native/source/win32/customactions/quickstarter/shutdown_quickstart.cxx @@ -24,11 +24,11 @@ static BOOL CALLBACK EnumWindowsProc( HWND hWnd, LPARAM lParam ) { MSIHANDLE hMSI = static_cast< MSIHANDLE >( lParam ); - CHAR szClassName[sizeof(QUICKSTART_CLASSNAMEA) + 1]; + WCHAR szClassName[sizeof(QUICKSTART_CLASSNAME)/sizeof(WCHAR) + 1]; - int nCharsCopied = GetClassNameA( hWnd, szClassName, sizeof( szClassName ) ); + int nCharsCopied = GetClassNameW( hWnd, szClassName, sizeof(szClassName)/sizeof(szClassName[0]) ); - if ( nCharsCopied && !_stricmp( QUICKSTART_CLASSNAMEA, szClassName ) ) + if ( nCharsCopied && !_wcsicmp( QUICKSTART_CLASSNAME, szClassName ) ) { DWORD dwProcessId; @@ -39,10 +39,10 @@ static BOOL CALLBACK EnumWindowsProc( HWND hWnd, LPARAM lParam ) if ( !_wcsnicmp( sImagePath.c_str(), sOfficeImageDir.c_str(), sOfficeImageDir.length() ) ) { - UINT uMsgShutdownQuickstart = RegisterWindowMessageA( SHUTDOWN_QUICKSTART_MESSAGEA ); + UINT uMsgShutdownQuickstart = RegisterWindowMessageW( SHUTDOWN_QUICKSTART_MESSAGE ); if ( uMsgShutdownQuickstart ) - SendMessageA( hWnd, uMsgShutdownQuickstart, 0, 0 ); + SendMessageW( hWnd, uMsgShutdownQuickstart, 0, 0 ); HANDLE hProcess = OpenProcess( SYNCHRONIZE, FALSE, dwProcessId ); |