Commit 3699ef77 authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

Do a LoadLibraryA of WINMM upon ANIMATE_Create and a FreeLibrary upon

ANIMATE_Destroy.
parent 2fb8f9b6
......@@ -29,6 +29,8 @@ DEFAULT_DEBUG_CHANNEL(animate)
#define ANIMATE_GetInfoPtr(hWnd) ((ANIMATE_INFO *)GetWindowLongA(hWnd, 0))
HMODULE hModWinmm;
static void ANIMATE_Notify(ANIMATE_INFO* infoPtr, UINT notif)
{
SendMessageA(GetParent(infoPtr->hWnd), WM_COMMAND,
......@@ -577,6 +579,8 @@ static LRESULT ANIMATE_Create(HWND hWnd, WPARAM wParam, LPARAM lParam)
SetWindowLongA(hWnd, 0, (DWORD)infoPtr);
infoPtr->hWnd = hWnd;
hModWinmm = LoadLibraryA("WINMM");
InitializeCriticalSection(&infoPtr->cs);
return 0;
......@@ -594,6 +598,7 @@ static LRESULT ANIMATE_Destroy(HWND hWnd, WPARAM wParam, LPARAM lParam)
/* free animate info data */
COMCTL32_Free(infoPtr);
FreeLibrary(hModWinmm);
return 0;
}
......
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