From f8c7df26165cc45d1bbd7da5e5d3e8bd7baf3367 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sun, 8 Feb 2015 16:34:11 -0800 Subject: [PATCH] win-capture: Fix bug initializing via d3d9 swap Apparently neglected to use the reference operator. I think this may partially be one of the reasons why many developers still choose to use pointers instead of references, but fortunately an actual GOOD compiler warns about this (aka anything but vc) --- plugins/win-capture/graphics-hook/d3d9-capture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/win-capture/graphics-hook/d3d9-capture.cpp b/plugins/win-capture/graphics-hook/d3d9-capture.cpp index 272e49e2b..effaf5f3a 100644 --- a/plugins/win-capture/graphics-hook/d3d9-capture.cpp +++ b/plugins/win-capture/graphics-hook/d3d9-capture.cpp @@ -425,7 +425,7 @@ static bool d3d9_init_format_backbuffer(uint32_t &cx, uint32_t &cy, return true; } -static bool d3d9_init_format_swapchain(uint32_t cx, uint32_t cy, HWND window) +static bool d3d9_init_format_swapchain(uint32_t &cx, uint32_t &cy, HWND &window) { D3DPRESENT_PARAMETERS pp;