| 12 | |
| 13 | #ifdef _WIN32 |
| 14 | static bool cif_windows_encoding(cif_context *c, const char *path, size_t length) { |
| 15 | wchar_t wide[CIF_PATH_MAX + 1]; |
| 16 | char roundtrip[CIF_PATH_MAX + 1]; |
| 17 | if (!cif_poll(c)) { |
| 18 | return false; |
| 19 | } |
| 20 | cbm_path_syntax_result_t s = cbm_path_windows_roundtrip(path, length, wide, CIF_PATH_MAX + 1, |
| 21 | roundtrip, sizeof(roundtrip)); |
| 22 | if (s != CBM_PATH_SYNTAX_OK) { |
| 23 | return cif_fail(c, CBM_INVENTORY_UNSUPPORTED); |
| 24 | } |
| 25 | return cif_poll(c); |
| 26 | } |
| 27 | |
| 28 | static bool cif_device_root(const unsigned char *root, size_t n) { |
| 29 | if (n < 4) { |
no test coverage detected