Removes name and returns file path without the trailing path separator symbol.
| 204 | // Removes name and returns file path without the trailing |
| 205 | // path separator symbol. |
| 206 | void RemoveNameFromPath(wchar *Path) |
| 207 | { |
| 208 | wchar *Name=PointToName(Path); |
| 209 | if (Name>=Path+2 && (!IsDriveDiv(Path[1]) || Name>=Path+4)) |
| 210 | Name--; |
| 211 | *Name=0; |
| 212 | } |
| 213 | |
| 214 | |
| 215 | #if defined(_WIN_ALL) && !defined(SFX_MODULE) |
no test coverage detected