mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
totalBytes and FreeBytes structs changed under Carbon. Fixes to work in both environments.
This commit is contained in:
parent
9c532c75fd
commit
113b4f5b1d
@ -398,8 +398,16 @@ pascal OSErr XGetVInfo(short volReference,
|
||||
*vRefNum = pb.ioVRefNum;
|
||||
|
||||
/* return the freeBytes and totalBytes */
|
||||
#if TARGET_CARBON
|
||||
/* NSCP - API changes for Carbon */
|
||||
totalBytes->hi = pb.ioVTotalBytes & 0xFFFFFFFF00000000;
|
||||
totalBytes->lo = pb.ioVTotalBytes & 0x00000000FFFFFFFF;
|
||||
freeBytes->hi = pb.ioVFreeBytes & 0xFFFFFFFF00000000;
|
||||
freeBytes->lo = pb.ioVFreeBytes & 0x00000000FFFFFFFF;
|
||||
#else
|
||||
*totalBytes = pb.ioVTotalBytes;
|
||||
*freeBytes = pb.ioVFreeBytes;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user