Merge topic 'vs-store-phone-cert-thumbs'

e0cf77b3 cmSystemTools: Use CreateFileW explicitly to pass wchar_t path
This commit is contained in:
Brad King 2015-09-01 09:53:28 -04:00 committed by CMake Topic Stage
commit 0e08ab6ef1

View File

@ -1024,7 +1024,8 @@ std::string cmSystemTools::ComputeCertificateThumbprint(
HCERTSTORE certStore = NULL; HCERTSTORE certStore = NULL;
PCCERT_CONTEXT certContext = NULL; PCCERT_CONTEXT certContext = NULL;
HANDLE certFile = CreateFile(cmsys::Encoding::ToWide(source.c_str()).c_str(), HANDLE certFile =
CreateFileW(cmsys::Encoding::ToWide(source.c_str()).c_str(),
GENERIC_READ, GENERIC_READ,
FILE_SHARE_READ, FILE_SHARE_READ,
NULL, NULL,