Andrey Gusev : windowscodecs: Remove redundant comparison.
Module: wine Branch: master Commit: af8d3d366ca7cd98b00e5e1462663cb8f206f9dc URL: https://source.winehq.org/git/wine.git/?a=commit;h=af8d3d366ca7cd98b00e5e146... Author: Andrey Gusev <andrey.goosev(a)gmail.com> Date: Wed Dec 12 16:04:36 2018 +0200 windowscodecs: Remove redundant comparison. Signed-off-by: Andrey Gusev <andrey.goosev(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- 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 40f3ed5..e7c61cf 100644 --- a/dlls/windowscodecs/imgfactory.c +++ b/dlls/windowscodecs/imgfactory.c @@ -507,7 +507,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;
participants (1)
-
Alexandre Julliard