mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Fix bx::dlclose when passing NULL handle.
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user