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

os: fix os.get_error_msg on Windows

This commit is contained in:
vitalyster 2019-10-26 14:58:05 +03:00 committed by Alexander Medvednikov
parent 6944161b15
commit 272b0aec82

View File

@ -185,5 +185,5 @@ pub fn get_error_msg(code int) string {
if _ptr_text == 0 { // compare with null
return ''
}
return tos(_ptr_text, vstrlen(_ptr_text))
return string_from_wide(_ptr_text)
}