Skip to content

Commit

Permalink
Fix the implementation of GetHandlerProperty2 to NanaZip.Codecs.
Browse files Browse the repository at this point in the history
  • Loading branch information
MouriNaruto committed Jan 30, 2025
1 parent 5e1d309 commit 51c8e89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NanaZip.Codecs/NanaZip.Codecs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ EXTERN_C HRESULT WINAPI GetHandlerProperty2(
!(g_Archivers[Index].Flags & SevenZipHandlerFlagMultiSignature))
{
Value->bstrVal = ::SysAllocStringByteLen(
reinterpret_cast<LPCSTR>(&g_Archivers[Index].Signature),
reinterpret_cast<LPCSTR>(g_Archivers[Index].Signature),
g_Archivers[Index].SignatureSize);
if (Value->bstrVal)
{
Expand All @@ -399,7 +399,7 @@ EXTERN_C HRESULT WINAPI GetHandlerProperty2(
g_Archivers[Index].Flags & SevenZipHandlerFlagMultiSignature)
{
Value->bstrVal = ::SysAllocStringByteLen(
reinterpret_cast<LPCSTR>(&g_Archivers[Index].Signature),
reinterpret_cast<LPCSTR>(g_Archivers[Index].Signature),
g_Archivers[Index].SignatureSize);
if (Value->bstrVal)
{
Expand Down

0 comments on commit 51c8e89

Please sign in to comment.