Skip to content
Snippets Groups Projects
Commit 1db6dbfe authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

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

parent d3b0f685
No related branches found
No related tags found
No related merge requests found
......@@ -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());
s_printf(
err_msg,
"ossimSentinel1Model: cannot list files in directory '%s' : '%d'",
path,
GetLastError()
);
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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment