Use TEXT() macro to handle ANSI vs UNICODE string literal.

This commit is contained in:
Wedge009 2021-06-02 20:37:30 +10:00
parent c687e31701
commit ce2eba73ac

View File

@ -20,7 +20,7 @@ namespace network_asio
void load_tls_root_certs(boost::asio::ssl::context &ctx)
{
#ifdef _WIN32
HCERTSTORE hStore = CertOpenSystemStore(0, "ROOT");
HCERTSTORE hStore = CertOpenSystemStore(0, TEXT("ROOT"));
assert(hStore != NULL);
X509_STORE *store = X509_STORE_new();