Re: [1/2] wininet: Use proper error code define instead of its value
2 Dec
2010
2 Dec
'10
6:07 p.m.
Nikolay Sivov <nsivov(a)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(a)winehq.org
5492
Age (days ago)
5492
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard