aboutsummaryrefslogtreecommitdiff
path: root/c/win.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c/win.cpp')
-rw-r--r--c/win.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/win.cpp b/c/win.cpp
index 97e85a4..95ec9a7 100644
--- a/c/win.cpp
+++ b/c/win.cpp
@@ -70,11 +70,11 @@ static void CenterNextWindow(HWND hWnd)
}, nullptr, GetCurrentThreadId()));
}
-int EBMessageBox(const wchar_t* const wszText, const wchar_t* const wszCaption, const UINT uType)
+int EBMessageBox(const std::wstring_view text, const std::wstring_view caption, const UINT uType)
{
extern HWND g_hWnd;
CenterNextWindow(g_hWnd);
- return MessageBox(g_hWnd, wszText, wszCaption, uType);
+ return MessageBox(g_hWnd, text.data(), caption.data(), uType);
}
int GetRelativeCursorPos(const HWND hWnd, POINT* const pt) noexcept