diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2016-09-16 14:46:11 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2016-09-16 14:46:11 -0400 |
commit | f0d958c747cfc42dd831eb2f088e963475c0ed54 (patch) | |
tree | 39cac193f0b58c9d95c3774fb4964259975e840b /src/mongo/db/storage/storage_engine_lock_file_windows.cpp | |
parent | 3174e2d67d077fa8362c3f1200024d69773344fd (diff) | |
download | mongo-f0d958c747cfc42dd831eb2f088e963475c0ed54.tar.gz |
SERVER-16725 Incorrect character conversion between UTF-8 and UTF-16
Diffstat (limited to 'src/mongo/db/storage/storage_engine_lock_file_windows.cpp')
-rw-r--r-- | src/mongo/db/storage/storage_engine_lock_file_windows.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/storage/storage_engine_lock_file_windows.cpp b/src/mongo/db/storage/storage_engine_lock_file_windows.cpp index 0016f8f0873..24d87a548ec 100644 --- a/src/mongo/db/storage/storage_engine_lock_file_windows.cpp +++ b/src/mongo/db/storage/storage_engine_lock_file_windows.cpp @@ -40,6 +40,7 @@ #include "mongo/platform/process_id.h" #include "mongo/util/log.h" #include "mongo/util/mongoutils/str.h" +#include "mongo/util/text.h" namespace mongo { @@ -113,7 +114,7 @@ Status StorageEngineLockFile::open() { << ex.what()); } - HANDLE lockFileHandle = CreateFileA(_filespec.c_str(), + HANDLE lockFileHandle = CreateFileW(toNativeString(_filespec.c_str()).c_str(), GENERIC_READ | GENERIC_WRITE, 0 /* do not allow anyone else access */, NULL, |