diff --git a/src/win32_window.c b/src/win32_window.c index 4ed6538c..264d35c7 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -2880,7 +2880,7 @@ VkResult _glfwCreateWindowSurfaceWin32(VkInstance instance, { _glfwInputError(GLFW_API_UNAVAILABLE, "Win32: Vulkan instance missing VK_KHR_win32_surface extension"); - return ; + return VK_ERROR_EXTENSION_NOT_PRESENT; } memset(&sci, 0, sizeof(sci)); @@ -2896,7 +2896,7 @@ VkResult _glfwCreateWindowSurfaceWin32(VkInstance instance, "unk"); } - return VK_ERROR_EXTENSION_NOT_PRESENT; + return err; } GLFWAPI HWND glfwGetWin32Window(GLFWwindow* handle)