Remove sync/async definitions. Use sync functions for MacOS.

This commit is contained in:
2021-03-14 05:07:03 +00:00
parent 5c109c184b
commit 80cfc123a1
11 changed files with 20 additions and 23 deletions

View File

@@ -108,7 +108,7 @@ void ResourceFork(const char* path)
hpb.ioNamePtr = str255;
hpb.ioVRefNum = 0;
hpb.ioVolIndex = -1;
rc = PBHGetVInfo((HParmBlkPtr)&hpb, 0);
rc = PBHGetVInfoSync((HParmBlkPtr)&hpb);
if(rc)
{
printf("Could not get volume information.\n");
@@ -123,7 +123,7 @@ void ResourceFork(const char* path)
dirPB.fileParam.ioNamePtr = (StringPtr) "\pRSRC"; // Directory name to create
dirPB.fileParam.ioDirID = 0; // ID of parent directory, 0 for root of volume
rc = PBDirCreate(&dirPB, 0);
rc = PBDirCreateSync(&dirPB);
if(rc)
{