Incomplete setup build fix.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba 2005-04-05 14:56:08 +00:00
parent 4d7528a1df
commit 8add533eb2

View File

@ -1930,14 +1930,18 @@ bool wxZipOutputStream::DoCreate(wxZipEntry *entry, bool raw /*=false*/)
// and if this is the first entry test for seekability
if (m_headerOffset == 0 && m_parent_o_stream->IsSeekable()) {
#if wxUSE_LOG
bool logging = wxLog::IsEnabled();
wxLogNull nolog;
#endif // wxUSE_LOG
wxFileOffset here = m_parent_o_stream->TellO();
if (here != wxInvalidOffset && here >= 4) {
if (m_parent_o_stream->SeekO(here - 4) == here - 4) {
m_offsetAdjustment = here - 4;
#if wxUSE_LOG
wxLog::EnableLogging(logging);
#endif // wxUSE_LOG
m_parent_o_stream->SeekO(here);
}
}