From 29ace113ad51eb62a22e3aead753c8db971dff42 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Tue, 12 Aug 2025 17:33:45 +0300 Subject: [PATCH] Fix symbolic link target extraction in CPIO handler Fixed bug where symbolic links were pointing to themselves instead of their correct targets on Windows. The code was probably copied from line 886 and was not adapted properly. --- CPP/7zip/Archive/CpioHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CPP/7zip/Archive/CpioHandler.cpp b/CPP/7zip/Archive/CpioHandler.cpp index 62184f0..e1d6d81 100644 --- a/CPP/7zip/Archive/CpioHandler.cpp +++ b/CPP/7zip/Archive/CpioHandler.cpp @@ -927,7 +927,7 @@ Z7_COM7F_IMF(CHandler::GetProperty(UInt32 index, PROPID propID, PROPVARIANT *val { #ifdef _WIN32 UString u; - ConvertUTF8ToUnicode(item.Name, u); + ConvertUTF8ToUnicode(s, u); #else const UString u = MultiByteToUnicodeString(s, CP_OEMCP); #endif