diff --git a/src/monitor.c b/src/monitor.c index 869fdfb7..e8d6bcbe 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -341,8 +341,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();