diff --git a/webrtc/modules/desktop_capture/desktop_geometry.h b/webrtc/modules/desktop_capture/desktop_geometry.h index e51273d8d2..b469d3b2fe 100644 --- a/webrtc/modules/desktop_capture/desktop_geometry.h +++ b/webrtc/modules/desktop_capture/desktop_geometry.h @@ -58,7 +58,7 @@ class DesktopSize { int32_t width() const { return width_; } int32_t height() const { return height_; } - bool is_empty() const { return width_ <= 0 && height_ <= 0; } + bool is_empty() const { return width_ <= 0 || height_ <= 0; } bool equals(const DesktopSize& other) const { return width_ == other.width_ && height_ == other.height_;