diff --git a/make_tests.bat b/make_tests.bat index f02206fd61..d48c3c2b4d 100644 --- a/make_tests.bat +++ b/make_tests.bat @@ -1,5 +1,16 @@ +@echo off curl -O https://raw.githubusercontent.com/vlang/vc/master/v.c gcc -std=gnu11 -DUNICODE -D_UNICODE -w -o vc.exe v.c del v.c vc.exe -o v.exe compiler -for /r . %%x in (*_test.v) do @v -o test.exe -debug %%x +setlocal EnableDelayedExpansion +for /r . %%x in (*_test.v) do ( + v -o test.exe -debug %%x + if !ERRORLEVEL! NEQ 0 goto :fail +) +goto :done + +:fail +exit /b 1 + +:done diff --git a/vlib/http/http_win.v b/vlib/http/http_win.v index 6bad8742c3..7a87898fa2 100644 --- a/vlib/http/http_win.v +++ b/vlib/http/http_win.v @@ -162,7 +162,7 @@ pub fn escape_url(s string) string { pub fn unescape_url(s string) string { mut buf := &u16(malloc(INTERNET_MAX_URL_LENGTH * 2)) mut nr_chars := INTERNET_MAX_URL_LENGTH - res := C.UrlUnescape(s.to_wide(), &buf, &nr_chars, URL_ESCAPE_AS_UTF8 | URL_ESCAPE_ASCII_URI_COMPONENT) + res := C.UrlUnescape(s.to_wide(), buf, &nr_chars, URL_ESCAPE_AS_UTF8 | URL_ESCAPE_ASCII_URI_COMPONENT) return string_from_wide2(buf, nr_chars) }