Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!zaphod.mps.ohio-state.edu!think.com!hsdndev!dartvax!eleazar.dartmouth.edu!llama From: llama@eleazar.dartmouth.edu (Joe Francis) Newsgroups: comp.sys.mac.programmer Subject: System 7 File Manager & AppleShare Volumes Summary: Error in IM VI description of PBGetVolMountSize Keywords: spam PBGetVolMountSize spam File Manager spam AppleShare spam Message-ID: <1991Jun11.054037.10499@dartvax.dartmouth.edu> Date: 11 Jun 91 05:40:37 GMT Sender: news@dartvax.dartmouth.edu (The News Manager) Organization: Dartmouth College, Hanover, NH Lines: 18 Originator: llama@eleazar.dartmouth.edu There is an error in IM VI's description of the File Manager routine PBGetVolMountSize (Chapter: 25, Page: 48). In the description of the parameter block it states that ioBuffer is a pointer to long. In fact, it is treated by the File Manager as a pointer to short. If you use the "size" it returns as a long and try to allocate storage for that "size", you will wind up trying to allocate $A7xxxx bytes instead of $A7 bytes, which is the size of a volume mounting record for an AppleShare volume (currently). Please let me know if I'm full of crap; and I'll take this opportunity to say thanks to the DTS folks who frequent this group and take the time to set us straight. Cheers, Joe Francis DCIS Project Dartmouth College ---------------------------------------------------------------------------- "Read My Lips: No Nude Texans!" - George Bush clearing up a misunderstanding