summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/file/winfile.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-03-14 19:06:57 +1100
committer Vas Crabb <vas@vastheman.com>2016-03-14 19:06:57 +1100
commitb6ea568352dd4c67809fd91f2632dbc614c0222e (patch)
tree0a221cb48832127af3d72dae6f30391c89d3566f /src/osd/modules/file/winfile.cpp
parent42fbb9c3967fcda37f2d9ae17d5796a79cf027b9 (diff)
Win fix
Diffstat (limited to 'src/osd/modules/file/winfile.cpp')
-rw-r--r--src/osd/modules/file/winfile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osd/modules/file/winfile.cpp b/src/osd/modules/file/winfile.cpp
index 67de56fec0a..894ce5b58bb 100644
--- a/src/osd/modules/file/winfile.cpp
+++ b/src/osd/modules/file/winfile.cpp
@@ -191,7 +191,7 @@ osd_file::error osd_file::open(std::string const &orig_path, UINT32 openflags, p
return win_open_ptty(path, openflags, file, filesize);
// convert path to TCHAR
- TCHAR *t_path = tstring_from_utf8(path);
+ TCHAR *t_path = tstring_from_utf8(path.c_str());
osd_disposer<TCHAR> t_path_disposer(t_path);
if (!t_path)
return error::OUT_OF_MEMORY;
@@ -204,7 +204,7 @@ osd_file::error osd_file::open(std::string const &orig_path, UINT32 openflags, p
DWORD disposition, access, sharemode;
if (openflags & OPEN_FLAG_WRITE)
{
- disposition = (!is_path_to_physical_drive(path) && (openflags & OPEN_FLAG_CREATE)) ? CREATE_ALWAYS : OPEN_EXISTING;
+ disposition = (!is_path_to_physical_drive(path.c_str()) && (openflags & OPEN_FLAG_CREATE)) ? CREATE_ALWAYS : OPEN_EXISTING;
access = (openflags & OPEN_FLAG_READ) ? (GENERIC_READ | GENERIC_WRITE) : GENERIC_WRITE;
sharemode = FILE_SHARE_READ;
}