From 9b9d8592dbc2b7733d7c288fc4da9cf7fc66b764 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Tue, 3 Feb 2015 21:26:20 +0100 Subject: [PATCH] Fix calling convention of the d3d9createex function. May help #7421 --- Windows/D3D9Base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Windows/D3D9Base.cpp b/Windows/D3D9Base.cpp index 09a9e679d..063c8982a 100644 --- a/Windows/D3D9Base.cpp +++ b/Windows/D3D9Base.cpp @@ -46,7 +46,7 @@ Thin3DContext *D3D9_CreateThin3DContext() { return T3DCreateDX9Context(d3d, d3dEx, adapterId, device, deviceEx); } -typedef HRESULT (*DIRECT3DCREATE9EX)(UINT, IDirect3D9Ex**); +typedef HRESULT (__stdcall *DIRECT3DCREATE9EX)(UINT, IDirect3D9Ex**); bool IsWin7OrLater() { DWORD version = GetVersion();