Update FileSystemFilter.h
- Fix typo. -test in public metod against invalid parameterspull/1805/head
parent
a92dbabc25
commit
22dbb6c2d2
|
@ -85,7 +85,7 @@ public:
|
||||||
if ( mBase.empty() ) {
|
if ( mBase.empty() ) {
|
||||||
mBase = ".";
|
mBase = ".";
|
||||||
mBase += getOsSeparator();
|
mBase += getOsSeparator();
|
||||||
} else if ((s = *(base.end()-1)) != '\\' && s != '/') {
|
} else if ((s = *(mBase.end()-1)) != '\\' && s != '/') {
|
||||||
mBase += getOsSeparator();
|
mBase += getOsSeparator();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -123,6 +123,10 @@ public:
|
||||||
/** Open a new file with a given path. */
|
/** Open a new file with a given path. */
|
||||||
IOStream* Open( const char* pFile, const char* pMode = "rb") {
|
IOStream* Open( const char* pFile, const char* pMode = "rb") {
|
||||||
ai_assert( nullptr != mWrapped );
|
ai_assert( nullptr != mWrapped );
|
||||||
|
if ( nullptr == pFile || nullptr == pMode ) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
ai_assert( nullptr != pFile );
|
ai_assert( nullptr != pFile );
|
||||||
ai_assert( nullptr != pMode );
|
ai_assert( nullptr != pMode );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue