Browse Source

Minor fix

gingerBill 3 years ago
parent
commit
dc832ad49f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/path/filepath/path_windows.odin

+ 1 - 1
core/path/filepath/path_windows.odin

@@ -68,7 +68,7 @@ temp_full_path :: proc(name: string) -> (path: string, err: os.Errno) {
 			return "", os.Errno(win32.GetLastError())
 		}
 		if n <= u32(len(buf)) {
-			return win32.utf16_to_utf8(buf[:n], ta), os.ERROR_NONE
+			return win32.utf16_to_utf8(buf[:n], ta) or_else "", os.ERROR_NONE
 		}
 		resize(&buf, len(buf)*2)
 	}