diff --git a/3rdparty/opus/opus b/3rdparty/opus/opus new file mode 160000 index 00000000..16395923 --- /dev/null +++ b/3rdparty/opus/opus @@ -0,0 +1 @@ +Subproject commit 1639592368fc2dadc82d63f3be6f17ed0b554d71 diff --git a/engine/platform/win32/lib_win.c b/engine/platform/win32/lib_win.c index 997123f3..21ee1fab 100644 --- a/engine/platform/win32/lib_win.c +++ b/engine/platform/win32/lib_win.c @@ -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; }