Changeset 123 for trunk/dll/mainwnd.c


Ignore:
Timestamp:
Dec 5, 2004, 1:20:19 AM (21 years ago)
Author:
root
Message:

Rework lstrip/rstrip usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/mainwnd.c

    r101 r123  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2001, 2002 Steven H.Levine
     9  Copyright (c) 2001, 2004 Steven H.Levine
    1010
    1111  Revisions     11 Jun 02 SHL - Drop obsolete xor code
    1212                16 Oct 02 SHL - Handle large partitions
     13                01 Aug 04 SHL - Rework lstrip/rstrip usage
    1314
    1415***********************************************************************/
     
    682683                                *path = 0;
    683684                                WinQueryWindowText(hwnd,CCHMAXPATH,path);
    684                                 lstrip(rstrip(path));
     685                                bstrip(path);
    685686// saymsg(MB_ENTER,HWND_DESKTOP,DEBUG_STRING,"Dragging: %s",path);
    686687                                if(*path && !IsRoot(path))
     
    16501651                                len = strlen(cl);
    16511652                                WinQueryWindowText(hwnd,1000 - len,cl + len);
    1652                                 lstrip(rstrip(cl + len));
     1653                                bstrip(cl + len);
    16531654                                if(strlen(cl) > len) {
    16541655          WinSendMsg(WinQueryWindow(hwnd,QW_PARENT),
     
    16591660                             CCHMAXPATH,
    16601661                             directory);
    1661                                         lstrip(rstrip(directory));
     1662                                        bstrip(directory);
    16621663                                        if(*directory && (IsRoot(directory) || !IsFile(directory))) {
    16631664                                                if(!FM2Command(directory,cl + len)) {
     
    46914692                           CCHMAXPATH,
    46924693                           temp);
    4693         lstrip(rstrip(temp));
     4694        bstrip(temp);
    46944695        if(*temp &&
    46954696           !DosQueryPathInfo(temp,
     
    47294730        *name = 0;
    47304731        WinQueryWindowText(hwndStatelist,13,name);
    4731         lstrip(rstrip(name));
     4732        bstrip(name);
    47324733        if(*name) {
    47334734          if(SHORT1FROMMP(mp1) == IDM_SAVEDIRCNRSTATE) {
     
    65016502                                                                                                                                         ((SHORT1FROMMP(mp1) == MAIN_USERLIST) ?
    65026503                                                                                                                                                CCHMAXPATH : 13),path);
    6503                                                                 lstrip(rstrip(path));
     6504                                                                bstrip(path);
    65046505                                                                if(*path) {
    65056506                                                                        if(SHORT1FROMMP(mp1) == MAIN_USERLIST) {
Note: See TracChangeset for help on using the changeset viewer.