From 5c6fede1536b9518e105c08c7c17aec45ef42e49 Mon Sep 17 00:00:00 2001 From: Andy Vandijck Date: Wed, 21 Feb 2024 09:04:07 +0100 Subject: [PATCH] Fix Help for UNICODE UNICODE fix --- src/drivers/Qt/HelpPages.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/drivers/Qt/HelpPages.cpp b/src/drivers/Qt/HelpPages.cpp index b7d0118f..28806350 100644 --- a/src/drivers/Qt/HelpPages.cpp +++ b/src/drivers/Qt/HelpPages.cpp @@ -101,7 +101,11 @@ void consoleWin_t::OpenHelpWindow(std::string subpage) #if defined(WIN32) && (QT_VERSION_MAJOR < 6) // Windows specific HtmlHelp library function +#if defined(_UNICODE) || defined(UNICODE) + helpWin = HtmlHelp(HWND(winId()), helpFileName.wc_str(), HH_DISPLAY_TOPIC, (DWORD)NULL); +#else helpWin = HtmlHelp(HWND(winId()), helpFileName.c_str(), HH_DISPLAY_TOPIC, (DWORD)NULL); +#endif if ( helpWin == NULL ) { printf("Error: Failed to open help file '%s'\n", helpFileName.c_str() );