ntdll/tests: Replace an '#if 0' with an 'if (0)'.
Fix the code so it compiles without warnings.
This commit is contained in:
parent
3ba0e7b01b
commit
97422b1576
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue