win-capture: explicitly cast function pointers

This solves invalid conversions when building with gcc
This commit is contained in:
martell
2015-02-05 07:24:59 +00:00
committed by jp9000
parent 1e056fd7ec
commit c5478f52d9
2 changed files with 7 additions and 7 deletions

View File

@@ -217,9 +217,9 @@ bool hook_dxgi(void)
resize_addr = get_offset_addr(dxgi_module,
global_hook_info->offsets.dxgi.resize);
hook_init(&present, present_addr, hook_present,
hook_init(&present, present_addr, (void*)hook_present,
"IDXGISwapChain::Present");
hook_init(&resize_buffers, resize_addr, hook_resize_buffers,
hook_init(&resize_buffers, resize_addr, (void*)hook_resize_buffers,
"IDXGISwapChain::ResizeBuffers");
rehook(&resize_buffers);