Skip to content

Commit e4b8cb3

Browse files
committed
io: fix dh open error
1 parent 6dc1fb5 commit e4b8cb3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

newlib/libc/sys/vita/fios2.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ int sceFiosFHStatSync(const SceFiosOpAttr *attr, SceFiosFH fh, SceFiosStat *stat
150150
int sceFiosDHStatSync(const SceFiosOpAttr *attr, SceFiosDH fh, SceFiosStat *stat);
151151

152152
int sceFiosDirectoryCreateSync(const SceFiosOpAttr *attr, const char *path);
153+
int sceFiosDHOpenSync(const SceFiosOpAttr *attr, SceFiosDH *dh, const char *path, SceFiosBuffer buffer);
153154
int sceFiosDHOpenSync(const SceFiosOpAttr *attr, SceFiosDH *dh, const char *path, const void *params);
154155
int sceFiosDHCloseSync(const SceFiosOpAttr *attr, SceFiosDH fh);
155156

newlib/libc/sys/vita/syscalls.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,8 @@ _open_r(struct _reent *reent, const char *file, int flags, int mode)
283283

284284
if (is_dir) {
285285
SceFiosDH handle = 0;
286-
SceFiosOpenParams openParams = SCE_FIOS_OPENPARAMS_INITIALIZER;
287-
openParams.openFlags = sce_flags;
288-
ret = sceFiosDHOpenSync(NULL, &handle, full_path, &openParams);
286+
SceFiosBuffer buf = SCE_FIOS_BUFFER_INITIALIZER;
287+
ret = sceFiosDHOpenSync(NULL, &handle, full_path, buf);
289288
ret = ret < 0 ? ret : handle;
290289
} else {
291290
SceFiosFH handle = 0;

0 commit comments

Comments
 (0)