[1/2] wininet: Use proper error code define instead of its value
Alexandre Julliard
julliard at winehq.org
Thu Dec 2 12:07:45 CST 2010
Nikolay Sivov <nsivov at codeweavers.com> writes:
> @@ -270,7 +270,7 @@ static DWORD netconn_verify_cert(PCCERT_CONTEXT cert, HCERTSTORE store,
> else if (chain->TrustStatus.dwErrorStatus & ~supportedErrors)
> err = ERROR_INTERNET_SEC_INVALID_CERT;
> }
> - if (!err)
> + if (err == ERROR_SUCCESS)
There's no reason to change this. 0 meaning success is a common
convention, and at least as clear as using an error code for no error.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list