Skip to content

Commit

Permalink
Fix selectable uppercase / lowercase hash formatting
Browse files Browse the repository at this point in the history
- the last fix was not done correctly
- issue #177 is solved really now

Signed-off-by: Tino Reichardt <[email protected]>
  • Loading branch information
mcmilk committed Feb 18, 2023
1 parent f095403 commit 4fae369
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
6 changes: 3 additions & 3 deletions C/7zVersion.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#define MY_VER_MAJOR 22
#define MY_VER_MINOR 01
#define MY_VER_BUILD 0
#define MY_VERSION_NUMBERS "22.01 ZS v1.5.4 R1"
#define MY_VER_BUILD 02
#define MY_VERSION_NUMBERS "22.01 ZS v1.5.4 R2"
#define MY_VERSION MY_VERSION_NUMBERS

#ifdef MY_CPU_NAME
Expand All @@ -10,7 +10,7 @@
#define MY_VERSION_CPU MY_VERSION
#endif

#define MY_DATE "2023-02-12"
#define MY_DATE "2023-02-18"
#undef MY_COPYRIGHT
#undef MY_VERSION_COPYRIGHT_DATE
#define MY_AUTHOR_NAME "Igor Pavlov, Tino Reichardt"
Expand Down
10 changes: 4 additions & 6 deletions CPP/7zip/UI/Common/HashCalc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
#include "../FileManager/RegistryUtils.h"
#endif

#ifdef WANT_OPTIONAL_LOWERCASE
#include "../FileManager/RegistryUtils.h"
#endif

#include "EnumDirItems.h"
#include "HashCalc.h"

Expand Down Expand Up @@ -657,15 +653,17 @@ static inline char GetHex_Upper(unsigned v)
{
#ifdef WANT_OPTIONAL_LOWERCASE
if (WantLowercaseHashes())
{
return (char)((v < 10) ? ('0' + v) : ('a' + (v - 10)));
}
#endif
return (char)((v < 10) ? ('0' + v) : ('A' + (v - 10)));
}

static inline char GetHex_Lower(unsigned v)
{
#ifdef WANT_OPTIONAL_LOWERCASE
if (!WantLowercaseHashes())
return (char)((v < 10) ? ('0' + v) : ('A' + (v - 10)));
#endif
return (char)((v < 10) ? ('0' + v) : ('a' + (v - 10)));
}

Expand Down
2 changes: 1 addition & 1 deletion CPP/7zip/UI/Explorer/ContextMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ STDMETHODIMP CZipContextMenu::QueryContextMenu(HMENU hMenu, UINT indexMenu,
CMenu menu;
menu.Attach(hMenu);
menuDestroyer.Disable();
MyAddSubMenu(_commandMap, kMainVerb, menu, indexMenu++, currentCommandID++, (UString)"7-Zip ZS",
MyAddSubMenu(_commandMap, kCheckSumCascadedVerb, menu, indexMenu++, currentCommandID++, (UString)"7-Zip ZS",
popupMenu, // popupMenu.Detach(),
bitmap);
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ You find this project useful, maybe you consider a donation ;-)
- [Zstandard] Version 1.5.4
- [BLAKE3] Version 0.3.7

/TR 2023-02-12
/TR 2023-02-18

## Notes

Expand Down

0 comments on commit 4fae369

Please sign in to comment.