Paul Vriens : userenv/tests: Don't crash on NT4.
Alexandre Julliard
julliard at winehq.org
Mon Sep 22 07:04:44 CDT 2008
Module: wine
Branch: master
Commit: a3974485499081410c0b951f25d85b41d4cb536e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a3974485499081410c0b951f25d85b41d4cb536e
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Sun Sep 21 20:59:46 2008 +0200
userenv/tests: 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);
More information about the wine-cvs
mailing list