Index: webrtc/modules/desktop_capture/win/dxgi_texture.cc |
diff --git a/webrtc/modules/desktop_capture/win/dxgi_texture.cc b/webrtc/modules/desktop_capture/win/dxgi_texture.cc |
index 964e00f9c74ca28328fc622481c59818376b812d..f9cfd82ea1d9e4edd527a048b601b4e74c903db3 100644 |
--- a/webrtc/modules/desktop_capture/win/dxgi_texture.cc |
+++ b/webrtc/modules/desktop_capture/win/dxgi_texture.cc |
@@ -42,7 +42,8 @@ DxgiTexture::~DxgiTexture() = default; |
bool DxgiTexture::CopyFrom(const DXGI_OUTDUPL_FRAME_INFO& frame_info, |
IDXGIResource* resource) { |
- RTC_DCHECK(resource && frame_info.AccumulatedFrames > 0); |
+ RTC_DCHECK_GT(frame_info.AccumulatedFrames, 0); |
+ RTC_DCHECK(resource); |
ComPtr<ID3D11Texture2D> texture; |
_com_error error = resource->QueryInterface( |
__uuidof(ID3D11Texture2D), |