implemented get window title for win32

This commit is contained in:
Bayemite 2021-06-15 17:36:31 +10:00
parent 4d076583b2
commit 70948d0bcc
2 changed files with 1 additions and 2 deletions

View File

@ -1471,6 +1471,7 @@ char* _glfwPlatformGetWindowTitle(_GLFWwindow* window)
if(count == 0)
{
int error;
SetLastError(0);
error = GetLastError();
if(error != 0)

View File

@ -2084,7 +2084,6 @@ char* _glfwPlatformGetWindowTitle(_GLFWwindow* window)
char* title;
_glfwGrabErrorHandlerX11();
if (XGetWMName(_glfw.x11.display, window->x11.handle, &textProperty) == 0)
{
_glfwInputErrorX11(GLFW_PLATFORM_ERROR, "X11: Could not get window title");
@ -2115,7 +2114,6 @@ char* _glfwPlatformGetWindowTitle(_GLFWwindow* window)
XFree(textProperty.value);
if (charList != NULL)
XFreeStringList(charList);
return calloc(1, sizeof(char));
}