diff --git a/vrclient_x64/vrclient.spec b/vrclient_x64/vrclient.spec index db5cdd6bc5..051038ecf6 100644 --- a/vrclient_x64/vrclient.spec +++ b/vrclient_x64/vrclient.spec @@ -1,6 +1,6 @@ # Generated from vrclient.dll by winedump -1 stdcall HmdSystemFactory(ptr ptr) -2 stdcall VRClientCoreFactory(ptr ptr) +1 cdecl HmdSystemFactory(ptr ptr) +2 cdecl VRClientCoreFactory(ptr ptr) @ cdecl -private vrclient_init_registry() diff --git a/vrclient_x64/vrclient_main.c b/vrclient_x64/vrclient_main.c index 9dec1c6431..f946053c8a 100644 --- a/vrclient_x64/vrclient_main.c +++ b/vrclient_x64/vrclient_main.c @@ -180,7 +180,7 @@ static int load_vrclient(void) return vrclient_loaded; } -void * __stdcall HmdSystemFactory(const char *name, int *return_code) +void *CDECL HmdSystemFactory(const char *name, int *return_code) { struct vrclient_HmdSystemFactory_params params = {.name = name, .return_code = return_code}; TRACE("name: %s, return_code: %p\n", name, return_code); @@ -189,7 +189,7 @@ void * __stdcall HmdSystemFactory(const char *name, int *return_code) return create_win_interface( name, params._ret ); } -void * __stdcall VRClientCoreFactory(const char *name, int *return_code) +void *CDECL VRClientCoreFactory(const char *name, int *return_code) { struct vrclient_VRClientCoreFactory_params params = {.name = name, .return_code = return_code}; TRACE("name: %s, return_code: %p\n", name, return_code);