comctl32/tests: Free the library after use.
This commit is contained in:
parent
0436a5d14a
commit
ef5a4a447c
|
@ -835,6 +835,7 @@ START_TEST(rebar)
|
||||||
MSG msg;
|
MSG msg;
|
||||||
RECT rc;
|
RECT rc;
|
||||||
|
|
||||||
|
/* LoadLibrary is needed. This file has no references to functions in comctl32 */
|
||||||
hComctl32 = LoadLibraryA("comctl32.dll");
|
hComctl32 = LoadLibraryA("comctl32.dll");
|
||||||
pInitCommonControlsEx = (void*)GetProcAddress(hComctl32, "InitCommonControlsEx");
|
pInitCommonControlsEx = (void*)GetProcAddress(hComctl32, "InitCommonControlsEx");
|
||||||
if (!pInitCommonControlsEx)
|
if (!pInitCommonControlsEx)
|
||||||
|
@ -879,4 +880,6 @@ START_TEST(rebar)
|
||||||
DispatchMessageA(&msg);
|
DispatchMessageA(&msg);
|
||||||
}
|
}
|
||||||
DestroyWindow(hMainWnd);
|
DestroyWindow(hMainWnd);
|
||||||
|
|
||||||
|
FreeLibrary(hComctl32);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue