summaryrefslogtreecommitdiff
path: root/src/KM_fileio.cpp
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2014-09-22 16:17:05 +0000
committerjhurst <>2014-09-22 16:17:05 +0000
commit4e702586c01e263e547c0a2a64859326d37fc022 (patch)
tree2d0d13928bf8b995065586bcdcfecd26c23a119c /src/KM_fileio.cpp
parentab3e3df49a9d4a44a3bf11211e31bdeac3ef7bcf (diff)
win32 compiler fixes
Diffstat (limited to 'src/KM_fileio.cpp')
-rw-r--r--src/KM_fileio.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/KM_fileio.cpp b/src/KM_fileio.cpp
index 2b95d63..a7de3c2 100644
--- a/src/KM_fileio.cpp
+++ b/src/KM_fileio.cpp
@@ -1,5 +1,5 @@
/*
-Copyright (c) 2004-2012, John Hurst
+Copyright (c) 2004-2014, John Hurst
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -691,7 +691,7 @@ Kumu::FileReader::OpenRead(const std::string& filename) const
// suppress popup window on error
UINT prev = ::SetErrorMode(SEM_FAILCRITICALERRORS|SEM_NOOPENFILEERRORBOX);
- const_cast<FileReader*>(this)->m_Handle = ::CreateFileA(filename,
+ const_cast<FileReader*>(this)->m_Handle = ::CreateFileA(filename.c_str(),
(GENERIC_READ), // open for reading
FILE_SHARE_READ, // share for reading
NULL, // no security