Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DummyLoader: Skip registering the Image3dApi interfaces as part of th…
Browse files Browse the repository at this point in the history
…e loader

Done to prevent the loader from "hijacking" the registration of the IImage3dSource and IImage3dFileLoader interfaces that should really be the responsibility of the "host" SW to register.
Fredrik Orderud committed Jul 19, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 54517e3 commit 65d5dc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DummyLoader/Main.cpp
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ STDAPI DllGetClassObject(_In_ REFCLSID rclsid, _In_ REFIID riid, _Outptr_ LPVOID
STDAPI DllRegisterServer()
{
// registers object, typelib and all interfaces in typelib
return _AtlModule.DllRegisterServer();
return _AtlModule.DllRegisterServer(false); // skip TypeLib registration since that is the responsibility of the host
}

// DllUnregisterServer - Removes entries from the system registry.

0 comments on commit 65d5dc7

Please sign in to comment.