| 321 | } |
| 322 | |
| 323 | int __cdecl rename(const char *oldname, const char *newname) |
| 324 | { |
| 325 | WCHAR f1[MAX_PATH + 1]; |
| 326 | WCHAR f2[MAX_PATH + 1]; |
| 327 | ZeroMemory(f1, sizeof(f1)); |
| 328 | ZeroMemory(f2, sizeof(f2)); |
| 329 | MultiByteToWideChar(CP_ACP, 0, oldname, -1, f1, MAX_PATH); |
| 330 | MultiByteToWideChar(CP_ACP, 0, newname, -1, f2, MAX_PATH); |
| 331 | return !MoveFile(f1, f2); |
| 332 | } |
| 333 | |
| 334 | int __cdecl access(const char *path, int mode) |
| 335 | { |
nothing calls this directly
no outgoing calls
no test coverage detected