Commit ef5a4a44 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

comctl32/tests: Free the library after use.

parent 0436a5d1
......@@ -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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment