totalBytes and FreeBytes structs changed under Carbon. Fixes to work in both environments.

This commit is contained in:
pinkerton%netscape.com 1999-05-10 22:37:50 +00:00
Родитель 9c532c75fd
Коммит 113b4f5b1d
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -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