From 7ca277b57434afafef50dfbd371fd84fb96c7145 Mon Sep 17 00:00:00 2001 From: "jiayl@webrtc.org" Date: Wed, 21 May 2014 16:02:31 +0000 Subject: [PATCH] Initializes WINDOWPLACEMENT::length in GetCroppedWindowRect. BUG=https://code.google.com/p/webrtc/issues/detail?id=3196 R=sergeyu@chromium.org Review URL: https://webrtc-codereview.appspot.com/21529004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6213 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/modules/desktop_capture/win/window_capture_utils.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/webrtc/modules/desktop_capture/win/window_capture_utils.cc b/webrtc/modules/desktop_capture/win/window_capture_utils.cc index c878a63cdd..03e021954b 100644 --- a/webrtc/modules/desktop_capture/win/window_capture_utils.cc +++ b/webrtc/modules/desktop_capture/win/window_capture_utils.cc @@ -21,6 +21,7 @@ GetCroppedWindowRect(HWND window, return false; } WINDOWPLACEMENT window_placement; + window_placement.length = sizeof(window_placement); if (!GetWindowPlacement(window, &window_placement)) { return false; }