Ver código fonte

Cocoa: Fix glfwGetCocoaWindow error return value

Camilla Löwy 1 ano atrás
pai
commit
e28397bda0
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/cocoa_window.m

+ 1 - 1
src/cocoa_window.m

@@ -2047,7 +2047,7 @@ GLFWAPI id glfwGetCocoaWindow(GLFWwindow* handle)
     {
         _glfwInputError(GLFW_PLATFORM_UNAVAILABLE,
                         "Cocoa: Platform not initialized");
-        return NULL;
+        return nil;
     }
 
     return window->ns.object;