Fix bx::dlclose when passing NULL handle.

This commit is contained in:
Бранимир Караџић
2022-09-14 20:56:23 -07:00
parent 2d57ed63c0
commit 4921078d1e

View File

@@ -191,6 +191,11 @@ namespace bx
void dlclose(void* _handle)
{
if (NULL == _handle)
{
return;
}
#if BX_PLATFORM_WINDOWS
::FreeLibrary( (HMODULE)_handle);
#elif BX_PLATFORM_EMSCRIPTEN \