diff --git a/vlib/os/os_windows.v b/vlib/os/os_windows.v index d07c0c6451..b0c7237428 100644 --- a/vlib/os/os_windows.v +++ b/vlib/os/os_windows.v @@ -204,7 +204,7 @@ pub fn get_module_filename(handle HANDLE) ?string { for { status := int(C.GetModuleFileNameW(handle, voidptr(&buf), sz)) match status { - os.success { + success { _filename := string_from_wide2(buf, sz) return _filename } diff --git a/vlib/v/gen/cgen.v b/vlib/v/gen/cgen.v index 65d5a509f8..a28aec0ff8 100644 --- a/vlib/v/gen/cgen.v +++ b/vlib/v/gen/cgen.v @@ -106,7 +106,6 @@ pub fn (g &Gen) hashes() string { mut res := c_commit_hash_default.replace('@@@', util.vhash() ) res += c_current_commit_hash_default.replace('@@@', util.githash( g.pref.building_v ) ) return res - return c_commit_hash_default + g.typedefs.str() + g.definitions.str() + g.out.str() } pub fn (g mut Gen) init() {