From 1d38b258b8d67be8cf62412be9b77c1ca4f010e4 Mon Sep 17 00:00:00 2001 From: James Zern Date: Tue, 8 May 2012 18:09:42 -0700 Subject: [PATCH] cwebp/windows: use MAKE_REFGUID where appropriate Change-Id: If595c75a833d37df86c16bf926da5f032015c68e --- examples/cwebp.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/cwebp.c b/examples/cwebp.c index 9b4452d2..c011b7ea 100644 --- a/examples/cwebp.c +++ b/examples/cwebp.c @@ -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; } }