Vitaliy Margolen wrote:
ChangeLog: user: Preserve LastError.
You can move the ok() for GetLastError() direct after GetKeyNameTextA():
SetLastError(0xdeadbeef); len = GetKeyNameTextA(i << 16, buff, sizeof(buff));
ok( GetLastError() == 0xdeadbeef,
"%d Wrong LastError = %ld\n", i, GetLastError()); ok(len | !buff[0], "%d: Buffer is not zeroed\n", i);
Just my 2 ยข