mirror of
https://github.com/ksherlock/wdc-utils.git
synced 2024-12-11 11:49:28 +00:00
compile w/ windows
This commit is contained in:
parent
75bd907dad
commit
38e4f135ac
@ -212,7 +212,7 @@ int set_file_type(const std::string &path, uint16_t file_type, uint32_t aux_type
|
||||
std::string xpath(path);
|
||||
xpath.append(":AFP_AfpInfo");
|
||||
|
||||
int fd = open(path.c_str(), O_RDWR | O_CREAT | O_BINARY, 0666);
|
||||
int fd = open(xpath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0666);
|
||||
if (fd < 0) return -1;
|
||||
|
||||
ok = read(fd, &info, sizeof(info));
|
||||
|
Loading…
Reference in New Issue
Block a user