commit 53aba482ca5d34f6c2dc100ef7b5f90d089390d5 parent 06fa4940ba9dbac1096539059621ad2dc978f4b5 Author: Michael Savage <mikejsavage@gmail.com> Date: Mon Jan 23 23:19:58 +0200 Error checking in library_close on Windows Diffstat:
win32_library.h | | | 6 | +++--- |
diff --git a/win32_library.h b/win32_library.h @@ -30,7 +30,7 @@ const char * library_last_error() { } void library_close( Library lib ) { - // return FreeLibrary( lib ) == 0; - // TODO: check for errors - FreeLibrary( lib ); + if( FreeLibrary( lib ) == 0 ) { + FATAL( "FreeLibrary" ); + } }