From a3974485499081410c0b951f25d85b41d4cb536e Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Sun, 21 Sep 2008 20:59:46 +0200 Subject: [PATCH] userenv/tests: Don't crash on NT4. --- dlls/userenv/tests/userenv.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/dlls/userenv/tests/userenv.c b/dlls/userenv/tests/userenv.c index d277f360411..df2774b6b6a 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); -- 2.11.4.GIT