From 593b658eb1491d4b3103971aba6592aff2765f0e Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Mon, 8 Sep 2025 01:46:00 +0800 Subject: Fix some compile errors on Windows. --- src/platform/gui/win/Window.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/platform/gui/win/Window.cpp') diff --git a/src/platform/gui/win/Window.cpp b/src/platform/gui/win/Window.cpp index 5bd14323..eeb2cde4 100644 --- a/src/platform/gui/win/Window.cpp +++ b/src/platform/gui/win/Window.cpp @@ -245,10 +245,9 @@ void WinNativeWindow::SetCursor(std::shared_ptr cursor) { auto lg = [](StringView reason) { CRU_LOG_TAG_WARN( - - u"Failed to set cursor because {} when window is visible. (We need to " - u"update cursor if it is inside the window.) Last error code: {}.", - reason, ::GetLastError()); + "Failed to set cursor because {} when window is visible. (We need to " + "update cursor if it is inside the window.) Last error code: {}.", + reason.ToUtf8(), ::GetLastError()); }; ::POINT point; -- cgit v1.2.3