From f2b5d19b307d0f5157e06e53519b66321c6c6824 Mon Sep 17 00:00:00 2001 From: James Zern Date: Mon, 8 Oct 2012 18:33:18 -0700 Subject: [PATCH] [cd]webp: always output windows errors don't hide failures with -v. Change-Id: I46485a66f266fd9e9e8c640d1051cd22cfa40658 --- examples/cwebp.c | 14 ++++++-------- examples/dwebp.c | 14 ++++++-------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/examples/cwebp.c b/examples/cwebp.c index 8441e94c..0f3e9d7b 100644 --- a/examples/cwebp.c +++ b/examples/cwebp.c @@ -95,14 +95,12 @@ static int ReadYUV(FILE* in_file, WebPPicture* const pic) { #ifdef HAVE_WINCODEC_H -#define IFS(fn) \ - do { \ - if (SUCCEEDED(hr)) \ - { \ - hr = (fn); \ - if (FAILED(hr) && verbose) \ - fprintf(stderr, #fn " failed %08x\n", hr); \ - } \ +#define IFS(fn) \ + do { \ + if (SUCCEEDED(hr)) { \ + hr = (fn); \ + if (FAILED(hr)) fprintf(stderr, #fn " failed %08x\n", hr); \ + } \ } while (0) // modified version of DEFINE_GUID from guiddef.h. diff --git a/examples/dwebp.c b/examples/dwebp.c index 49ff2fa8..12906448 100644 --- a/examples/dwebp.c +++ b/examples/dwebp.c @@ -67,14 +67,12 @@ typedef enum { #ifdef HAVE_WINCODEC_H -#define IFS(fn) \ - do { \ - if (SUCCEEDED(hr)) \ - { \ - hr = (fn); \ - if (FAILED(hr) && verbose) \ - fprintf(stderr, #fn " failed %08x\n", hr); \ - } \ +#define IFS(fn) \ + do { \ + if (SUCCEEDED(hr)) { \ + hr = (fn); \ + if (FAILED(hr)) fprintf(stderr, #fn " failed %08x\n", hr); \ + } \ } while (0) #ifdef __cplusplus