Added more asserts to rfl.cpp.

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@654 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
ahodgkinson
2006-07-11 21:12:41 +00:00
parent 04c8a75de2
commit da163680f2

View File

@@ -329,7 +329,7 @@ RCODE F_Rfl::positionTo(
{
if (rc == FERR_IO_END_OF_FILE)
{
rc = RC_SET( FERR_NOT_RFL);
rc = RC_SET_AND_ASSERT( FERR_NOT_RFL);
}
else
{
@@ -340,7 +340,7 @@ RCODE F_Rfl::positionTo(
}
else if (uiBytesRead < m_pCurrentBuf->uiRflBufBytes)
{
rc = RC_SET( FERR_NOT_RFL);
rc = RC_SET_AND_ASSERT( FERR_NOT_RFL);
goto Exit;
}
}
@@ -890,14 +890,14 @@ RCODE F_Rfl::verifyHeader(
if (f_memcmp( &pucHeader[RFL_NAME_POS], RFL_NAME, RFL_NAME_LEN) != 0)
{
rc = RC_SET( FERR_NOT_RFL);
rc = RC_SET_AND_ASSERT( FERR_NOT_RFL);
goto Exit;
}
if (f_memcmp( &pucHeader[RFL_VERSION_POS],
RFL_VERSION, RFL_VERSION_LEN) != 0)
{
rc = RC_SET( FERR_NOT_RFL);
rc = RC_SET_AND_ASSERT( FERR_NOT_RFL);
goto Exit;
}
@@ -1020,7 +1020,7 @@ RCODE F_Rfl::openFile(
{
if (rc == FERR_IO_END_OF_FILE)
{
rc = RC_SET( FERR_NOT_RFL);
rc = RC_SET_AND_ASSERT( FERR_NOT_RFL);
}
else
{
@@ -1034,7 +1034,7 @@ RCODE F_Rfl::openFile(
if (uiBytesRead < 512)
{
rc = RC_SET( FERR_NOT_RFL);
rc = RC_SET_AND_ASSERT( FERR_NOT_RFL);
goto Exit;
}
@@ -5216,7 +5216,7 @@ Get_Next_File:
if (uiBytesRead < 512)
{
rc = RC_SET( FERR_NOT_RFL);
rc = RC_SET_AND_ASSERT( FERR_NOT_RFL);
goto Exit;
}
@@ -7170,7 +7170,7 @@ Retry_Open:
if (uiBytesRead < 512)
{
rc = RC_SET( FERR_NOT_RFL);
rc = RC_SET_AND_ASSERT( FERR_NOT_RFL);
goto Exit;
}