Fixed crash when executing extract_resources.cfg on Linux

This commit is contained in:
Robert Beckebans 2023-04-29 13:35:07 +02:00
parent ed85005809
commit ad41a268b0
2 changed files with 9 additions and 0 deletions

View file

@ -339,6 +339,8 @@ If you switch to one of those with the additional autogenerated model entities t
* Support Borderless Fullscreen and Borderless Window modes for Win32 and SDL platforms
* Fixed crash when executing extract_resources.cfg on Linux
[TRENCHBROOMBFG]
* Renamed custom TrenchBroom fork to TrenchBroomBFG

View file

@ -1406,6 +1406,13 @@ int idFile_Permanent::Write( const void* buffer, int len )
return 0;
}
// Chillax
if( buf == NULL )
{
common->Printf( "idFile_Permanent::Write: buffer is null, 0 bytes written to %s\n", name.c_str() );
return 0;
}
buf = ( byte* )buffer;
remaining = len;