From dafcc2148a431c517cd71409ac1347a067a855e4 Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Tue, 7 May 2024 14:07:45 +0200 Subject: [PATCH] fix: set single entry flag for NtQueryEaFile() in getxattr() --- src/dwarfs/xattr_win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dwarfs/xattr_win.cpp b/src/dwarfs/xattr_win.cpp index 2f2926dc..8fcccb99 100644 --- a/src/dwarfs/xattr_win.cpp +++ b/src/dwarfs/xattr_win.cpp @@ -147,7 +147,7 @@ std::string getxattr(std::filesystem::path const& path, std::string const& name, ea = reinterpret_cast(ea_buf.data()); - auto res = ::NtQueryEaFile(fh, &iosb, ea, ea_buf.size(), FALSE, getea, + auto res = ::NtQueryEaFile(fh, &iosb, ea, ea_buf.size(), TRUE, getea, getea_len, nullptr, FALSE); if (res != STATUS_SUCCESS) {