winecrt0: Make __wine_(un)register_resources() cdecl.

This fixes a bug where 64-bit winegstreamer.dll would fail to (un)register
CLSID_VideoProcessorMFT when run manually with regsvr32.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Zebediah Figura 2020-02-10 15:25:57 -06:00 committed by Alexandre Julliard
parent 6a3f4b8ee3
commit 5c414922b4
2 changed files with 4 additions and 4 deletions

View File

@ -94,7 +94,7 @@ static BOOL CALLBACK register_resource( HMODULE module, LPCWSTR type, LPWSTR nam
return SUCCEEDED(info->result);
}
HRESULT __wine_register_resources( HMODULE module )
HRESULT __cdecl __wine_register_resources( HMODULE module )
{
struct reg_info info;
@ -106,7 +106,7 @@ HRESULT __wine_register_resources( HMODULE module )
return info.result;
}
HRESULT __wine_unregister_resources( HMODULE module )
HRESULT __cdecl __wine_unregister_resources( HMODULE module )
{
struct reg_info info;

View File

@ -203,8 +203,8 @@ RPCRTAPI HRESULT RPC_ENTRY
RPCRTAPI HRESULT RPC_ENTRY
NdrDllUnregisterProxy( HMODULE hDll, const ProxyFileInfo **pProxyFileList, const CLSID *pclsid );
HRESULT __wine_register_resources( HMODULE module ) DECLSPEC_HIDDEN;
HRESULT __wine_unregister_resources( HMODULE module ) DECLSPEC_HIDDEN;
HRESULT __cdecl __wine_register_resources( HMODULE module ) DECLSPEC_HIDDEN;
HRESULT __cdecl __wine_unregister_resources( HMODULE module ) DECLSPEC_HIDDEN;
#define CSTDSTUBBUFFERRELEASE(pFactory) \
ULONG WINAPI CStdStubBuffer_Release(IRpcStubBuffer *This) \