mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-17 10:59:39 +00:00
Fixed warnings on Visual C++
This commit is contained in:
1 parent
60c2213893
commit
a9f5f8683f
2 files changed
+3
-4
No files matched your search
@@ -3555,7 +3555,7 @@ inline bool load_system_certs_on_windows(X509_STORE *store) {
|
||||
if (!hStore) { return false; }
|
||||
|
||||
PCCERT_CONTEXT pContext = NULL;
|
||||
while (pContext = CertEnumCertificatesInStore(hStore, pContext)) {
|
||||
while ((pContext = CertEnumCertificatesInStore(hStore, pContext)) != nullptr) {
|
||||
auto encoded_cert =
|
||||
static_cast<const unsigned char *>(pContext->pbCertEncoded);
|
||||
|
||||
@@ -4348,7 +4348,6 @@ Server::write_content_with_provider(Stream &strm, const Request &req,
|
||||
is_shutting_down);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
inline bool Server::read_content(Stream &strm, Request &req, Response &res) {
|
||||
|
||||
Reference in new issue
Block a user