mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-10-10 19:15:24 +00:00
Fixed amalgamated build. (#3546)
This commit is contained in:
committed by
GitHub
parent
79cc62a7ee
commit
cded7e8d6c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user