Austin English : advapi32/tests: Avoid #if 0, use if(0) instead.

Alexandre Julliard julliard at winehq.org
Tue Sep 15 17:47:20 CDT 2009


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

Author: Austin English <austinenglish at gmail.com>
Date:   Mon Sep 14 02:13:19 2009 -0500

advapi32/tests: Avoid #if 0, use if(0) instead.

---

 dlls/advapi32/tests/cred.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/advapi32/tests/cred.c b/dlls/advapi32/tests/cred.c
index 8d66ed0..6b7fa26 100644
--- a/dlls/advapi32/tests/cred.c
+++ b/dlls/advapi32/tests/cred.c
@@ -154,12 +154,13 @@ static void test_CredReadDomainCredentialsA(void)
 
     /* these two tests would crash on both native and Wine. Implementations
      * does not check for NULL output pointers and try to zero them out early */
-#if 0
+if(0)
+{
     ok(!pCredReadDomainCredentialsA(&info, 0, NULL, &creds) &&
             GetLastError() == ERROR_INVALID_PARAMETER, "!\n");
     ok(!pCredReadDomainCredentialsA(&info, 0, &count, NULL) &&
             GetLastError() == ERROR_INVALID_PARAMETER, "!\n");
-#endif
+}
 
     SetLastError(0xdeadbeef);
     ret = pCredReadDomainCredentialsA(NULL, 0, &count, &creds);




More information about the wine-cvs mailing list