From: Alexandre Julliard Subject: Re: [PATCH v2 1/3] kernel32/tests: Fix GetLastError() checks in environment tests. Message-Id: <87tv4obk1g.fsf@wine> Date: Tue, 21 Jan 2020 22:02:03 +0100 In-Reply-To: <20200121113738.2962135-1-git@vladimir.panteleev.md> (Vladimir Panteleev's message of "Tue, 21 Jan 2020 11:37:36 +0000") References: <20200121113738.2962135-1-git@vladimir.panteleev.md> Vladimir Panteleev writes: > @@ -255,25 +260,31 @@ static void test_GetSetEnvironmentVariableW(void) > ok(ret == TRUE, "should not fail with empty value but GetLastError=%d\n", GetLastError()); > > lstrcpyW(buf, fooW); > + SetLastError(0); You should probably use 0xdeadbeef here (and also in the A test that this was copied from). -- Alexandre Julliard julliard@winehq.org