msvc: set warning level to /W4 globally

And fix a bunch of warnings
This commit is contained in:
Danila Malyutin 2023-09-02 21:45:06 +04:00
parent 89a2d48cf8
commit 785e480b62
13 changed files with 17 additions and 20 deletions

View file

@ -477,7 +477,8 @@ public:
return ResultInternalError;
}
PCCERT_CONTEXT some_cert = nullptr;
while ((some_cert = CertEnumCertificatesInStore(returned_cert->hCertStore, some_cert))) {
while ((some_cert = CertEnumCertificatesInStore(returned_cert->hCertStore, some_cert)) !=
nullptr) {
out_certs->emplace_back(static_cast<u8*>(some_cert->pbCertEncoded),
static_cast<u8*>(some_cert->pbCertEncoded) +
some_cert->cbCertEncoded);