From 98ea8b0bb816fa0e5bd6de53ba22a53172fbbc68 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 21 Jan 2021 16:17:24 +1100 Subject: [PATCH] [host] nvfbc: remove invalid close of the HMONITOR handle --- host/platform/Windows/capture/NVFBC/src/nvfbc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/host/platform/Windows/capture/NVFBC/src/nvfbc.c b/host/platform/Windows/capture/NVFBC/src/nvfbc.c index ec1c5522..ad9a0658 100644 --- a/host/platform/Windows/capture/NVFBC/src/nvfbc.c +++ b/host/platform/Windows/capture/NVFBC/src/nvfbc.c @@ -77,7 +77,6 @@ static void getDesktopSize(unsigned int * width, unsigned int * height, unsigned GetMonitorInfo(monitor, &monitorInfo); *dpi = monitor_dpi(monitor); - CloseHandle(monitor); *width = monitorInfo.rcMonitor.right - monitorInfo.rcMonitor.left; *height = monitorInfo.rcMonitor.bottom - monitorInfo.rcMonitor.top;