From 5d074bd0157b16e06934568e509f2da83cac7fbc Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Thu, 12 Jun 2008 15:45:09 +0000 Subject: [PATCH] Fix call to DrawCaptionTemp () svn path=/trunk/; revision=33949 --- reactos/base/shell/explorer-new/taskswnd.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/reactos/base/shell/explorer-new/taskswnd.c b/reactos/base/shell/explorer-new/taskswnd.c index 3381b49a33c..29f432b9119 100644 --- a/reactos/base/shell/explorer-new/taskswnd.c +++ b/reactos/base/shell/explorer-new/taskswnd.c @@ -1701,17 +1701,14 @@ TaskSwichWnd_HandleItemPaint(IN OUT PTASK_SWITCH_WND This, uidctFlags |= DC_ACTIVE; } - hUser32 = LoadLibrary(TEXT("USER32.DLL")); + hUser32 = GetModuleHandle(TEXT("USER32.DLL")); if (hUser32 != NULL) { DRAWCAPTEMP DrawCapTemp; - LONG ord = 187; -#ifndef UNICODE - ord = 186; -#endif + /* DrawCaptionTemp */ DrawCapTemp = (DRAWCAPTEMP)GetProcAddress(hUser32, - (LPCSTR)ord); + PROC_NAME_DRAWCAPTIONTEMP); if (DrawCapTemp != NULL) { /* Draw the button content */ @@ -1723,8 +1720,6 @@ TaskSwichWnd_HandleItemPaint(IN OUT PTASK_SWITCH_WND This, NULL, uidctFlags); } - - FreeLibrary(hUser32); } return CDRF_SKIPDEFAULT;