Fixed amalgamated build. (#3546)

This commit is contained in:
Branimir Karadžić
2026-01-10 09:39:37 -08:00
committed by GitHub
parent 79cc62a7ee
commit cded7e8d6c
2 changed files with 28 additions and 28 deletions

View File

@@ -2734,8 +2734,12 @@ namespace bgfx
void* findModule(const char* _name)
{
#if BX_PLATFORM_WINDOWS
// NOTE: there was some reason to do it this way instead of simply calling GetModuleHandleA,
// but not sure what it was.
if (NULL == _name
|| '\0' == *_name)
{
return GetModuleHandleA(NULL);
}
HANDLE process = GetCurrentProcess();
DWORD size;
BOOL result = EnumProcessModules(process