mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-25 15:53:56 +00:00
Fix possible utf16 out of bounds issue
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user