1
0
mirror of https://github.com/fuse-friends/fuse-native synced 2024-10-27 18:34:01 +00:00

fix detatch

This commit is contained in:
Mathias Buus 2020-05-20 13:01:13 +02:00
parent 4555cc43a0
commit 570fd55297
2 changed files with 2 additions and 2 deletions

View File

@ -380,7 +380,7 @@ FUSE_METHOD(read, 6, 2, (const char *path, char *buf, size_t len, off_t offset,
napi_create_uint32(env, l->len, &(argv[5]));
FUSE_UINT64_TO_INTS_ARGV(l->offset, 6)
}, {
napi_detach_arraybuffer(env, argv[3]);
assert(napi_detach_arraybuffer(env, argv[3]) == napi_ok);
})
FUSE_METHOD(write, 6, 1, (const char *path, const char *buf, size_t len, off_t offset, struct fuse_file_info *info), {

View File

@ -458,7 +458,7 @@ class Fuse extends Nanoresource {
_op_read (signal, path, fd, buf, len, offsetLow, offsetHigh) {
this.ops.read(path, fd, buf, len, getDoubleArg(offsetLow, offsetHigh), (err, bytesRead) => {
return signal(err, bytesRead, buf)
return signal(err, bytesRead, buf.buffer)
})
}