=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: shlwapi/tests: Use BOOL type where appropriate.

Alexandre Julliard julliard at winehq.org
Thu Feb 27 14:49:23 CST 2014


Module: wine
Branch: master
Commit: b89f92181a0f681d012fb3637f7f5044c62a9d1c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b89f92181a0f681d012fb3637f7f5044c62a9d1c

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Thu Feb 27 00:21:03 2014 +0100

shlwapi/tests: Use BOOL type where appropriate.

---

 dlls/shlwapi/tests/clsid.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/shlwapi/tests/clsid.c b/dlls/shlwapi/tests/clsid.c
index cf9be96..e664f63 100644
--- a/dlls/shlwapi/tests/clsid.c
+++ b/dlls/shlwapi/tests/clsid.c
@@ -107,7 +107,7 @@ static void test_ClassIDs(void)
   DWORD dwLen;
   BOOL bRet;
   int i = 0;
-  int is_vista = 0;
+  BOOL is_vista = FALSE;
 
   if (!pSHLWAPI_269 || !pSHLWAPI_23)
     return;
@@ -115,7 +115,7 @@ static void test_ClassIDs(void)
   while (*guids)
   {
     dwLen = pSHLWAPI_23(*guids, szBuff, 256);
-    if (!i && dwLen == S_OK) is_vista = 1;  /* seems to return an HRESULT on vista */
+    if (!i && dwLen == S_OK) is_vista = TRUE;  /* seems to return an HRESULT on vista */
     ok(dwLen == (is_vista ? S_OK : 39), "wrong size %u for id %d\n", dwLen, i);
 
     bRet = pSHLWAPI_269(szBuff, &guid);




More information about the wine-cvs mailing list