summaryrefslogtreecommitdiff
path: root/setup_native/source/win32/customactions/sellang/sorttree.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'setup_native/source/win32/customactions/sellang/sorttree.cxx')
-rw-r--r--setup_native/source/win32/customactions/sellang/sorttree.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/setup_native/source/win32/customactions/sellang/sorttree.cxx b/setup_native/source/win32/customactions/sellang/sorttree.cxx
index ed0c0c144bfe..b34832e49137 100644
--- a/setup_native/source/win32/customactions/sellang/sorttree.cxx
+++ b/setup_native/source/win32/customactions/sellang/sorttree.cxx
@@ -12,7 +12,7 @@
#endif
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
-#include <msiquery.h>
+#include <msi.h>
#include <commctrl.h>
#ifdef _MSC_VER
#pragma warning(pop)
@@ -25,32 +25,32 @@ extern "C" UINT __stdcall SortTree(MSIHANDLE)
HWND hwndMSI = FindWindowW(L"MsiDialogCloseClass", nullptr);
if (hwndMSI == nullptr)
{
- OutputDebugStringA("SortTree: MsiDialogCloseClass not found\n");
+ OutputDebugStringW(L"SortTree: MsiDialogCloseClass not found\n");
return ERROR_SUCCESS;
}
HWND hwndTV = FindWindowExW(hwndMSI, nullptr, L"SysTreeView32", nullptr);
if (hwndTV == nullptr)
{
- OutputDebugStringA("SortTree: SysTreeView32 not found\n");
+ OutputDebugStringW(L"SortTree: SysTreeView32 not found\n");
return ERROR_SUCCESS;
}
HTREEITEM optional = TreeView_GetRoot(hwndTV);
if (optional == nullptr)
{
- OutputDebugStringA("SortTree: Optional Components branch not found\n");
+ OutputDebugStringW(L"SortTree: Optional Components branch not found\n");
return ERROR_SUCCESS;
}
HTREEITEM dicts = TreeView_GetChild(hwndTV, optional);
if (dicts == nullptr)
{
- OutputDebugStringA("SortTree: Dictionaries branch not found\n");
+ OutputDebugStringW(L"SortTree: Dictionaries branch not found\n");
return ERROR_SUCCESS;
}
TreeView_SortChildren(hwndTV, dicts, TRUE);
HTREEITEM langs = TreeView_GetNextSibling(hwndTV, optional);
if (langs == nullptr)
{
- OutputDebugStringA("SortTree: Additional UI Languages branch not found\n");
+ OutputDebugStringW(L"SortTree: Additional UI Languages branch not found\n");
return ERROR_SUCCESS;
}
TreeView_SortChildren(hwndTV, langs, TRUE);