| 3605 | } |
| 3606 | |
| 3607 | static wchar_t *wide_copy(const wchar_t *value) { |
| 3608 | if (!value) { |
| 3609 | return NULL; |
| 3610 | } |
| 3611 | size_t length = wcslen(value); |
| 3612 | wchar_t *copy = malloc((length + 1) * sizeof(*copy)); |
| 3613 | if (copy) { |
| 3614 | memcpy(copy, value, (length + 1) * sizeof(*copy)); |
| 3615 | } |
| 3616 | return copy; |
| 3617 | } |
| 3618 | |
| 3619 | static void win_security_destroy(win_security_t *security) { |
| 3620 | if (!security) { |
no outgoing calls
no test coverage detected