1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v2: fix Windows errors

This commit is contained in:
Alexey
2020-03-28 12:19:38 +03:00
committed by GitHub
parent 4541f29019
commit cedf185b41
5 changed files with 7 additions and 8 deletions

View File

@ -49,7 +49,7 @@ fn find_windows_kit_internal(key RegKey, versions []string) ?string {
}
// We might need to manually null terminate this thing
// So just make sure that we do that
if (value[length - 1] != u16(0)) {
if value[length - 1] != u16(0) {
value[length] = u16(0)
}
return string_from_wide(value)