Formatting.

This commit is contained in:
Camilla Berglund 2012-12-02 16:53:28 +01:00
parent 3a773342e8
commit 0bac579506

View File

@ -136,13 +136,13 @@ GLFWAPI const char* glfwGetJoystickName(int joy)
if (!_glfwInitialized) if (!_glfwInitialized)
{ {
_glfwSetError(GLFW_NOT_INITIALIZED, NULL); _glfwSetError(GLFW_NOT_INITIALIZED, NULL);
return 0; return NULL;
} }
if (joy < 0 || joy > GLFW_JOYSTICK_LAST) if (joy < 0 || joy > GLFW_JOYSTICK_LAST)
{ {
_glfwSetError(GLFW_INVALID_ENUM, NULL); _glfwSetError(GLFW_INVALID_ENUM, NULL);
return 0; return NULL;
} }
return _glfwPlatformGetJoystickName(joy); return _glfwPlatformGetJoystickName(joy);