mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-23 03:41:10 +00:00
windows: Fix calling convention for RoInitialize/RoUninitialize
Fixes #5563
This commit is contained in:
parent
d4a01bfef0
commit
923cb4463e
|
@ -145,7 +145,7 @@ WIN_RoInitialize(void)
|
||||||
#ifdef __WINRT__
|
#ifdef __WINRT__
|
||||||
return S_OK;
|
return S_OK;
|
||||||
#else
|
#else
|
||||||
typedef HRESULT (*RoInitialize_t)(RO_INIT_TYPE initType);
|
typedef HRESULT (WINAPI *RoInitialize_t)(RO_INIT_TYPE initType);
|
||||||
RoInitialize_t RoInitializeFunc = (RoInitialize_t)WIN_LoadComBaseFunction("RoInitialize");
|
RoInitialize_t RoInitializeFunc = (RoInitialize_t)WIN_LoadComBaseFunction("RoInitialize");
|
||||||
if (RoInitializeFunc) {
|
if (RoInitializeFunc) {
|
||||||
return RoInitializeFunc(RO_INIT_MULTITHREADED);
|
return RoInitializeFunc(RO_INIT_MULTITHREADED);
|
||||||
|
@ -159,7 +159,7 @@ void
|
||||||
WIN_RoUninitialize(void)
|
WIN_RoUninitialize(void)
|
||||||
{
|
{
|
||||||
#ifndef __WINRT__
|
#ifndef __WINRT__
|
||||||
typedef void (*RoUninitialize_t)(void);
|
typedef void (WINAPI *RoUninitialize_t)(void);
|
||||||
RoUninitialize_t RoUninitializeFunc = (RoUninitialize_t)WIN_LoadComBaseFunction("RoUninitialize");
|
RoUninitialize_t RoUninitializeFunc = (RoUninitialize_t)WIN_LoadComBaseFunction("RoUninitialize");
|
||||||
if (RoUninitializeFunc) {
|
if (RoUninitializeFunc) {
|
||||||
RoUninitializeFunc();
|
RoUninitializeFunc();
|
||||||
|
|
Loading…
Reference in a new issue