| 51 | |
| 52 | |
| 53 | bool is_long_name(const WCHAR *filename) |
| 54 | { |
| 55 | wstring path = filename; |
| 56 | |
| 57 | size_t last_slash = path.find_last_of('\\'); |
| 58 | if (last_slash != wstring::npos) { |
| 59 | filename = &path[last_slash + 1]; |
| 60 | } |
| 61 | return !wcsncmp(filename, longname_prefix, sizeof(longname_prefix) / sizeof(longname_prefix[0]) - 1); |
| 62 | } |
| 63 | |
| 64 | bool is_long_name_file(const WCHAR *filename) |
| 65 | { |
no outgoing calls
no test coverage detected