Commit 9626a976 authored by Alexandre Julliard's avatar Alexandre Julliard

include: Don't use the Ndr functions at all when using registration resources.

parent bdcaa396
...@@ -289,22 +289,11 @@ ULONG WINAPI CStdStubBuffer2_Release(IRpcStubBuffer *This) \ ...@@ -289,22 +289,11 @@ ULONG WINAPI CStdStubBuffer2_Release(IRpcStubBuffer *This) \
#endif #endif
#ifdef WINE_REGISTER_DLL #ifdef WINE_REGISTER_DLL
# define WINE_DO_REGISTER_DLL(pfl, clsid) return __wine_register_resources( hProxyDll, (clsid) )
#define WINE_DO_REGISTER_DLL(pfl, clsid) \ # define WINE_DO_UNREGISTER_DLL(pfl, clsid) return __wine_unregister_resources( hProxyDll, (clsid) )
HRESULT hr = NdrDllRegisterProxy( hProxyDll, (pfl), (clsid) ); \
if (SUCCEEDED(hr)) hr = __wine_register_resources( hProxyDll, clsid ); \
return hr
#define WINE_DO_UNREGISTER_DLL(pfl, clsid) \
HRESULT hr = __wine_unregister_resources( hProxyDll, clsid ); \
if (SUCCEEDED(hr)) hr = NdrDllUnregisterProxy( hProxyDll, (pfl), (clsid) ); \
return hr
#else #else
# define WINE_DO_REGISTER_DLL(pfl, clsid) return NdrDllRegisterProxy( hProxyDll, (pfl), (clsid) )
#define WINE_DO_REGISTER_DLL(pfl, clsid) return NdrDllRegisterProxy( hProxyDll, (pfl), (clsid) ) # define WINE_DO_UNREGISTER_DLL(pfl, clsid) return NdrDllUnregisterProxy( hProxyDll, (pfl), (clsid) )
#define WINE_DO_UNREGISTER_DLL(pfl, clsid) return NdrDllUnregisterProxy( hProxyDll, (pfl), (clsid) )
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment