Changeset 5847 for trunk/src


Ignore:
Timestamp:
Jun 1, 2001, 3:13:24 AM (24 years ago)
Author:
phaller
Message:

Removed pre-initializing of icon cache

Location:
trunk/src/shell32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shell32/iconcache.c

    r5618 r5847  
    1 /* $Id: iconcache.c,v 1.4 2001-04-28 13:33:44 sandervl Exp $ */
     1/* $Id: iconcache.c,v 1.5 2001-06-01 01:13:23 phaller Exp $ */
    22/*
    33 *      shell icon cache (SIC)
     
    784784        index = pDPA_InsertPtr(sic_hdpa, 0x7fff, lpsice);
    785785        if ( INVALID_INDEX == index )
    786         {
     786        {
     787          // 2001-06-01 PH memory leak in WINE
     788          HeapFree(GetProcessHeap(),0,lpsice->sSourceFile);
     789         
    787790          SHFree(lpsice);
    788791          ret = INVALID_INDEX;
     
    917920        ImageList_SetBkColor(ShellSmallIconList, GetSysColor(COLOR_WINDOW));
    918921        ImageList_SetBkColor(ShellBigIconList, GetSysColor(COLOR_WINDOW));
    919 
     922 
     923  /* 2001-06-01 PH pre-initializing the list takes
     924   * a long time. On-demand loading of the icons should
     925   * be sufficient! (7 secs on P133)
     926   *
    920927        for (index=1; index<46; index++)
    921928        {
     
    929936          }
    930937          SIC_IconAppend ("shell32.dll", index, hSm, hLg);
    931         }
     938          }
     939   */
    932940
    933941        TRACE("hIconSmall=%p hIconBig=%p\n",ShellSmallIconList, ShellBigIconList);
  • trunk/src/shell32/shell32_main.c

    r5618 r5847  
    1 /* $Id: shell32_main.c,v 1.2 2001-04-28 13:33:45 sandervl Exp $ */
     1/* $Id: shell32_main.c,v 1.3 2001-06-01 01:13:24 phaller Exp $ */
    22/*
    33 *                              Shell basics
     
    3939#include <misc.h>
    4040#endif
     41
     42#define PERF_ENABLED
     43#include "perf.h"
    4144
    4245DEFAULT_DEBUG_CHANNEL(shell);
     
    889892BOOL WINAPI Shell32LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
    890893{
     894  PERF_INIT(shell32_i1)
     895  PERF_INIT(shell32_i2)
     896  PERF_INIT(shell32_i3)
     897  PERF_INIT(shell32_i4)
     898  PERF_INIT(shell32_i5)
     899   
    891900        TRACE("0x%x 0x%lx %p\n", hinstDLL, fdwReason, fImpLoad);
    892901
    893902        switch (fdwReason)
    894903        {
    895           case DLL_PROCESS_ATTACH:
     904        case DLL_PROCESS_ATTACH:
     905         
     906          PERF_START(shell32_i1)
     907           
    896908            shell32_RefCount++;
    897909            if (shell32_hInstance) return TRUE;
     
    913925            /* initialize the common controls */
    914926            InitCommonControlsEx(NULL);
    915 
     927         
     928          PERF_ELAPSED(shell32_i1, "Shell32LibMain", "i1")
     929          PERF_START(shell32_i2)
    916930            SIC_Initialize();
     931          PERF_ELAPSED(shell32_i2, "Shell32LibMain", "i2")
     932          PERF_START(shell32_i3)
    917933            SYSTRAY_Init();
     934          PERF_ELAPSED(shell32_i3, "Shell32LibMain", "i3")
     935          PERF_START(shell32_i4)
    918936            InitChangeNotifications();
     937          PERF_ELAPSED(shell32_i4, "Shell32LibMain", "i4")
     938          PERF_START(shell32_i5)
    919939            SHInitRestricted(NULL, NULL);
     940          PERF_ELAPSED(shell32_i5, "Shell32LibMain", "i5")
    920941            break;
    921942
Note: See TracChangeset for help on using the changeset viewer.