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
This commit is contained in:
tetyys 2017-12-26 17:08:38 +02:00
parent 9245836619
commit 61a11b5235
1 changed files with 1 additions and 1 deletions

View File

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