]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/HelpGen/src/scriptbinder.cpp
fix for future bakefile versions
[wxWidgets.git] / utils / HelpGen / src / scriptbinder.cpp
index 851b30388cf29660e2ffa5f109adf2c709e60856..6a5ed52c575100c457a493e6c948cfe8687380fc 100644 (file)
@@ -591,7 +591,7 @@ bool DocGeneratorBase::SaveDocument( const char*    fname,
 {
     FILE* fp = fopen( fname, fopenOptions );
 
-    if ( (int)fp == -1 ) return 0;
+    if ( !fp ) return 0;
 
     ScriptStream stm;