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)
r = SetEnvironmentVariableA("WINE_XYZZY", "ZZYZX");
expect(TRUE, 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);
if (0)
{
/* Crashes on NT4 */
r = CreateEnvironmentBlock(NULL, htok, FALSE);
expect(FALSE, r);
}
r = CreateEnvironmentBlock((LPVOID) &env1, NULL, FALSE);
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