Fix selectable uppercase / lowercase hash formatting

- the last fix was not done correctly
- issue #177 is solved really now

Signed-off-by: Tino Reichardt <milky-7zip@mcmilk.de>
This commit is contained in:
Tino Reichardt
2023-02-18 19:11:16 +01:00
parent f0954038bc
commit 4fae369d2d
4 changed files with 9 additions and 11 deletions

View File

@@ -21,10 +21,6 @@
#include "../FileManager/RegistryUtils.h"
#endif
#ifdef WANT_OPTIONAL_LOWERCASE
#include "../FileManager/RegistryUtils.h"
#endif
#include "EnumDirItems.h"
#include "HashCalc.h"
@@ -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)));
}

View File

@@ -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);
}