mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
platform: win32: remove forgotten code
This commit is contained in:
1
3rdparty/opus/opus
vendored
Submodule
1
3rdparty/opus/opus
vendored
Submodule
Submodule 3rdparty/opus/opus added at 1639592368
@@ -351,27 +351,18 @@ static PIMAGE_IMPORT_DESCRIPTOR GetImportDescriptor( const char *name, byte *dat
|
||||
|
||||
static void ListMissingModules( dll_user_t *hInst )
|
||||
{
|
||||
DWORD cbNeeded;
|
||||
PIMAGE_NT_HEADERS peHeader;
|
||||
PIMAGE_IMPORT_DESCRIPTOR importDesc;
|
||||
HANDLE hProcess;
|
||||
byte *data;
|
||||
|
||||
if ( !hInst ) return;
|
||||
|
||||
hProcess = GetCurrentProcess();
|
||||
|
||||
data = FS_LoadFile( hInst->dllName, NULL, false );
|
||||
if ( !data )
|
||||
{
|
||||
CloseHandle( hProcess );
|
||||
return;
|
||||
}
|
||||
if ( !data ) return;
|
||||
|
||||
importDesc = GetImportDescriptor( hInst->dllName, data, &peHeader );
|
||||
if ( !importDesc )
|
||||
{
|
||||
CloseHandle( hProcess );
|
||||
Mem_Free( data );
|
||||
return;
|
||||
}
|
||||
@@ -388,7 +379,6 @@ static void ListMissingModules( dll_user_t *hInst )
|
||||
FreeLibrary( hMod );
|
||||
}
|
||||
|
||||
CloseHandle( hProcess );
|
||||
Mem_Free( data );
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user