Fix seek bug. Fixes issue 144.
This commit is contained in:
parent
bd74a9ffc6
commit
f0bcbdca5c
@ -59,7 +59,7 @@ namespace nv
|
|||||||
virtual void seek( uint pos )
|
virtual void seek( uint pos )
|
||||||
{
|
{
|
||||||
nvDebugCheck(m_fp != NULL);
|
nvDebugCheck(m_fp != NULL);
|
||||||
nvDebugCheck(pos < size());
|
nvDebugCheck(pos <= size());
|
||||||
#if NV_OS_WIN32
|
#if NV_OS_WIN32
|
||||||
_fseek_nolock(m_fp, pos, SEEK_SET);
|
_fseek_nolock(m_fp, pos, SEEK_SET);
|
||||||
#elif NV_OS_LINUX
|
#elif NV_OS_LINUX
|
||||||
|
Loading…
Reference in New Issue
Block a user