Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9e1be97

Browse files
committed
Fixed for compiling without OLDROUTINENAMES and OLDROUTINELOCATIONS
1 parent 1aec323 commit 9e1be97

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Mac/Compat/getwd.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ getwd(cwd)
5757
/* First, get the default volume name and working directory ID. */
5858

5959
pb.w.ioNamePtr= (unsigned char *)cwd;
60-
err= PBHGetVol(&pb.w, FALSE);
60+
err= PBHGetVolSync(&pb.w);
6161
if (err != noErr) {
62-
sprintf(cwd, "I/O error %d in PBHGetVol", err);
62+
sprintf(cwd, "I/O error %d in PBHGetVolSync", err);
6363
return NULL;
6464
}
6565
ecwd= strchr((const char *)p2cstr((unsigned char*)cwd), EOS);
@@ -75,9 +75,9 @@ getwd(cwd)
7575
pb.d.ioNamePtr= (unsigned char *) ++ebuf;
7676
pb.d.ioFDirIndex= -1;
7777
pb.d.ioDrDirID= dirid;
78-
err= PBGetCatInfo((CInfoPBPtr)&pb.d, FALSE);
78+
err= PBGetCatInfoSync((CInfoPBPtr)&pb.d);
7979
if (err != noErr) {
80-
sprintf(cwd, "I/O error %d in PBGetCatInfo", err);
80+
sprintf(cwd, "I/O error %d in PBGetCatInfoSync", err);
8181
return NULL;
8282
}
8383
dirid= pb.d.ioDrParID;

Mac/Compat/macstat.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ macstat(path, buf)
2929
pb.d.ioDrDirID = 0;
3030
pb.f.ioFVersNum = 0; /* Fix found by Timo! See Tech Note 102 */
3131
if (hfsrunning())
32-
err = PBGetCatInfo((CInfoPBPtr)&pb, FALSE);
32+
err = PBGetCatInfoSync((CInfoPBPtr)&pb);
3333
else
34-
err = PBGetFInfo((ParmBlkPtr)&pb, FALSE);
34+
err = PBGetFInfoSync((ParmBlkPtr)&pb);
3535
if (err != noErr) {
3636
errno = ENOENT;
3737
return -1;

0 commit comments

Comments
 (0)