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
This commit is contained in:
jiayl@webrtc.org 2014-05-21 16:02:31 +00:00
parent 000658a138
commit 7ca277b574

View File

@ -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;
}