Fix possible utf16 out of bounds issue

This commit is contained in:
gingerBill
2026-04-02 12:54:07 +01:00
parent 1d8c44a98c
commit 039c438af2
2 changed files with 7 additions and 7 deletions

View File

@@ -465,7 +465,7 @@ get_computer_name_and_account_sid :: proc(username: string) -> (computer_name: s
return "", {}, false
}
cname_w := make([]u16, computer_name_size context.temp_allocator)
cname_w := make([]u16, computer_name_size, context.temp_allocator)
res = LookupAccountNameW(
nil,