mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-10 23:27:53 +00:00
win32: lib: remove unused variable, fix error message may be not printed
This commit is contained in:
parent
f2d588574c
commit
a8f7b4fc5c
@ -953,7 +953,6 @@ table_error:
|
||||
|
||||
qboolean COM_CheckLibraryDirectDependency( const char *name, const char *depname, qboolean directpath )
|
||||
{
|
||||
MEMORYMODULE *result = NULL;
|
||||
PIMAGE_DOS_HEADER dos_header;
|
||||
PIMAGE_NT_HEADERS old_header;
|
||||
PIMAGE_DATA_DIRECTORY directory;
|
||||
@ -972,7 +971,7 @@ qboolean COM_CheckLibraryDirectDependency( const char *name, const char *depname
|
||||
if( !data )
|
||||
{
|
||||
Q_snprintf( errorstring, sizeof( errorstring ), "couldn't load %s", name );
|
||||
return false;
|
||||
goto libraryerror;
|
||||
}
|
||||
|
||||
dos_header = ( PIMAGE_DOS_HEADER )data;
|
||||
@ -1013,7 +1012,7 @@ qboolean COM_CheckLibraryDirectDependency( const char *name, const char *depname
|
||||
|
||||
libraryerror:
|
||||
Con_Printf( errorstring );
|
||||
Mem_Free( data ); // release memory
|
||||
if( data ) Mem_Free( data ); // release memory
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user