X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fmount_image.c;h=69fad24468332471d7049e8707b6f4ef1349b320;hp=7f0a2aa01eb64b1c2475cd8b19a649b907414feb;hb=ded522fd0a15d740354329c5066ebd3473563e57;hpb=4449a8d6647cb1b5c251de9b77a0f4230811f09e diff --git a/src/mount_image.c b/src/mount_image.c index 7f0a2aa0..69fad244 100644 --- a/src/mount_image.c +++ b/src/mount_image.c @@ -291,7 +291,7 @@ static int create_dentry(struct wimfs_context *ctx, const char *path, new = new_dentry_with_inode(basename); if (!new) - return -ENOMEM; + return -errno; new->d_inode->resolved = 1; new->d_inode->ino = ctx->next_ino++; @@ -1609,7 +1609,7 @@ static int wimfs_link(const char *to, const char *from) return -EEXIST; from_dentry = new_dentry(link_name); if (!from_dentry) - return -ENOMEM; + return -errno; inode_add_dentry(from_dentry, inode); from_dentry->d_inode = inode;