From d8ba75473a76184c9766eaf8da9be710b64be850 Mon Sep 17 00:00:00 2001 From: Andrew Nguyen Date: Wed, 13 Jan 2010 06:44:53 -0600 Subject: [PATCH] ntdll/tests: Allow native crashing code to be compiled. --- dlls/ntdll/tests/rtl.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dlls/ntdll/tests/rtl.c b/dlls/ntdll/tests/rtl.c index 37479a74613..6bc12bb814d 100644 --- a/dlls/ntdll/tests/rtl.c +++ b/dlls/ntdll/tests/rtl.c @@ -990,9 +990,12 @@ static void test_RtlAllocateAndInitializeSid(void) ret = pRtlFreeSid(psid); ok(!ret, "RtlFreeSid error %08x\n", ret); - /* these tests crash on XP - ret = pRtlAllocateAndInitializeSid(NULL, 0, 1, 2, 3, 4, 5, 6, 7, 8, &psid); - ret = pRtlAllocateAndInitializeSid(&sia, 0, 1, 2, 3, 4, 5, 6, 7, 8, NULL);*/ + /* these tests crash on XP */ + if (0) + { + ret = pRtlAllocateAndInitializeSid(NULL, 0, 1, 2, 3, 4, 5, 6, 7, 8, &psid); + ret = pRtlAllocateAndInitializeSid(&sia, 0, 1, 2, 3, 4, 5, 6, 7, 8, NULL); + } ret = pRtlAllocateAndInitializeSid(&sia, 9, 1, 2, 3, 4, 5, 6, 7, 8, &psid); ok(ret == STATUS_INVALID_SID, "wrong error %08x\n", ret);