From b904b21f18d691e4ef6736e2ba2c25654873fd8a Mon Sep 17 00:00:00 2001 From: Christopher Gurnee Date: Tue, 6 Sep 2016 17:49:31 -0400 Subject: [PATCH] fix minor context menu bug --- CHashCheck.cpp | 5 ++--- appveyor.yml | 2 +- installer/HashCheck.nsi | 8 ++++---- version.h | 4 ++-- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/CHashCheck.cpp b/CHashCheck.cpp index 030628a..c3aeaab 100644 --- a/CHashCheck.cpp +++ b/CHashCheck.cpp @@ -127,10 +127,9 @@ STDMETHODIMP CHashCheck::QueryContextMenu( HMENU hmenu, UINT indexMenu, UINT idC if (! InsertMenuItem(hmenu, indexMenu, TRUE, &mii)) return(MAKE_HRESULT(SEVERITY_SUCCESS, FACILITY_NULL, 0)); - if (! InsertMenu(hmenu, indexMenu + 1, MF_SEPARATOR | MF_BYPOSITION, 0, NULL)) - return(MAKE_HRESULT(SEVERITY_SUCCESS, FACILITY_NULL, 1)); + InsertMenu(hmenu, indexMenu + 1, MF_SEPARATOR | MF_BYPOSITION, 0, NULL); - return(MAKE_HRESULT(SEVERITY_SUCCESS, FACILITY_NULL, 2)); + return(MAKE_HRESULT(SEVERITY_SUCCESS, FACILITY_NULL, 1)); } STDMETHODIMP CHashCheck::InvokeCommand( LPCMINVOKECOMMANDINFO pici ) diff --git a/appveyor.yml b/appveyor.yml index feeba5a..a1cb44c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 2.4.0.51-beta +version: 2.4.0.52-beta image: Visual Studio 2015 diff --git a/installer/HashCheck.nsi b/installer/HashCheck.nsi index 5613f35..23a84b0 100644 --- a/installer/HashCheck.nsi +++ b/installer/HashCheck.nsi @@ -6,7 +6,7 @@ Unicode true Name "HashCheck" -OutFile "HashCheckSetup-v2.4.0.51-beta.exe" +OutFile "HashCheckSetup-v2.4.0.52-beta.exe" RequestExecutionLevel admin ManifestSupportedOS all @@ -53,13 +53,13 @@ FunctionEnd !insertmacro MUI_LANGUAGE "Ukrainian" !insertmacro MUI_LANGUAGE "Catalan" -VIProductVersion "2.4.0.51-beta" +VIProductVersion "2.4.0.52-beta" VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "HashCheck Shell Extension" -VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductVersion" "2.4.0.51-beta" +VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductVersion" "2.4.0.52-beta" VIAddVersionKey /LANG=${LANG_ENGLISH} "Comments" "Installer distributed from https://github.com/gurnec/HashCheck/releases" VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "Copyright © 2008-2016 Kai Liu, Christopher Gurnee, Tim Schlueter, et al. All rights reserved." VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "Installer (x86/x64) from https://github.com/gurnec/HashCheck/releases" -VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "2.4.0.51-beta" +VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "2.4.0.52-beta" ; With solid compression, files that are required before the ; actual installation should be stored first in the data block, diff --git a/version.h b/version.h index 7fbb5d3..d782409 100644 --- a/version.h +++ b/version.h @@ -12,10 +12,10 @@ #define HASHCHECK_NAME_STR "HashCheck Shell Extension" // Full version: MUST be in the form of major,minor,revision,build -#define HASHCHECK_VERSION_FULL 2,4,0,51 +#define HASHCHECK_VERSION_FULL 2,4,0,52 // String version: May be any suitable string -#define HASHCHECK_VERSION_STR "2.4.0.51-beta" +#define HASHCHECK_VERSION_STR "2.4.0.52-beta" #ifdef _USRDLL // PE version: MUST be in the form of major.minor