From 61a11b52359dd86a76838e5239eda77bd556115f Mon Sep 17 00:00:00 2001 From: tetyys Date: Tue, 26 Dec 2017 17:08:38 +0200 Subject: [PATCH] Fix crash on Driver Properties -> Registry -> Jump To Key wsprintf on registry key was causing memory corruption which led to crash or instability of the program because of incorrect allocation of registry key path string --- Source/WinObjEx64/props/propDriverConsts.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/WinObjEx64/props/propDriverConsts.h b/Source/WinObjEx64/props/propDriverConsts.h index eeca62d..24035f6 100644 --- a/Source/WinObjEx64/props/propDriverConsts.h +++ b/Source/WinObjEx64/props/propDriverConsts.h @@ -20,4 +20,4 @@ #define REGEDITWNDCLASS L"RegEdit_RegEdit" #define PROPDRVREGSERVICESKEY L"\\HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\%ws" -#define PROPDRVREGSERVICESKEYLEN sizeof(REGISTRYSERVICESKEY) - sizeof(WCHAR) +#define PROPDRVREGSERVICESKEYLEN sizeof(PROPDRVREGSERVICESKEY) - sizeof(WCHAR)