mirror of
https://github.com/ksherlock/mpw.git
synced 2024-11-22 00:32:44 +00:00
ResolveAliasFile - byte ptrs should only write 1 byte.
This commit is contained in:
parent
f08d67333d
commit
2dcb161f5e
@ -394,17 +394,17 @@ namespace OS {
|
|||||||
rv = ::stat(path.c_str(), &st);
|
rv = ::stat(path.c_str(), &st);
|
||||||
if (rv < 0)
|
if (rv < 0)
|
||||||
{
|
{
|
||||||
if (wasAliased) memoryWriteWord(0, wasAliased);
|
if (wasAliased) memoryWriteByte(0, wasAliased);
|
||||||
if (targetIsFolder) memoryWriteWord(0, targetIsFolder);
|
if (targetIsFolder) memoryWriteByte(0, targetIsFolder);
|
||||||
|
|
||||||
return macos_error_from_errno();
|
return macos_error_from_errno();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (targetIsFolder)
|
if (targetIsFolder)
|
||||||
memoryWriteWord(S_ISDIR(st.st_mode) ? 1 : 0, targetIsFolder);
|
memoryWriteByte(S_ISDIR(st.st_mode) ? 1 : 0, targetIsFolder);
|
||||||
|
|
||||||
// don't bother pretending a soft link is an alias.
|
// don't bother pretending a soft link is an alias.
|
||||||
if (wasAliased) memoryWriteWord(0, wasAliased);
|
if (wasAliased) memoryWriteByte(0, wasAliased);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user