| 67 | |
| 68 | #ifdef _WIN32 |
| 69 | static bool path_roundtrip_args(const char *source, size_t length, const wchar_t *wide, |
| 70 | size_t wide_capacity, const char *roundtrip, |
| 71 | size_t roundtrip_capacity) { |
| 72 | if (!source || !wide || !roundtrip || !length || length > CBM_PATH_SYNTAX_MAX_BYTES || |
| 73 | !wide_capacity || wide_capacity > INT_MAX || !roundtrip_capacity || |
| 74 | roundtrip_capacity > INT_MAX) |
| 75 | return false; |
| 76 | return source[length] == '\0' && !memchr(source, '\0', length); |
| 77 | } |
| 78 | |
| 79 | cbm_path_syntax_result_t cbm_path_windows_roundtrip(const char *source, size_t length, |
| 80 | wchar_t *wide, size_t wide_capacity, |
no outgoing calls
no test coverage detected