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:
parent
bdb8df895a
commit
84fbf9ee38
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user