]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fs_arc.cpp
fixing overrelease and out-of-bounds write, fixes #13725
[wxWidgets.git] / src / common / fs_arc.cpp
index bd6c244f4bf90c178bc3574b9d0435a012eb17f4..4b4c382cac7e1ebea9721e357f464e27997c24e4 100644 (file)
@@ -405,7 +405,7 @@ wxFSFile* wxArchiveFSHandler::OpenFile(
     }
 
 #if WXWIN_COMPATIBILITY_2_6 && wxUSE_ZIPSTREAM
-    if (factory->IsKindOf(CLASSINFO(wxZipClassFactory)))
+    if (wxDynamicCast(factory, wxZipClassFactory))
         ((wxZipInputStream*)s)->m_allowSeeking = true;
 #endif // WXWIN_COMPATIBILITY_2_6