Workaround for a weird bug on Windows 7

Closes #3062
This commit is contained in:
Duncan Ogilvie 2023-04-14 20:22:00 +02:00
parent c05e9f2779
commit b833538632

View File

@ -14,7 +14,7 @@ HRESULT STDMETHODCALLTYPE NoRegCoCreate(const __wchar_t* dllName,
void** ppv)
{
HRESULT hr;
HMODULE hModule = LoadLibraryExW(dllName, nullptr, LOAD_WITH_ALTERED_SEARCH_PATH);
HMODULE hModule = LoadLibraryW(dllName);
pDllGetClassObject DllGetClassObject;
if(hModule && (DllGetClassObject = (pDllGetClassObject)GetProcAddress(hModule, "DllGetClassObject")))
{