PBGetVInfo()->PBHGetVInfo() for carbon compliance.
git-svn-id: svn://10.0.0.236/trunk@24916 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -591,13 +591,13 @@ GetVolumeList(nsVoidArray **array)
|
||||
|
||||
#ifdef XP_MAC
|
||||
StrFileName fname;
|
||||
ParamBlockRec pb;
|
||||
HParamBlockRec pb;
|
||||
for (int16 volNum = 1; ; volNum++)
|
||||
{
|
||||
pb.volumeParam.ioCompletion = NULL;
|
||||
pb.volumeParam.ioVolIndex = volNum;
|
||||
pb.volumeParam.ioNamePtr = (StringPtr)fname;
|
||||
if (PBGetVInfo(&pb,FALSE) != noErr)
|
||||
if (PBHGetVInfo(&pb,FALSE) != noErr)
|
||||
break;
|
||||
nsFileSpec fss(pb.volumeParam.ioVRefNum, fsRtParID, fname);
|
||||
if (NS_SUCCEEDED(gRDFService->GetResource(nsFileURL(fss).GetAsString(), (nsIRDFResource**)&vol)))
|
||||
|
||||
Reference in New Issue
Block a user