Alex Henrie alexhenrie24@gmail.com writes:
SetLastError(0xdeadbeef);
len = WideCharToMultiByte(CP_UTF7, 0, input, 4, output, sizeof(output) - 1, NULL, NULL);
ok(GetLastError() == 0xdeadbeef,
"i=0x%04x: expected error=0xdeadbeef, got error=0x%x\n", i, GetLastError());
Testing last error on success is not useful and should be avoided.