diff --git a/dll/shellext/netshell/connectmanager.cpp b/dll/shellext/netshell/connectmanager.cpp index 88780be11d0..da733db2da4 100644 --- a/dll/shellext/netshell/connectmanager.cpp +++ b/dll/shellext/netshell/connectmanager.cpp @@ -559,5 +559,9 @@ HRESULT CNetConnectionManager::Initialize() HRESULT WINAPI CNetConnectionManager_CreateInstance(REFIID riid, LPVOID * ppv) { +#if USE_CUSTOM_CONMGR return ShellObjectCreatorInit(riid, ppv); +#else + return CoCreateInstance(CLSID_ConnectionManager, NULL, CLSCTX_ALL, riid, ppv); +#endif } diff --git a/dll/shellext/netshell/precomp.h b/dll/shellext/netshell/precomp.h index f568da7528f..7dc020ca442 100644 --- a/dll/shellext/netshell/precomp.h +++ b/dll/shellext/netshell/precomp.h @@ -49,6 +49,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(shell); #define NCF_FILTER 0x400 #define NCF_NDIS_PROTOCOL 0x4000 +#define USE_CUSTOM_CONMGR 1 + /* globals */ extern HINSTANCE netshell_hInstance;