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:
parent
000658a138
commit
7ca277b574
@ -21,6 +21,7 @@ GetCroppedWindowRect(HWND window,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
WINDOWPLACEMENT window_placement;
|
WINDOWPLACEMENT window_placement;
|
||||||
|
window_placement.length = sizeof(window_placement);
|
||||||
if (!GetWindowPlacement(window, &window_placement)) {
|
if (!GetWindowPlacement(window, &window_placement)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user