* Applied patch from Bart Broersma to fix bug ID #36663

git-svn-id: trunk@44127 -
This commit is contained in:
michael 2020-02-07 17:47:36 +00:00
parent dffb35575b
commit 5b2738d22f

View File

@ -59,12 +59,13 @@ Var
Disposition: Dword;
Handle: HKEY;
SecurityAttributes: Pointer; //LPSECURITY_ATTRIBUTES;
U: UnicodeString;
begin
SecurityAttributes := Nil;
Key:=PrepKey(Key);
U:=PrepKey(Key);
FLastError:=RegCreateKeyExW(GetBaseKey(RelativeKey(Key)),
PWideChar(Key),
PWideChar(U),
0,
'',
REG_OPTION_NON_VOLATILE,