]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/display/display.cpp
changes wxDirExists() to accept wxString instead of wxChar*, so that it can be used...
[wxWidgets.git] / samples / display / display.cpp
index 7ee089971d09884481c85f981437e7910e74bcc0..683cb0375e4c7d05e565f0cbc8db964364f0f8ef 100644 (file)
@@ -167,6 +167,9 @@ IMPLEMENT_APP(MyApp)
 // 'Main program' equivalent: the program execution "starts" here
 bool MyApp::OnInit()
 {
+    if ( !wxApp::OnInit() )
+        return false;
+
 #ifdef __WXMSW__
     if ( argc == 2 && !wxStricmp(argv[1],  _T("/dx")) )
     {