Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!ucbvax!hoptoad!tim From: tim@hoptoad.uucp (Tim Maroney) Newsgroups: comp.sys.mac.programmer Subject: Re: PBHGetVInfo returns noErr but volRefNum=-1 Message-ID: <11343@hoptoad.uucp> Date: 8 May 90 19:37:36 GMT References: <9166@tank.uchicago.edu> Reply-To: tim@hoptoad.UUCP (Tim Maroney) Organization: Eclectic Software, San Francisco Lines: 15 In article <9166@tank.uchicago.edu> gft_robert@gsbacd.uchicago.edu writes: >Well, I have for the first time delved into the PB calls, and am having some >problems. At one point in my program I'm trying to convert a volume name to a >vol ref num and I do the following: > >I get noErr (0) for theOSErr, but ioVRefNum comes back as -1. What am I doing >wrong? Nothing. -1 is a perfectly valid volume reference number. Volume reference numbers are small negative integers. -- Tim Maroney, Mac Software Consultant, sun!hoptoad!tim, tim@toad.com "Americans will buy anything, as long as it doesn't cross the thin line between cute and demonic." -- Ian Shoales