mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-09 10:10:01 +01:00
orbis-kernel: fix sys_truncate
This commit is contained in:
parent
662b23be80
commit
1fbb7c2edf
|
|
@ -360,7 +360,7 @@ orbis::SysResult orbis::sys_futimes(Thread *thread, sint fd,
|
|||
orbis::SysResult orbis::sys_truncate(Thread *thread, ptr<char> path,
|
||||
off_t length) {
|
||||
Ref<File> file;
|
||||
auto result = thread->tproc->ops->open(thread, path, 0, 0, &file);
|
||||
auto result = thread->tproc->ops->open(thread, path, 2, 0, &file);
|
||||
if (result.isError()) {
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue