From 2d838a6ba9acb9ecd63ae4cc5f191d2b80d891a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Mon, 4 Dec 2023 22:43:46 +0100 Subject: [PATCH] vrclient: Default calling convention is cdecl. CW-Bug-Id: #22729 CW-Bug-Id: #23085 --- vrclient_x64/gen_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vrclient_x64/gen_wrapper.py b/vrclient_x64/gen_wrapper.py index aa74d5c9..7971caec 100755 --- a/vrclient_x64/gen_wrapper.py +++ b/vrclient_x64/gen_wrapper.py @@ -628,7 +628,7 @@ def callconv(cursor, prefix): tokens = cursor.get_tokens() while next(tokens).spelling != '(': pass token = next(tokens).spelling.strip('_') - token = token.replace('*', 'stdcall') + token = token.replace('*', 'cdecl') token = token.replace('S_CALLTYPE', 'cdecl') return f'{prefix[0].upper()}_{token.upper()} '