Do a LoadLibraryA of WINMM upon ANIMATE_Create and a FreeLibrary upon

ANIMATE_Destroy.
This commit is contained in:
Andreas Mohr 2000-03-28 19:28:33 +00:00 committed by Alexandre Julliard
parent 2fb8f9b61f
commit 3699ef77d4
1 changed files with 5 additions and 0 deletions

View File

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