]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/animate/anitest.cpp
Fix testing for existence of paths with trailing separators in wxMSW.
[wxWidgets.git] / samples / animate / anitest.cpp
index 413558002f2f69156afb57e5ad2ab8ca95c8c46b..e958d585a215b616abcb6cd57e110bd28523eb0e 100644 (file)
@@ -28,7 +28,7 @@
     #include "wx/wx.h"
 #endif
 
-#ifndef __WXMSW__
+#ifndef wxHAS_IMAGES_IN_RESOURCES
     #include "../sample.xpm"
 #endif
 
@@ -293,7 +293,7 @@ void MyFrame::OnOpen(wxCommandEvent& WXUNUSED(event))
         m_animationCtrl->Play();
     #else
         wxFileInputStream stream(filename);
-        if (!stream.Ok())
+        if (!stream.IsOk())
         {
             wxLogError(wxT("Sorry, this animation is not a valid format for wxAnimation."));
             return;