Permalink
Browse files

. 修正批处理文件不能加载 kernel、initrd。

. 修正 mem64 不能正常工作。开放 mem64 函数。
. 修正卷标显示。
  • Loading branch information...
yaya
yaya committed May 6, 2017
1 parent 19abfe1 commit ed9a7c9027d3fc367a16c3a12b479244c199f5f3
Showing with 6 additions and 0 deletions.
  1. +6 −0 stage2/builtins.c
View
@@ -6974,6 +6974,12 @@ get_vol (char* vol_found, int flags)
{
big_to_little ((char *)uni, 0x20);
unicode_to_utf8 ((unsigned short *)uni, (unsigned char *)vol_found, 0x10);
+ for (i=0; i<0x20; i++)
+ {
+ if (vol_found[i] == ' ' && (vol_found[i] == vol_found[i+1] || i == 0x19))
+ break;
+ }
+ vol_found[i] = 0;
}
break;
case ISO_TYPE_udf:

0 comments on commit ed9a7c9

Please sign in to comment.