ntdll/tests: Replace an '#if 0' with an 'if (0)'.

Fix the code so it compiles without warnings.
This commit is contained in:
Francois Gouget 2007-01-06 19:31:36 +01:00 committed by Alexandre Julliard
parent 3ba0e7b01b
commit 97422b1576
1 changed files with 6 additions and 4 deletions

View File

@ -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);