Commit a3974485 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

userenv/tests: Don't crash on NT4.

parent 8ccfe80c
...@@ -189,14 +189,22 @@ static void test_create_env(void) ...@@ -189,14 +189,22 @@ static void test_create_env(void)
r = SetEnvironmentVariableA("WINE_XYZZY", "ZZYZX"); r = SetEnvironmentVariableA("WINE_XYZZY", "ZZYZX");
expect(TRUE, r); expect(TRUE, r);
r = CreateEnvironmentBlock(NULL, NULL, FALSE); if (0)
expect(FALSE, r); {
/* Crashes on NT4 */
r = CreateEnvironmentBlock(NULL, NULL, FALSE);
expect(FALSE, r);
}
r = OpenProcessToken(GetCurrentProcess(), TOKEN_QUERY|TOKEN_DUPLICATE, &htok); r = OpenProcessToken(GetCurrentProcess(), TOKEN_QUERY|TOKEN_DUPLICATE, &htok);
expect(TRUE, r); expect(TRUE, r);
r = CreateEnvironmentBlock(NULL, htok, FALSE); if (0)
expect(FALSE, r); {
/* Crashes on NT4 */
r = CreateEnvironmentBlock(NULL, htok, FALSE);
expect(FALSE, r);
}
r = CreateEnvironmentBlock((LPVOID) &env1, NULL, FALSE); r = CreateEnvironmentBlock((LPVOID) &env1, NULL, FALSE);
expect(TRUE, r); expect(TRUE, r);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment