Changeset 1067

Show
Ignore:
Timestamp:
07/14/08 02:53:14 (7 weeks ago)
Author:
gyoung
Message:

Removed unnecessary strlens from WM_DRAWITEM; Streamlined FillInRecSizes?; Removed spurious Fortify_Enterscope (perhaps fixing strlens trap); Minor cleanup of graph box appearence.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/dll/dirsize.c

    r1064 r1067  
    311311    CHAR szBuf[CCHMAXPATH + 320]; 
    312312 
    313 #   ifdef FORTIFY 
    314     Fortify_EnterScope(); 
    315 #    endif 
    316  
    317313    // cbFile = currect directory usage in bytes 
    318314    // easize = subdirectory usage in bytes 
     
    376372    attrib = CMA_FIRST; 
    377373  pci = (PCNRITEM) WinSendMsg(hwndCnr, CM_QUERYRECORD, MPFROMP(pci), 
    378                               MPFROM2SHORT(attrib, CMA_ITEMORDER)); 
     374                              MPFROM2SHORT(attrib, CMA_ITEMORDER)); 
    379375  while (pci && (INT) pci != -1) { 
    380376    if (*pchStopFlag) 
     
    684680 
    685681              // Calculate nominal graph box height based on font size 
    686               GpiQueryTextBox(oi->hps, strlen(pci->pszFileName), 
     682              GpiQueryTextBox(oi->hps, p - pci->pszFileName, 
    687683                              pci->pszFileName, TXTBOX_COUNT, aptl); 
    688684              boxHeight = aptl[TXTBOX_TOPRIGHT].y - aptl[TXTBOX_BOTTOMRIGHT].y; 
     
    697693              ptl.y = yBottom + boxHeight + 6;  // 03 Aug 07 SHL 
    698694              // GpiMove(oi->hps, &ptl); 
    699               GpiCharStringAt(oi->hps, &ptl, strlen(pci->pszFileName), 
     695              GpiCharStringAt(oi->hps, &ptl, p - pci->pszFileName, 
    700696                              pci->pszFileName); 
    701697 
     
    743739              ptl.y = yBottom + boxHeight; 
    744740              GpiMove(oi->hps, &ptl); 
    745               ptl.x = oi->rclItem.xLeft + 203; 
     741              ptl.x = oi->rclItem.xLeft + 201; 
    746742              GpiLine(oi->hps, &ptl); 
    747743              ptl.y = yBottom + boxHeight - 2;