Paul Vriens : comctl32/tests: Free the library after use.

Alexandre Julliard julliard at winehq.org
Mon Mar 10 17:05:04 CDT 2008


Module: wine
Branch: master
Commit: ef5a4a447c1ad5dd66bcf5f6318b6121c4d06d42
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ef5a4a447c1ad5dd66bcf5f6318b6121c4d06d42

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Mon Mar 10 13:53:56 2008 +0100

comctl32/tests: Free the library after use.

---

 dlls/comctl32/tests/rebar.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/comctl32/tests/rebar.c b/dlls/comctl32/tests/rebar.c
index 0dd659c..e5bea38 100644
--- a/dlls/comctl32/tests/rebar.c
+++ b/dlls/comctl32/tests/rebar.c
@@ -835,6 +835,7 @@ START_TEST(rebar)
     MSG msg;
     RECT rc;
 
+    /* LoadLibrary is needed. This file has no references to functions in comctl32 */
     hComctl32 = LoadLibraryA("comctl32.dll");
     pInitCommonControlsEx = (void*)GetProcAddress(hComctl32, "InitCommonControlsEx");
     if (!pInitCommonControlsEx)
@@ -879,4 +880,6 @@ START_TEST(rebar)
         DispatchMessageA(&msg);
     }
     DestroyWindow(hMainWnd);
+
+    FreeLibrary(hComctl32);
 }




More information about the wine-cvs mailing list