Commit af8d3d36 authored by Andrey Gusev's avatar Andrey Gusev Committed by Alexandre Julliard

windowscodecs: Remove redundant comparison.

parent 2efc73b9
...@@ -507,7 +507,7 @@ static HRESULT create_bitmap_from_source_rect(IWICBitmapSource *piBitmapSource, ...@@ -507,7 +507,7 @@ static HRESULT create_bitmap_from_source_rect(IWICBitmapSource *piBitmapSource,
IWICPixelFormatInfo2 *formatinfo; IWICPixelFormatInfo2 *formatinfo;
WICPixelFormatNumericRepresentation format_type; WICPixelFormatNumericRepresentation format_type;
assert(!rect || (rect && option == WICBitmapCacheOnLoad)); assert(!rect || option == WICBitmapCacheOnLoad);
if (!piBitmapSource || !ppIBitmap) if (!piBitmapSource || !ppIBitmap)
return E_INVALIDARG; return E_INVALIDARG;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment