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)
master
jp9000 2015-02-08 16:34:11 -08:00
parent fbf881ecdd
commit f8c7df2616
1 changed files with 1 additions and 1 deletions

View File

@ -425,7 +425,7 @@ static bool d3d9_init_format_backbuffer(uint32_t &cx, uint32_t &cy,
return true; 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; D3DPRESENT_PARAMETERS pp;