Skip to content

Commit

Permalink
Fix build error on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
teusbenschop committed May 12, 2024
1 parent bd1a5db commit 87d9ccd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions executable/bibledit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ static void sigsegv_handler ([[maybe_unused]] int sig)

#ifdef HAVE_WINDOWS
void my_invalid_parameter_handler(const wchar_t* expression, const wchar_t* function, const wchar_t* file, unsigned int line, uintptr_t pReserved) {
wstring wexpression(expression);
std::wstring wexpression(expression);
std::string sexpression(wexpression.begin(), wexpression.end());
wstring wfunction(function);
std::wstring wfunction(function);
std::string sfunction(wfunction.begin(), wfunction.end());
wstring wfile (file);
std::wstring wfile (file);
std::string sfile(wfile.begin(), wfile.end());
Database_Logs::log ("Invalid parameter detected in function " + sfunction + " in file " + sfile + " line " + filter::strings::convert_to_string ((size_t)line) + " expression " + sexpression + ".");
}
Expand Down

0 comments on commit 87d9ccd

Please sign in to comment.