Skip to content

Commit

Permalink
Fix closing library handle on Win
Browse files Browse the repository at this point in the history
  • Loading branch information
beutlich committed Mar 24, 2024
1 parent af790b3 commit aeaecf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ int main(void) {
#if defined(_WIN32) /* Win32 or Win64 */

libname = "funnel.dll";
HINSTANCE handle = LoadLibrary(libname);
HINSTANCE handle = LoadLibraryA(libname);
if (handle == NULL)
{
fputs("Load failed\n", stderr);
Expand Down Expand Up @@ -110,7 +110,7 @@ int main(void) {
}

#if defined(_WIN32) /* Win32 or Win64 */
CloseHandle(handle);
FreeLibrary(handle);
#else
dlclose(handle);
#endif
Expand Down

0 comments on commit aeaecf4

Please sign in to comment.