Browse Source

win32: lib: remove unused variable, fix error message may be not printed

pull/2/head
Alibek Omarov 5 years ago committed by GitHub
parent
commit
a8f7b4fc5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      engine/platform/win32/lib_win.c

5
engine/platform/win32/lib_win.c

@ -953,7 +953,6 @@ table_error: @@ -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 @@ -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 @@ -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…
Cancel
Save