Author: weiden Date: Thu Jun 12 10:45:09 2008 New Revision: 33949
URL: http://svn.reactos.org/svn/reactos?rev=33949&view=rev Log: Fix call to DrawCaptionTemp ()
Modified: trunk/reactos/base/shell/explorer-new/taskswnd.c
Modified: trunk/reactos/base/shell/explorer-new/taskswnd.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer-new/tas... ============================================================================== --- trunk/reactos/base/shell/explorer-new/taskswnd.c [iso-8859-1] (original) +++ trunk/reactos/base/shell/explorer-new/taskswnd.c [iso-8859-1] Thu Jun 12 10:45:09 2008 @@ -1701,17 +1701,14 @@ 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 @@ NULL, uidctFlags); } - - FreeLibrary(hUser32); }
return CDRF_SKIPDEFAULT;