diff --git a/include/rpcproxy.h b/include/rpcproxy.h index fe7eb3e9d10..991ace8dfac 100644 --- a/include/rpcproxy.h +++ b/include/rpcproxy.h @@ -289,22 +289,11 @@ ULONG WINAPI CStdStubBuffer2_Release(IRpcStubBuffer *This) \ #endif #ifdef WINE_REGISTER_DLL - -#define WINE_DO_REGISTER_DLL(pfl, 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 - +# define WINE_DO_REGISTER_DLL(pfl, clsid) return __wine_register_resources( hProxyDll, (clsid) ) +# define WINE_DO_UNREGISTER_DLL(pfl, clsid) return __wine_unregister_resources( hProxyDll, (clsid) ) #else - -#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_REGISTER_DLL(pfl, clsid) return NdrDllRegisterProxy( hProxyDll, (pfl), (clsid) ) +# define WINE_DO_UNREGISTER_DLL(pfl, clsid) return NdrDllUnregisterProxy( hProxyDll, (pfl), (clsid) ) #endif