[PATCH] windowscodecs: Remove redundant comparison.

Andrey Gusev andrey.goosev at gmail.com
Wed Dec 12 08:04:36 CST 2018


Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
---
 dlls/windowscodecs/imgfactory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/windowscodecs/imgfactory.c b/dlls/windowscodecs/imgfactory.c
index fb235fbbe1..7b1c2298dc 100644
--- a/dlls/windowscodecs/imgfactory.c
+++ b/dlls/windowscodecs/imgfactory.c
@@ -506,7 +506,7 @@ static HRESULT create_bitmap_from_source_rect(IWICBitmapSource *piBitmapSource,
     IWICPixelFormatInfo2 *formatinfo;
     WICPixelFormatNumericRepresentation format_type;
 
-    assert(!rect || (rect && option == WICBitmapCacheOnLoad));
+    assert(!rect || option == WICBitmapCacheOnLoad);
 
     if (!piBitmapSource || !ppIBitmap)
         return E_INVALIDARG;
-- 
2.17.2




More information about the wine-devel mailing list