mirror of
https://github.com/reactos/reactos.git
synced 2024-10-10 03:05:11 +00:00
Fix call to DrawCaptionTemp ()
svn path=/trunk/; revision=33949
This commit is contained in:
parent
cb467b55e9
commit
5d074bd015
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue