diff --git a/src/monitor.c b/src/monitor.c index b2ebe9e54..5527c88a7 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -307,8 +307,8 @@ GLFWAPI void glfwGetMonitorWorkarea(GLFWmonitor* handle, int* xpos, int* ypos, i *ypos = 0; if (width) *width = 0; - if (width) - *width = 0; + if (height) + *height = 0; _GLFW_REQUIRE_INIT();