Skip to content

Commit

Permalink
Cant pass std::string to const char* parameter so we fixed that up
Browse files Browse the repository at this point in the history
  • Loading branch information
Marjan112 committed Dec 29, 2023
1 parent f1def93 commit f2b75f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/msgbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

void show_msg_box(const std::string& error_msg) {
#if defined(_MSC_VER)
MessageBoxA(nullptr, error_msg, nullptr, MB_ICONERROR | MB_OK);
MessageBoxA(nullptr, error_msg.c_str(), nullptr, MB_ICONERROR | MB_OK);
#elif defined(__linux__)
GtkWidget* dialog = gtk_message_dialog_new(
nullptr,
Expand Down

0 comments on commit f2b75f6

Please sign in to comment.