Przeglądaj źródła

Merge branch 'bug7306'

Nick Mathewson 11 lat temu
rodzic
commit
81fcebcd05
2 zmienionych plików z 6 dodań i 1 usunięć
  1. 5 0
      changes/bug7306
  2. 1 1
      src/test/test_util.c

+ 5 - 0
changes/bug7306

@@ -0,0 +1,5 @@
+  o Minor bugfixes:
+    - Fix a crash when debugging unit tests on windows: deallocate a
+      shared library with FreeLibrary, not CloseHandle. Fixes bug #7306;
+      bugfix on 0.2.2.17-alpha. Reported by "ultramage".
+

+ 1 - 1
src/test/test_util.c

@@ -2290,7 +2290,7 @@ test_util_load_win_lib(void *ptr)
   tt_assert(h);
  done:
   if (h)
-    CloseHandle(h);
+    FreeLibrary(h);
 }
 #endif