Paul Vriens <[EMAIL PROTECTED]> writes:

> if (rc != 0 && (GetLastError()==0xdeadbeef))
> {
>   /* API did not change the last error to 0 */
>   what_do_we_do_here?
> }
> 
> if (rc != 0 && (GetLastError()==0))
> {
>   /* API changed the last error to 0 */
>   do_nothing!
> }

You should not check last error on success, it's meaningless except in
a few very specific cases.

-- 
Alexandre Julliard
[EMAIL PROTECTED]

Reply via email to