Francois Gouget : ntdll/tests: Replace an '#if 0' with an 'if (0)'.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jan 8 06:35:24 CST 2007
Module: wine
Branch: master
Commit: 97422b1576acdc041bbfb84dc746e4fca8b3f25c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=97422b1576acdc041bbfb84dc746e4fca8b3f25c
Author: Francois Gouget <fgouget at free.fr>
Date: Sat Jan 6 19:31:36 2007 +0100
ntdll/tests: Replace an '#if 0' with an 'if (0)'.
Fix the code so it compiles without warnings.
---
dlls/ntdll/tests/reg.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/dlls/ntdll/tests/reg.c b/dlls/ntdll/tests/reg.c
index 262e33f..e21e68c 100644
--- a/dlls/ntdll/tests/reg.c
+++ b/dlls/ntdll/tests/reg.c
@@ -301,16 +301,18 @@ static void test_NtOpenKey(void)
OBJECT_ATTRIBUTES attr;
ACCESS_MASK am = KEY_READ;
-#if 0 /* Crashes Wine */
+ if (0)
+ {
+ /* Crashes Wine */
/* All NULL */
status = pNtOpenKey(NULL, 0, NULL);
- ok(status == STATUS_ACCESS_VIOLATION, "Expected STATUS_ACCESS_VIOLATION, got: 0x%08lx\n", status);
+ ok(status == STATUS_ACCESS_VIOLATION, "Expected STATUS_ACCESS_VIOLATION, got: 0x%08x\n", status);
/* NULL attributes */
status = pNtOpenKey(&key, 0, NULL);
ok(status == STATUS_ACCESS_VIOLATION /* W2K3/XP/W2K */ || status == STATUS_INVALID_PARAMETER /* NT4 */,
- "Expected STATUS_ACCESS_VIOLATION or STATUS_INVALID_PARAMETER(NT4), got: 0x%08lx\n", status);
-#endif
+ "Expected STATUS_ACCESS_VIOLATION or STATUS_INVALID_PARAMETER(NT4), got: 0x%08x\n", status);
+ }
InitializeObjectAttributes(&attr, &winetestpath, 0, 0, 0);
More information about the wine-cvs
mailing list