aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/ssl
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-09-06 09:12:58 -0400
committerGitHub <noreply@github.com>2023-09-06 09:12:58 -0400
commit5e424d791bd98c18a81a36405a419237abcc8116 (patch)
treedd83795955a607612d27f324bdb1bfab63de2c38 /src/core/hle/service/ssl
parent70790711d24ec212048841f8f5367832ab00b789 (diff)
parent785e480b62f4ed306e389300a533c73f4e03e2bd (diff)
Merge pull request #11434 from danilaml/fix-warnings
msvc: set warning level to /W4 globally
Diffstat (limited to 'src/core/hle/service/ssl')
-rw-r--r--src/core/hle/service/ssl/ssl_backend_schannel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/ssl/ssl_backend_schannel.cpp b/src/core/hle/service/ssl/ssl_backend_schannel.cpp
index d834a0c1f..212057cfc 100644
--- a/src/core/hle/service/ssl/ssl_backend_schannel.cpp
+++ b/src/core/hle/service/ssl/ssl_backend_schannel.cpp
@@ -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);