1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 10:48:51 -05:00
This commit is contained in:
Camilla Berglund 2015-11-03 15:18:20 +01:00
parent 486354d63f
commit fc250c3df7

View File

@ -60,7 +60,7 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved)
// Load necessary libraries (DLLs) // Load necessary libraries (DLLs)
// //
static GLFWbool initLibraries(void) static GLFWbool loadLibraries(void)
{ {
_glfw.win32.winmm.instance = LoadLibraryA("winmm.dll"); _glfw.win32.winmm.instance = LoadLibraryA("winmm.dll");
if (!_glfw.win32.winmm.instance) if (!_glfw.win32.winmm.instance)
@ -111,7 +111,7 @@ static GLFWbool initLibraries(void)
// Unload used libraries (DLLs) // Unload used libraries (DLLs)
// //
static void terminateLibraries(void) static void freeLibraries(void)
{ {
if (_glfw.win32.winmm.instance) if (_glfw.win32.winmm.instance)
FreeLibrary(_glfw.win32.winmm.instance); FreeLibrary(_glfw.win32.winmm.instance);
@ -342,7 +342,7 @@ int _glfwPlatformInit(void)
SystemParametersInfoW(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, UIntToPtr(0), SystemParametersInfoW(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, UIntToPtr(0),
SPIF_SENDCHANGE); SPIF_SENDCHANGE);
if (!initLibraries()) if (!loadLibraries())
return GLFW_FALSE; return GLFW_FALSE;
createKeyTables(); createKeyTables();
@ -377,7 +377,8 @@ void _glfwPlatformTerminate(void)
_glfwTerminateJoysticks(); _glfwTerminateJoysticks();
_glfwTerminateContextAPI(); _glfwTerminateContextAPI();
terminateLibraries();
freeLibraries();
} }
const char* _glfwPlatformGetVersionString(void) const char* _glfwPlatformGetVersionString(void)