| 3543 | } |
| 3544 | |
| 3545 | static wchar_t *wide_copy(const wchar_t *value) { |
| 3546 | if (!value) { |
| 3547 | return NULL; |
| 3548 | } |
| 3549 | size_t length = wcslen(value); |
| 3550 | wchar_t *copy = malloc((length + 1) * sizeof(*copy)); |
| 3551 | if (copy) { |
| 3552 | memcpy(copy, value, (length + 1) * sizeof(*copy)); |
| 3553 | } |
| 3554 | return copy; |
| 3555 | } |
| 3556 | |
| 3557 | static void win_security_destroy(win_security_t *security) { |
| 3558 | if (!security) { |
no outgoing calls
no test coverage detected