Fix Help for UNICODE

UNICODE fix
This commit is contained in:
Andy Vandijck 2024-02-21 09:04:07 +01:00
parent 38ec704325
commit 5c6fede153
1 changed files with 4 additions and 0 deletions

View File

@ -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() );