From 476c80ff087c69212c0dfba1a1884087fc333833 Mon Sep 17 00:00:00 2001 From: aguspiza Date: Sat, 29 Jun 2019 02:06:09 +0200 Subject: [PATCH] fix windows build --- os/os.v | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/os/os.v b/os/os.v index 540c8b85b4..a55be9cc13 100644 --- a/os/os.v +++ b/os/os.v @@ -5,6 +5,7 @@ module os #include + const ( args = []string MAX_PATH = 4096 @@ -476,7 +477,8 @@ pub fn getexepath() string { } $if windows { - return tos( result, C.GetModuleFileName( 0, result, MAX_PATH ) ) + ret := int(C.GetModuleFileName( 0, result, MAX_PATH )) + return tos( result, ret) } $if mac {