Commit 1db6dbfe authored by Rashad Kanavath's avatar Rashad Kanavath

BUG: pass c string instead of std::string for mingw

parent d3b0f685
......@@ -12,7 +12,13 @@ ossimWin32FindFileHandle::ossimWin32FindFileHandle(std::string const& path)
if (!is_valid() && (GetLastError() != ERROR_FILE_NOT_FOUND))
char err_msg[1024];
s_printf(err_msg, "ossimSentinel1Model: cannot list file in directory '%s' : '%d'", path, GetLastError());
"ossimSentinel1Model: cannot list files in directory '%s' : '%d'",
throw std::runtime_error( err_msg );
......@@ -39,4 +45,4 @@ std::string ossimWin32FindFileHandle::crt_filename() const
return m_search_data.cFileName;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment