]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/helpwin.cpp
wxExecute() fixes and doc updates: the return value for sync exec case is now
[wxWidgets.git] / src / msw / helpwin.cpp
index 9e1e6a5997e3834e5fd00efe56407133f9bc8de8..068165f21edd5d773fbc90ff568a5c75331a2bfc 100644 (file)
 
 #include "wx/msw/helpwin.h"
 
 
 #include "wx/msw/helpwin.h"
 
-#if USE_HELP
+#if wxUSE_HELP
 #include <time.h>
 
 #include <time.h>
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #include <wx/msw/private.h>
 #endif
 
 #include <wx/msw/private.h>
 #endif
 
@@ -96,7 +96,7 @@ bool wxWinHelpController::DisplaySection(int section)
 bool wxWinHelpController::DisplayBlock(long block)
 {
     // Use context number -- a very rough equivalent to block id!
 bool wxWinHelpController::DisplayBlock(long block)
 {
     // Use context number -- a very rough equivalent to block id!
-    if (!m_helpFile) return FALSE;
+    if (m_helpFile == "") return FALSE;
 
     char buf[_MAXPATHLEN];
     strcpy(buf, m_helpFile);
 
     char buf[_MAXPATHLEN];
     strcpy(buf, m_helpFile);
@@ -145,4 +145,4 @@ void wxWinHelpController::OnQuit(void)
 {
 }
 
 {
 }
 
-#endif // USE_HELP
+#endif // wxUSE_HELP