>From 783dc8ec9a67ccc718ac2c3aea6c29e5793546c9 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Sun, 21 Sep 2008 20:59:46 +0200 Subject: [PATCH] Don't crash on NT4 --- dlls/userenv/tests/userenv.c | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/dlls/userenv/tests/userenv.c b/dlls/userenv/tests/userenv.c index d277f36..df2774b 100644 --- a/dlls/userenv/tests/userenv.c +++ b/dlls/userenv/tests/userenv.c @@ -189,14 +189,22 @@ static void test_create_env(void) r = SetEnvironmentVariableA("WINE_XYZZY", "ZZYZX"); expect(TRUE, r); - r = CreateEnvironmentBlock(NULL, NULL, FALSE); - expect(FALSE, r); + if (0) + { + /* Crashes on NT4 */ + r = CreateEnvironmentBlock(NULL, NULL, FALSE); + expect(FALSE, r); + } r = OpenProcessToken(GetCurrentProcess(), TOKEN_QUERY|TOKEN_DUPLICATE, &htok); expect(TRUE, r); - r = CreateEnvironmentBlock(NULL, htok, FALSE); - expect(FALSE, r); + if (0) + { + /* Crashes on NT4 */ + r = CreateEnvironmentBlock(NULL, htok, FALSE); + expect(FALSE, r); + } r = CreateEnvironmentBlock((LPVOID) &env1, NULL, FALSE); expect(TRUE, r); -- 1.5.5.1