SUCCEEDED macro is misused

SUCCEEDED macro is designed for HRESULT instead of BOOL.
This change exposes my lack of knowledge of native Windows APIs. :(

BUG=https://bugs.chromium.org/p/chromium/issues/detail?id=647067

Review-Url: https://codereview.webrtc.org/2440563003
Cr-Commit-Position: refs/heads/master@{#14716}
This commit is contained in:
zijiehe 2016-10-20 17:00:37 -07:00 committed by Commit bot
parent bdb8df895a
commit 84fbf9ee38

View File

@ -174,8 +174,8 @@ void ScreenDrawerWin::DrawDot(DesktopVector vect, RgbaColor color) {
}
void ScreenDrawerWin::BringToFront() {
if (SUCCEEDED(SetWindowPos(
window_, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE))) {
if (SetWindowPos(window_, HWND_TOPMOST, 0, 0, 0, 0,
SWP_NOMOVE | SWP_NOSIZE) != FALSE) {
return;
}