From d844ff138107642246b0328a67a5ad86d82dc02f Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 26 Apr 2020 09:33:40 +0200 Subject: [PATCH] builder: fix msvc.v --- vlib/v/builder/msvc.v | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vlib/v/builder/msvc.v b/vlib/v/builder/msvc.v index 7ad19f13a6..04d9130ca9 100644 --- a/vlib/v/builder/msvc.v +++ b/vlib/v/builder/msvc.v @@ -43,10 +43,12 @@ fn find_windows_kit_internal(key RegKey, versions []string) ?string { continue } alloc_length := (required_bytes + 2) - mut value := &&u16(malloc(alloc_length)) + mut value := &u16(malloc(alloc_length)) if isnil(value) { continue } + // + else{} result2 := C.RegQueryValueEx(key, version.to_wide(), 0, 0, value, &alloc_length) if result2 != 0 { continue