From 4e702586c01e263e547c0a2a64859326d37fc022 Mon Sep 17 00:00:00 2001 From: jhurst Date: Mon, 22 Sep 2014 16:17:05 +0000 Subject: win32 compiler fixes --- src/KM_fileio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/KM_fileio.cpp') 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(this)->m_Handle = ::CreateFileA(filename, + const_cast(this)->m_Handle = ::CreateFileA(filename.c_str(), (GENERIC_READ), // open for reading FILE_SHARE_READ, // share for reading NULL, // no security -- cgit v1.2.3