1
0
mirror of https://github.com/deadw00d/AROS.git synced 2025-12-08 06:20:50 +00:00

Endianness and error-handling fixes.

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@46513 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
This commit is contained in:
neil
2013-02-05 12:28:58 +00:00
parent 7cb9421edf
commit 4b066d78a6

View File

@ -167,7 +167,7 @@ LONG main() {
if((bitmap=AllocVec(((globals->blocks_total+31)>>5)<<3,MEMF_CLEAR))!=0) {
UBYTE *str;
bitmap[globals->blocks_total>>5]=0xFFFFFFFF>>(globals->blocks_total & 0x0000001F);
bitmap[globals->blocks_total>>5]=L2BE(0xFFFFFFFF>>(globals->blocks_total & 0x0000001F));
if((str=mark(0,blocks_reserved_start))!=0) {
printf("Error while marking reserved blocks at start:\n%s",str);
freestring(str);
@ -198,6 +198,7 @@ LONG main() {
}
}
else {
errorcode = IoErr();
PrintFault(errorcode, "error while locking the drive");
}
}