Commit 12eeed38 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

windowscodecs: Remove redundant not-NULL checks (coccinellery).

parent a51e20f5
...@@ -1348,7 +1348,7 @@ static HRESULT copypixels_to_8bppGray(struct FormatConverter *This, const WICRec ...@@ -1348,7 +1348,7 @@ static HRESULT copypixels_to_8bppGray(struct FormatConverter *This, const WICRec
if (!srcdata) return E_OUTOFMEMORY; if (!srcdata) return E_OUTOFMEMORY;
hr = copypixels_to_24bppBGR(This, prc, srcstride, srcdatasize, srcdata, source_format); hr = copypixels_to_24bppBGR(This, prc, srcstride, srcdatasize, srcdata, source_format);
if (SUCCEEDED(hr) && prc) if (SUCCEEDED(hr))
{ {
INT x, y; INT x, y;
BYTE *src = srcdata, *dst = pbBuffer; BYTE *src = srcdata, *dst = pbBuffer;
...@@ -1438,7 +1438,7 @@ static HRESULT copypixels_to_8bppIndexed(struct FormatConverter *This, const WIC ...@@ -1438,7 +1438,7 @@ static HRESULT copypixels_to_8bppIndexed(struct FormatConverter *This, const WIC
if (!srcdata) return E_OUTOFMEMORY; if (!srcdata) return E_OUTOFMEMORY;
hr = copypixels_to_24bppBGR(This, prc, srcstride, srcdatasize, srcdata, source_format); hr = copypixels_to_24bppBGR(This, prc, srcstride, srcdatasize, srcdata, source_format);
if (SUCCEEDED(hr) && prc) if (SUCCEEDED(hr))
{ {
INT x, y; INT x, y;
BYTE *src = srcdata, *dst = pbBuffer; BYTE *src = srcdata, *dst = pbBuffer;
......
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