mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Change how filenames for Mac OS attributes are declared.
This commit is contained in:
@@ -83,7 +83,7 @@ void FileAttributes(const char* path)
|
|||||||
for(i = 0; i < KNOWN_MAC_ATTRS; i++)
|
for(i = 0; i < KNOWN_MAC_ATTRS; i++)
|
||||||
{
|
{
|
||||||
memset(str255, 0, 256);
|
memset(str255, 0, 256);
|
||||||
memcpy(str255, mac_attrs[i].filename, strlen(mac_attrs[i].filename));
|
memcpy(str255, mac_attrs[i].filename, strlen((const char*)mac_attrs[i].filename));
|
||||||
|
|
||||||
memset(&finderInfo, 0, sizeof(FInfo));
|
memset(&finderInfo, 0, sizeof(FInfo));
|
||||||
rc = HCreate(refNum, dirId, str255, ostUnknown, ftGenericDocumentPC);
|
rc = HCreate(refNum, dirId, str255, ostUnknown, ftGenericDocumentPC);
|
||||||
|
|||||||
@@ -33,13 +33,13 @@ Copyright (C) 2011-2021 Natalia Portillo
|
|||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
char* filename;
|
unsigned char* filename;
|
||||||
char contents[170];
|
char contents[170];
|
||||||
char description[63];
|
char description[63];
|
||||||
uint16_t flags;
|
uint16_t flags;
|
||||||
OSType type;
|
OSType type;
|
||||||
OSType creator;
|
OSType creator;
|
||||||
Point location;
|
Point location;
|
||||||
} mac_attr_tests_t;
|
} mac_attr_tests_t;
|
||||||
|
|
||||||
#define KNOWN_MAC_ATTRS 33
|
#define KNOWN_MAC_ATTRS 33
|
||||||
|
|||||||
Reference in New Issue
Block a user