Changeset 773 for trunk/dll/mainwnd.c


Ignore:
Timestamp:
Aug 7, 2007, 11:23:27 PM (18 years ago)
Author:
Steven Levine
Message:

Correct some compare directories collector nits
Use BldQuoted... functions
Move BldQuoted... functions near primary callers
Add RUNTYPE_MASK
Use Runtime_Error2 more

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/mainwnd.c

    r771 r773  
    3535  12 May 07 SHL Use dcd->ulItemsToUnHilite
    3636  10 Jun 07 GKY Add CheckPmDrgLimit including IsFm2Window as part of work around PM drag limit
     37  07 Aug 07 SHL Use BldQuotedFileName
    3738
    3839***********************************************************************/
     
    18101811      li = DoFileDrop(hwnd,
    18111812                      NULL,
    1812                       TRUE, MPFROM2SHORT(TREE_CNR, CN_DROP), MPFROMP(&cnd));
     1813                      TRUE, MPFROM2SHORT(TREE_CNR, CN_DROP), MPFROMP(&cnd));
    18131814      CheckPmDrgLimit(cnd.pDragInfo);
    18141815      if (li) {
     
    41094110        else {
    41104111
    4111           CHAR d1[] = "\"";
    4112           CHAR d2[] = "\"";
    4113 
    4114           if (!needs_quoting(wa.szCurrentPath1))
    4115             *d1 = 0;
    4116           if (!needs_quoting(wa.szCurrentPath2))
    4117             *d2 = 0;
     4112          CHAR szPath1[CCHMAXPATH];
     4113          CHAR szPath2[CCHMAXPATH];
    41184114          runemf2(SEPARATE,
    4119                   HWND_DESKTOP,
    4120                   NULL,
    4121                   NULL,
    4122                   "%s %s%s%s %s%s%s",
     4115                  HWND_DESKTOP, NULL, NULL,
     4116                  "%s %s %s",
    41234117                  dircompare,
    4124                   d1, wa.szCurrentPath1, d1, d2, wa.szCurrentPath2, d2);
     4118                  BldQuotedFileName(szPath1, wa.szCurrentPath1),
     4119                  BldQuotedFileName(szPath2, wa.szCurrentPath2));
     4120          // CHAR d1[] = "\"";
     4121          // CHAR d2[] = "\"";
     4122          // if (!needs_quoting(wa.szCurrentPath1))
     4123          //   *d1 = 0;
     4124          // if (!needs_quoting(wa.szCurrentPath2))
     4125          //   *d2 = 0;
     4126          // runemf2(SEPARATE,
     4127          //      HWND_DESKTOP, NULL, NULL,
     4128          //      "%s %s%s%s %s%s%s",
     4129          //      dircompare,
     4130          //      d1, wa.szCurrentPath1, d1, d2, wa.szCurrentPath2, d2);
    41254131        }
    41264132      }
     
    48184824            DIRCNRDATA *dcd = NULL;
    48194825
    4820             // 12 May 07 SHL fixme to understand?  backwards maybe? looking for DIR_CNR?
     4826            // 12 May 07 SHL fixme to understand? backwards maybe? looking for DIR_CNR?
    48214827            if (WinQueryWindowUShort(hwndCnr, QWS_ID) != TREE_CNR)
    48224828              dcd = INSTDATA(hwndCnr);
Note: See TracChangeset for help on using the changeset viewer.