X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5100cabffa34c38db26884577113d01f21cda446..1e1ca6f0b25e1142a6d9ca496b68ec6649df5d69:/samples/help/demo.cpp diff --git a/samples/help/demo.cpp b/samples/help/demo.cpp index d1bc2f6f7a..daba593c1a 100644 --- a/samples/help/demo.cpp +++ b/samples/help/demo.cpp @@ -319,8 +319,9 @@ bool MyApp::OnInit() } #endif -#if wxUSE_MS_HTML_HELP - if ( !frame->GetMSHtmlHelpController().Initialize("doc") ) +#if defined(__WXMSW__) && wxUSE_MS_HTML_HELP + wxString path(wxGetCwd()); + if ( !frame->GetMSHtmlHelpController().Initialize(path + "\\doc.chm") ) { wxLogError("Cannot initialize the MS HTML help system, aborting.");