瀏覽代碼

win-capture: Use right call type for hook funcs

Although STDMETHODCALLTYPE is technically WINAPI (__stdcall), it's best
not to make any assumptions.
jp9000 10 年之前
父節點
當前提交
8b59b606c5
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      plugins/win-capture/graphics-hook/dxgi-capture.cpp

+ 3 - 3
plugins/win-capture/graphics-hook/dxgi-capture.cpp

@@ -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;