mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
Fix COM_LibraryError newline handling
1. Do not append a trailing newline to the result of COM_GetLibraryError. 2. Fix call sites.
This commit is contained in:
committed by
Alibek Omarov
parent
a234888d44
commit
6d614e028a
@@ -32,8 +32,9 @@ void COM_ResetLibraryError( void )
|
||||
|
||||
void COM_PushLibraryError( const char *error )
|
||||
{
|
||||
if( s_szLastError[0] )
|
||||
Q_strncat( s_szLastError, "\n", sizeof( s_szLastError ) );
|
||||
Q_strncat( s_szLastError, error, sizeof( s_szLastError ) );
|
||||
Q_strncat( s_szLastError, "\n", sizeof( s_szLastError ) );
|
||||
}
|
||||
|
||||
void *COM_FunctionFromName_SR( void *hInstance, const char *pName )
|
||||
|
||||
Reference in New Issue
Block a user