From 58ceb47b25f9062c74452202848e4cbaf79e859f Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Mon, 13 Nov 2017 17:35:34 -1000 Subject: [PATCH] Windows fixes --- lib/FileIOWin32.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/FileIOWin32.cpp b/lib/FileIOWin32.cpp index dbe028a..9a00d97 100644 --- a/lib/FileIOWin32.cpp +++ b/lib/FileIOWin32.cpp @@ -116,12 +116,12 @@ public: HANDLE fp; ReadStream(SystemStringView path, bool& err) { - fp = CreateFileW(path.c_str(), GENERIC_READ, FILE_SHARE_READ, + fp = CreateFileW(path.data(), GENERIC_READ, FILE_SHARE_READ, nullptr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, nullptr); if (fp == INVALID_HANDLE_VALUE) { err = true; - LogModule.report(logvisor::Error, _S("unable to open '%s' for reading"), path.c_str()); + LogModule.report(logvisor::Error, _S("unable to open '%s' for reading"), path.data()); } } ReadStream(SystemStringView path, uint64_t offset, bool& err)