[PATCH 1/2] kernel32/tests: Add UTF-7 non-encoded surrounding characters tests.

Alexandre Julliard julliard at winehq.org
Wed Nov 5 08:38:57 CST 2014


Alex Henrie <alexhenrie24 at 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.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list