derive attributes for virtual reverse-mode longname name file from the attributes of its related file or directory
| 55 | // derive attributes for virtual reverse-mode longname name file |
| 56 | // from the attributes of its related file or directory |
| 57 | static DWORD |
| 58 | VirtualAttributesNameFile(DWORD attr) |
| 59 | { |
| 60 | bool bForDir = (attr & FILE_ATTRIBUTE_DIRECTORY) != 0; |
| 61 | attr &= ~FILE_ATTRIBUTE_DIRECTORY; |
| 62 | if (attr == 0) |
| 63 | attr = bForDir ? FILE_ATTRIBUTE_ARCHIVE : FILE_ATTRIBUTE_NORMAL; |
| 64 | return attr; |
| 65 | } |
| 66 | |
| 67 | #endif // _WIN32 |
| 68 |
no outgoing calls
no test coverage detected