mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-08 16:07:04 -06:00
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:
@@ -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)));
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user