cwebp/windows: use MAKE_REFGUID where appropriate

Change-Id: If595c75a833d37df86c16bf926da5f032015c68e
This commit is contained in:
James Zern 2012-05-08 18:09:42 -07:00
parent 817ef6e9af
commit 1d38b258b8

View File

@ -176,10 +176,13 @@ static HRESULT ReadPictureWithWIC(const char* filename,
for (i = 0;
has_alpha && i < sizeof(alphaContainers)/sizeof(alphaContainers[0]);
++i) {
if (IsEqualGUID(&srcContainerFormat, alphaContainers[i])) {
if (IsEqualGUID(MAKE_REFGUID(srcContainerFormat),
MAKE_REFGUID(*alphaContainers[i]))) {
has_alpha =
IsEqualGUID(&srcPixelFormat, &GUID_WICPixelFormat32bppRGBA_) ||
IsEqualGUID(&srcPixelFormat, &GUID_WICPixelFormat32bppBGRA_);
IsEqualGUID(MAKE_REFGUID(srcPixelFormat),
MAKE_REFGUID(GUID_WICPixelFormat32bppRGBA_)) ||
IsEqualGUID(MAKE_REFGUID(srcPixelFormat),
MAKE_REFGUID(GUID_WICPixelFormat32bppBGRA_));
break;
}
}