From 78bab5183aa40d0a220440a5f9ba872bc850ab69 Mon Sep 17 00:00:00 2001 From: Dmitrii Pichulin Date: Sat, 23 Mar 2024 03:05:01 +0300 Subject: [PATCH] fix warning --- src/gostssl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gostssl.cpp b/src/gostssl.cpp index 85304c8..9ce3ee6 100644 --- a/src/gostssl.cpp +++ b/src/gostssl.cpp @@ -818,7 +818,7 @@ static BOOL CertHasUsage( PCCERT_CONTEXT pcert, const char * oid ) if( CertGetEnhancedKeyUsage( pcert, 0, ekuList, &ekuLength ) ) { if( ekuList->cUsageIdentifier == 0 ) - return GetLastError() == CRYPT_E_NOT_FOUND ? TRUE : FALSE; + return GetLastError() == (DWORD)CRYPT_E_NOT_FOUND ? TRUE : FALSE; for( DWORD i = 0; i < ekuList->cUsageIdentifier; i++ ) if( 0 == strcmp( ekuList->rgpszUsageIdentifier[i], oid ) ) return TRUE;