diff options
author | Brad King <brad.king@kitware.com> | 2015-09-01 13:53:28 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-09-01 13:53:28 (GMT) |
commit | 0e08ab6ef165791e582fce9aecc2a288075a7da4 (patch) | |
tree | 313576357baea0023c5348f20ea5dbfa9c59c928 /Source/cmSystemTools.cxx | |
parent | d73c445a25a4c778c12c29f0b8473ae4c3afcaac (diff) | |
parent | e0cf77b3109e74cbc4c050e9907dacc9f0f40f70 (diff) | |
download | CMake-0e08ab6ef165791e582fce9aecc2a288075a7da4.zip CMake-0e08ab6ef165791e582fce9aecc2a288075a7da4.tar.gz CMake-0e08ab6ef165791e582fce9aecc2a288075a7da4.tar.bz2 |
Merge topic 'vs-store-phone-cert-thumbs'
e0cf77b3 cmSystemTools: Use CreateFileW explicitly to pass wchar_t path
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index f711016..cac6a12 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1024,13 +1024,14 @@ std::string cmSystemTools::ComputeCertificateThumbprint( HCERTSTORE certStore = NULL; PCCERT_CONTEXT certContext = NULL; - HANDLE certFile = CreateFile(cmsys::Encoding::ToWide(source.c_str()).c_str(), - GENERIC_READ, - FILE_SHARE_READ, - NULL, - OPEN_EXISTING, - FILE_ATTRIBUTE_NORMAL, - NULL); + HANDLE certFile = + CreateFileW(cmsys::Encoding::ToWide(source.c_str()).c_str(), + GENERIC_READ, + FILE_SHARE_READ, + NULL, + OPEN_EXISTING, + FILE_ATTRIBUTE_NORMAL, + NULL); if (certFile != INVALID_HANDLE_VALUE && certFile != NULL) { |