+ fix possible crash when throw file exception
This commit is contained in:
parent
051a9fce73
commit
f8c0d2f05d
|
@ -126,8 +126,10 @@ const char* XMLParseException::what() const throw()
|
|||
FileException::FileException(const char * sMessage, const char * sFileName)
|
||||
: Exception( sMessage ),file(sFileName)
|
||||
{
|
||||
_sErrMsg += ": ";
|
||||
_sErrMsg += sFileName;
|
||||
if (sFileName) {
|
||||
_sErrMsg += ": ";
|
||||
_sErrMsg += sFileName;
|
||||
}
|
||||
}
|
||||
|
||||
FileException::FileException(const char * sMessage, const FileInfo& File)
|
||||
|
|
Loading…
Reference in New Issue
Block a user