mirror of https://github.com/doitsujin/dxvk
[util] Return null if HMODULE is nullptr in GetProcAddress compat
dlsym with NULL will try to find the symbol from anything currently loaded.
This commit is contained in:
parent
4fc5ba66ed
commit
b05ae33273
|
@ -16,6 +16,9 @@ inline void FreeLibrary(HMODULE module) {
|
|||
}
|
||||
|
||||
inline void* GetProcAddress(HMODULE module, LPCSTR lpProcName) {
|
||||
if (!module)
|
||||
return nullptr;
|
||||
|
||||
return dlsym(module, lpProcName);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue