| 455 | |
| 456 | |
| 457 | bool DelFile(const wchar *Name) |
| 458 | { |
| 459 | #ifdef _WIN_ALL |
| 460 | bool Success=DeleteFile(Name)!=0; |
| 461 | if (!Success) |
| 462 | { |
| 463 | wchar LongName[NM]; |
| 464 | if (GetWinLongPath(Name,LongName,ASIZE(LongName))) |
| 465 | Success=DeleteFile(LongName)!=0; |
| 466 | } |
| 467 | return Success; |
| 468 | #else |
| 469 | char NameA[NM]; |
| 470 | WideToChar(Name,NameA,ASIZE(NameA)); |
| 471 | bool Success=remove(NameA)==0; |
| 472 | return Success; |
| 473 | #endif |
| 474 | } |
| 475 | |
| 476 | |
| 477 |
no test coverage detected