From ef5a4a447c1ad5dd66bcf5f6318b6121c4d06d42 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Mon, 10 Mar 2008 13:53:56 +0100 Subject: [PATCH] comctl32/tests: Free the library after use. --- dlls/comctl32/tests/rebar.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/comctl32/tests/rebar.c b/dlls/comctl32/tests/rebar.c index 0dd659cdf21..e5bea381025 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); }