summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-05-14 00:51:02 +0200
committerZach Hilman <zachhilman@gmail.com>2019-09-30 23:27:23 +0200
commit2d410ddf4d9c0109d64fdf3319efeb9e6cc0bce1 (patch)
tree81e11426f742b8e8605782095999dc3a3ec5524b /src/core/file_sys
parentboxcat: Use Etag header names for file digest (diff)
downloadyuzu-2d410ddf4d9c0109d64fdf3319efeb9e6cc0bce1.tar
yuzu-2d410ddf4d9c0109d64fdf3319efeb9e6cc0bce1.tar.gz
yuzu-2d410ddf4d9c0109d64fdf3319efeb9e6cc0bce1.tar.bz2
yuzu-2d410ddf4d9c0109d64fdf3319efeb9e6cc0bce1.tar.lz
yuzu-2d410ddf4d9c0109d64fdf3319efeb9e6cc0bce1.tar.xz
yuzu-2d410ddf4d9c0109d64fdf3319efeb9e6cc0bce1.tar.zst
yuzu-2d410ddf4d9c0109d64fdf3319efeb9e6cc0bce1.zip
Diffstat (limited to 'src/core/file_sys')
-rw-r--r--src/core/file_sys/vfs_libzip.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/file_sys/vfs_libzip.cpp b/src/core/file_sys/vfs_libzip.cpp
index e34474ae0..8bdaa7e4a 100644
--- a/src/core/file_sys/vfs_libzip.cpp
+++ b/src/core/file_sys/vfs_libzip.cpp
@@ -15,13 +15,13 @@ VirtualDir ExtractZIP(VirtualFile file) {
zip_error_t error{};
const auto data = file->ReadAllBytes();
- std::unique_ptr<zip_source_t, decltype(&zip_source_free)> src{
- zip_source_buffer_create(data.data(), data.size(), 0, &error), zip_source_free};
+ std::unique_ptr<zip_source_t, decltype(&zip_source_close)> src{
+ zip_source_buffer_create(data.data(), data.size(), 0, &error), zip_source_close};
if (src == nullptr)
return nullptr;
- std::unique_ptr<zip_t, decltype(&zip_discard)> zip{zip_open_from_source(src.get(), 0, &error),
- zip_discard};
+ std::unique_ptr<zip_t, decltype(&zip_close)> zip{zip_open_from_source(src.get(), 0, &error),
+ zip_close};
if (zip == nullptr)
return nullptr;