Searched refs:utf8_len (Results 1 – 1 of 1) sorted by relevance
/freebsd/contrib/libfido2/src/ |
H A D | hid_win.c | 128 int utf8_len; in get_manufacturer() local 138 if ((utf8_len = WideCharToMultiByte(CP_UTF8, WC_ERR_INVALID_CHARS, buf, in get_manufacturer() 139 -1, NULL, 0, NULL, NULL)) <= 0 || utf8_len > 128) { in get_manufacturer() 144 if ((*manufacturer = malloc((size_t)utf8_len)) == NULL) { in get_manufacturer() 150 *manufacturer, utf8_len, NULL, NULL) != utf8_len) { in get_manufacturer() 169 int utf8_len; in get_product() local 179 if ((utf8_len = WideCharToMultiByte(CP_UTF8, WC_ERR_INVALID_CHARS, buf, in get_product() 180 -1, NULL, 0, NULL, NULL)) <= 0 || utf8_len > 128) { in get_product() 185 if ((*product = malloc((size_t)utf8_len)) == NULL) { in get_product() 191 *product, utf8_len, NULL, NULL) != utf8_len) { in get_product()
|