comctl32/tests: Free the library after use.

This commit is contained in:
Paul Vriens 2008-03-10 13:53:56 +01:00 committed by Alexandre Julliard
parent 0436a5d14a
commit ef5a4a447c
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}