advapi32: Correct tests under WOW64 (try 2)

Vitaliy Margolen wine-devel at kievinfo.com
Sat Mar 10 10:37:44 CST 2012


On 03/10/2012 12:36 AM, Alistair Leslie-Hughes wrote:
> Hi,
> Marked test as broken if it returns true.
>
> +    /* WoW64 return TRUE with the LastError set */
> +    ok((!ret && GetLastError() == ERROR_INSUFFICIENT_BUFFER) || broken(ret),
>          "%d with error %d\n", ret, GetLastError());

This is incorrect. You can check or report result of GetLastError(). But not 
both at the same time. You have to store the result in additional variable. 
Then compare and report it.

Vitaliy



More information about the wine-devel mailing list