Commit b1ff9621 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

kernel32: Fix a failing test in Vista.

parent 5a958794
......@@ -163,7 +163,9 @@ static void test_GetSetEnvironmentVariableW(void)
lstrcpyW(buf, fooW);
ret_size = GetEnvironmentVariableW(name, buf, lstrlenW(value));
ok_w(lstrcmpW(buf, fooW) == 0, "should not touch the buffer: %s\n", buf);
ok_w(lstrcmpW(buf, fooW) == 0 ||
lstrlenW(buf) == 0, /* Vista */
"Expected untouched or empty buffer, got \"%s\"\n", buf);
ok(ret_size == lstrlenW(value) + 1,
"should return length with terminating 0 ret_size=%d\n", ret_size);
......
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