Changeset 3193 for trunk/src/shell32/shellpath.cpp
- Timestamp:
- Mar 22, 2000, 5:55:52 PM (25 years ago)
- 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 sandervlExp $ */1 /* $Id: shellpath.cpp,v 1.6 2000-03-22 16:55:51 cbratschi Exp $ */ 2 2 3 3 /* … … 817 817 ODINFUNCTION1(HRESULT, PathGetDriveNumberW, 818 818 LPWSTR, u) 819 { 819 { 820 820 return 0; 821 821 } … … 1207 1207 LPSTR WINAPI PathRemoveBackslashA(LPSTR lpPath) 1208 1208 { 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 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; 1222 1222 } 1223 1223 1224 1224 LPWSTR WINAPI PathRemoveBackslashW(LPWSTR lpPath) 1225 1225 { 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 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.