Fix call to DrawCaptionTemp ()

svn path=/trunk/; revision=33949
This commit is contained in:
Thomas Bluemel 2008-06-12 15:45:09 +00:00
parent cb467b55e9
commit 5d074bd015

View file

@ -1701,17 +1701,14 @@ TaskSwichWnd_HandleItemPaint(IN OUT PTASK_SWITCH_WND This,
uidctFlags |= DC_ACTIVE; uidctFlags |= DC_ACTIVE;
} }
hUser32 = LoadLibrary(TEXT("USER32.DLL")); hUser32 = GetModuleHandle(TEXT("USER32.DLL"));
if (hUser32 != NULL) if (hUser32 != NULL)
{ {
DRAWCAPTEMP DrawCapTemp; DRAWCAPTEMP DrawCapTemp;
LONG ord = 187;
#ifndef UNICODE
ord = 186;
#endif
/* DrawCaptionTemp */ /* DrawCaptionTemp */
DrawCapTemp = (DRAWCAPTEMP)GetProcAddress(hUser32, DrawCapTemp = (DRAWCAPTEMP)GetProcAddress(hUser32,
(LPCSTR)ord); PROC_NAME_DRAWCAPTIONTEMP);
if (DrawCapTemp != NULL) if (DrawCapTemp != NULL)
{ {
/* Draw the button content */ /* Draw the button content */
@ -1723,8 +1720,6 @@ TaskSwichWnd_HandleItemPaint(IN OUT PTASK_SWITCH_WND This,
NULL, NULL,
uidctFlags); uidctFlags);
} }
FreeLibrary(hUser32);
} }
return CDRF_SKIPDEFAULT; return CDRF_SKIPDEFAULT;