Changeset 773 for trunk/dll/mainwnd2.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/mainwnd2.c

    r771 r773  
    1717  30 Mar 07 GKY Remove GetPString for window class names
    1818  12 May 07 SHL Pass ulItemsToUnHilite to UnHilite
     19  07 Aug 07 SHL Use BldQuotedFileName
    1920
    2021***********************************************************************/
     
    124125      /*
    125126       * Calculate the position of the client rectangle.
    126        * Otherwise,  we'll see a lot of redraw when we move the
     127       * Otherwise, we'll see a lot of redraw when we move the
    127128       * client during WM_FORMATFRAME.
    128129       */
     
    498499        }
    499500        else {
    500 
    501           CHAR *d1 = "\"", *d2 = "\"";
    502 
    503           if (!needs_quoting(wa.szCurrentPath1))
    504             *d1 = 0;
    505           if (!needs_quoting(wa.szCurrentPath2))
    506             *d2 = 0;
     501          CHAR szPath1[CCHMAXPATH];
     502          CHAR szPath2[CCHMAXPATH];
    507503          runemf2(SEPARATE,
    508                   HWND_DESKTOP,
    509                   NULL,
    510                   NULL,
    511                   "%s %s%s%s %s%s%s",
     504                  HWND_DESKTOP, NULL, NULL,
     505                  "%s %s %s",
    512506                  dircompare,
    513                   d1, wa.szCurrentPath1, d1, d2, wa.szCurrentPath2, d2);
     507                  BldQuotedFileName(szPath1, wa.szCurrentPath1),
     508                  BldQuotedFileName(szPath2, wa.szCurrentPath2));
     509          // CHAR *d1 = "\"", *d2 = "\"";
     510          // if (!needs_quoting(wa.szCurrentPath1))
     511          //   *d1 = 0;
     512          // if (!needs_quoting(wa.szCurrentPath2))
     513          //   *d2 = 0;
     514          // runemf2(SEPARATE,
     515          //      HWND_DESKTOP,
     516          //      NULL,
     517          //      NULL,
     518          //      "%s %s%s%s %s%s%s",
     519          //      dircompare,
     520          //      d1, wa.szCurrentPath1, d1, d2, wa.szCurrentPath2, d2);
    514521        }
    515522      }
Note: See TracChangeset for help on using the changeset viewer.