| 179 | |
| 180 | |
| 181 | void MakeName(const wchar *Path,const wchar *Name,wchar *Pathname,size_t MaxSize) |
| 182 | { |
| 183 | // 'Path', 'Name' and 'Pathname' can point to same memory area. So we use |
| 184 | // the temporary buffer instead of constructing the name in 'Pathname'. |
| 185 | wchar OutName[NM]; |
| 186 | wcsncpyz(OutName,Path,ASIZE(OutName)); |
| 187 | AddEndSlash(OutName,ASIZE(OutName)); |
| 188 | wcsncatz(OutName,Name,ASIZE(OutName)); |
| 189 | wcsncpyz(Pathname,OutName,MaxSize); |
| 190 | } |
| 191 | |
| 192 | |
| 193 | // Returns file path including the trailing path separator symbol. |
no test coverage detected