Wayland: Fix error type for allocation failure

This commit is contained in:
Camilla Löwy
2022-02-11 12:36:35 +01:00
parent 4a68926bfd
commit 152f50cd01
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1675,7 +1675,7 @@ static GLFWbool growClipboardString(void)
clipboard = _glfw_realloc(clipboard, _glfw.wl.clipboardSize * 2);
if (!clipboard)
{
_glfwInputError(GLFW_PLATFORM_ERROR,
_glfwInputError(GLFW_OUT_OF_MEMORY,
"Wayland: Impossible to grow clipboard string");
return GLFW_FALSE;
}