aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive/archive_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/archive_util.c')
-rw-r--r--libarchive/archive_util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libarchive/archive_util.c b/libarchive/archive_util.c
index 288a44280dc2..c76ecc5b05b1 100644
--- a/libarchive/archive_util.c
+++ b/libarchive/archive_util.c
@@ -365,6 +365,7 @@ __archive_mktempx(const char *tmpdir, wchar_t *template)
}
fd = _open_osfhandle((intptr_t)h, _O_BINARY | _O_RDWR);
if (fd == -1) {
+ la_dosmaperr(GetLastError());
CloseHandle(h);
goto exit_tmpfile;
} else