Permalink
Browse files

. 修正 exFAT 每簇字节 >=128Kb 时,启动失败。

  • Loading branch information...
yaya
yaya committed Jun 11, 2017
1 parent e3b9131 commit 3da3daaf04e0da0fd5ee26f41620c84eb2095381
Showing with 3 additions and 3 deletions.
  1. +3 −3 stage2/builtins.c
View
@@ -7161,12 +7161,12 @@ get_vol (char* vol_found, int flags)
if (flags)
return;
vol_found[11] = 0;
- for (i=0; i<11; i++)
+ for (i=10; i>=0; i--)
{
- if (vol_found[i] == ' ' && (vol_found[i] == vol_found[i+1] || i == 10))
+ if (vol_found[i] != ' ')
break;
+ vol_found[i] = 0;
}
- vol_found[i] = 0;
}
else
{

0 comments on commit 3da3daa

Please sign in to comment.