]> git.saurik.com Git - wxWidgets.git/blob - src/common/arcall.cpp
fixing overrelease and out-of-bounds write, fixes #13725
[wxWidgets.git] / src / common / arcall.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/common/arcall.cpp
3 // Purpose: wxArchive link all archive streams
4 // Author: Mike Wetherell
5 // RCS-ID: $Id$
6 // Copyright: (c) 2006 Mike Wetherell
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 // For compilers that support precompilation, includes "wx.h".
11 #include "wx/wxprec.h"
12
13 #ifdef __BORLANDC__
14 #pragma hdrstop
15 #endif
16
17 #if wxUSE_ARCHIVE_STREAMS
18
19 #if wxUSE_ZIPSTREAM
20 #include "wx/zipstrm.h"
21 #endif
22 #if wxUSE_TARSTREAM
23 #include "wx/tarstrm.h"
24 #endif
25
26 // Reference archive classes to ensure they are linked into a statically
27 // linked program that uses Find or GetFirst to look for an archive handler.
28 // It is in its own file so that the user can override this behaviour by
29 // providing their own implementation.
30
31 void wxUseArchiveClasses()
32 {
33 #if wxUSE_ZIPSTREAM
34 wxZipClassFactory();
35 #endif
36 #if wxUSE_TARSTREAM
37 wxTarClassFactory();
38 #endif
39 }
40
41 #endif // wxUSE_ARCHIVE_STREAMS