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

Austin English austinenglish at gmail.com
Mon Sep 14 02:13:19 CDT 2009


Make sure it still compiles

-- 
-Austin
-------------- next part --------------
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-patches mailing list