diff --git a/src/SFML/Window/Win32/WindowImplWin32.cpp b/src/SFML/Window/Win32/WindowImplWin32.cpp index e411821ae..889c0c2fd 100644 --- a/src/SFML/Window/Win32/WindowImplWin32.cpp +++ b/src/SFML/Window/Win32/WindowImplWin32.cpp @@ -213,7 +213,7 @@ m_cursorGrabbed(m_fullscreen) // Create the window m_handle = CreateWindowW(className, - title.toWideString().c_str(), + reinterpret_cast(title.toUtf16().c_str()), win32Style, left, top, @@ -358,7 +358,7 @@ void WindowImplWin32::setSize(Vector2u size) //////////////////////////////////////////////////////////// void WindowImplWin32::setTitle(const String& title) { - SetWindowTextW(m_handle, title.toWideString().c_str()); + SetWindowTextW(m_handle, reinterpret_cast(title.toUtf16().c_str())); }