Skip to content

Commit 4fae369

Browse files
committed
Fix selectable uppercase / lowercase hash formatting
- the last fix was not done correctly - issue #177 is solved really now Signed-off-by: Tino Reichardt <[email protected]>
1 parent f095403 commit 4fae369

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

C/7zVersion.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#define MY_VER_MAJOR 22
22
#define MY_VER_MINOR 01
3-
#define MY_VER_BUILD 0
4-
#define MY_VERSION_NUMBERS "22.01 ZS v1.5.4 R1"
3+
#define MY_VER_BUILD 02
4+
#define MY_VERSION_NUMBERS "22.01 ZS v1.5.4 R2"
55
#define MY_VERSION MY_VERSION_NUMBERS
66

77
#ifdef MY_CPU_NAME
@@ -10,7 +10,7 @@
1010
#define MY_VERSION_CPU MY_VERSION
1111
#endif
1212

13-
#define MY_DATE "2023-02-12"
13+
#define MY_DATE "2023-02-18"
1414
#undef MY_COPYRIGHT
1515
#undef MY_VERSION_COPYRIGHT_DATE
1616
#define MY_AUTHOR_NAME "Igor Pavlov, Tino Reichardt"

CPP/7zip/UI/Common/HashCalc.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
#include "../FileManager/RegistryUtils.h"
2222
#endif
2323

24-
#ifdef WANT_OPTIONAL_LOWERCASE
25-
#include "../FileManager/RegistryUtils.h"
26-
#endif
27-
2824
#include "EnumDirItems.h"
2925
#include "HashCalc.h"
3026

@@ -657,15 +653,17 @@ static inline char GetHex_Upper(unsigned v)
657653
{
658654
#ifdef WANT_OPTIONAL_LOWERCASE
659655
if (WantLowercaseHashes())
660-
{
661656
return (char)((v < 10) ? ('0' + v) : ('a' + (v - 10)));
662-
}
663657
#endif
664658
return (char)((v < 10) ? ('0' + v) : ('A' + (v - 10)));
665659
}
666660

667661
static inline char GetHex_Lower(unsigned v)
668662
{
663+
#ifdef WANT_OPTIONAL_LOWERCASE
664+
if (!WantLowercaseHashes())
665+
return (char)((v < 10) ? ('0' + v) : ('A' + (v - 10)));
666+
#endif
669667
return (char)((v < 10) ? ('0' + v) : ('a' + (v - 10)));
670668
}
671669

CPP/7zip/UI/Explorer/ContextMenu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ STDMETHODIMP CZipContextMenu::QueryContextMenu(HMENU hMenu, UINT indexMenu,
883883
CMenu menu;
884884
menu.Attach(hMenu);
885885
menuDestroyer.Disable();
886-
MyAddSubMenu(_commandMap, kMainVerb, menu, indexMenu++, currentCommandID++, (UString)"7-Zip ZS",
886+
MyAddSubMenu(_commandMap, kCheckSumCascadedVerb, menu, indexMenu++, currentCommandID++, (UString)"7-Zip ZS",
887887
popupMenu, // popupMenu.Detach(),
888888
bitmap);
889889
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ You find this project useful, maybe you consider a donation ;-)
297297
- [Zstandard] Version 1.5.4
298298
- [BLAKE3] Version 0.3.7
299299

300-
/TR 2023-02-12
300+
/TR 2023-02-18
301301

302302
## Notes
303303

0 commit comments

Comments
 (0)