Chromium Code Reviews

Unified Diff: webrtc/modules/desktop_capture/screen_drawer_win.cc

Issue 2440563003: SUCCEEDED macro is misused (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/desktop_capture/screen_drawer_win.cc
diff --git a/webrtc/modules/desktop_capture/screen_drawer_win.cc b/webrtc/modules/desktop_capture/screen_drawer_win.cc
index 0b669916479c876366ac0237557745e693f37a3a..d5f4db1d8ee0f32116fb18b474306b8be8acb4e9 100644
--- a/webrtc/modules/desktop_capture/screen_drawer_win.cc
+++ b/webrtc/modules/desktop_capture/screen_drawer_win.cc
@@ -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)
+ == TRUE) {
Sergey Ulanov 2016/10/20 17:31:15 git cl format please. It formats this code differe
Hzj_jie 2016/10/20 18:15:18 Done.
return;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine