corrected return value
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
755d980deb
commit
06acc7d9a6
@ -87,7 +87,7 @@ size_t wxFileInputStream::OnSysRead(void *buffer, size_t size)
|
|||||||
|
|
||||||
off_t wxFileInputStream::OnSysSeek(off_t pos, wxSeekMode mode)
|
off_t wxFileInputStream::OnSysSeek(off_t pos, wxSeekMode mode)
|
||||||
{
|
{
|
||||||
return m_file->Seek(pos, mode);
|
return m_file->Seek(pos, mode) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
off_t wxFileInputStream::OnSysTell() const
|
off_t wxFileInputStream::OnSysTell() const
|
||||||
@ -244,7 +244,7 @@ size_t wxFFileInputStream::OnSysRead(void *buffer, size_t size)
|
|||||||
|
|
||||||
off_t wxFFileInputStream::OnSysSeek(off_t pos, wxSeekMode mode)
|
off_t wxFFileInputStream::OnSysSeek(off_t pos, wxSeekMode mode)
|
||||||
{
|
{
|
||||||
return m_file->Seek(pos, mode);
|
return ( m_file->Seek(pos, mode) ? pos : wxInvalidOffset );
|
||||||
}
|
}
|
||||||
|
|
||||||
off_t wxFFileInputStream::OnSysTell() const
|
off_t wxFFileInputStream::OnSysTell() const
|
||||||
@ -317,7 +317,7 @@ off_t wxFFileOutputStream::OnSysTell() const
|
|||||||
|
|
||||||
off_t wxFFileOutputStream::OnSysSeek(off_t pos, wxSeekMode mode)
|
off_t wxFFileOutputStream::OnSysSeek(off_t pos, wxSeekMode mode)
|
||||||
{
|
{
|
||||||
return m_file->Seek(pos, mode);
|
return ( m_file->Seek(pos, mode) ? pos : wxInvalidOffset );
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxFFileOutputStream::Sync()
|
void wxFFileOutputStream::Sync()
|
||||||
|
Loading…
Reference in New Issue
Block a user