win-capture: Use right call type for hook funcs

Although STDMETHODCALLTYPE is technically WINAPI (__stdcall), it's best
not to make any assumptions.
This commit is contained in:
jp9000
2015-02-14 07:34:55 -08:00
parent 5d9cac1f80
commit 8b59b606c5

View File

@@ -8,9 +8,9 @@
#include "graphics-hook.h"
#include "../funchook.h"
typedef HRESULT (WINAPI *resize_buffers_t)(IDXGISwapChain*, UINT, UINT, UINT,
DXGI_FORMAT, UINT);
typedef HRESULT (WINAPI *present_t)(IDXGISwapChain*, UINT, UINT);
typedef HRESULT (STDMETHODCALLTYPE *resize_buffers_t)(IDXGISwapChain*, UINT,
UINT, UINT, DXGI_FORMAT, UINT);
typedef HRESULT (STDMETHODCALLTYPE *present_t)(IDXGISwapChain*, UINT, UINT);
static struct func_hook resize_buffers;
static struct func_hook present;