Ignore:
Timestamp:
Mar 22, 2000, 5:55:52 PM (25 years ago)
Author:
cbratschi
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shell32/shellpath.cpp

    r2237 r3193  
    1 /* $Id: shellpath.cpp,v 1.5 1999-12-28 23:16:33 sandervl Exp $ */
     1/* $Id: shellpath.cpp,v 1.6 2000-03-22 16:55:51 cbratschi Exp $ */
    22
    33/*
     
    817817ODINFUNCTION1(HRESULT, PathGetDriveNumberW,
    818818              LPWSTR, u)
    819 { 
     819{
    820820   return 0;
    821821}
     
    12071207LPSTR WINAPI PathRemoveBackslashA(LPSTR lpPath)
    12081208{
    1209         LPSTR temp = lpPath;
    1210         LPSTR prev = lpPath;
    1211        
    1212         while (*temp)
    1213         {
    1214                 prev = temp++;
    1215         }
    1216         if ( *prev == (CHAR)'\\')
    1217         {
    1218                 *prev = (CHAR)'\0';
    1219         }
    1220 
    1221         return prev;
     1209        LPSTR temp = lpPath;
     1210        LPSTR prev = lpPath;
     1211
     1212        while (*temp)
     1213        {
     1214                prev = temp++;
     1215        }
     1216        if ( *prev == (CHAR)'\\')
     1217        {
     1218                *prev = (CHAR)'\0';
     1219        }
     1220
     1221        return prev;
    12221222}
    12231223
    12241224LPWSTR WINAPI PathRemoveBackslashW(LPWSTR lpPath)
    12251225{
    1226         LPWSTR temp = lpPath;
    1227         LPWSTR prev = lpPath;
    1228        
    1229         while (*temp)
    1230         {
    1231                 prev = temp++;
    1232         }
    1233         if ( *prev == (WCHAR)'\\')
    1234         {
    1235                 *prev = (WCHAR)'\0';
    1236         }
    1237 
    1238         return prev;
    1239 }
    1240 
     1226        LPWSTR temp = lpPath;
     1227        LPWSTR prev = lpPath;
     1228
     1229        while (*temp)
     1230        {
     1231                prev = temp++;
     1232        }
     1233        if ( *prev == (WCHAR)'\\')
     1234        {
     1235                *prev = (WCHAR)'\0';
     1236        }
     1237
     1238        return prev;
     1239}
     1240
Note: See TracChangeset for help on using the changeset viewer.