Преглед на файлове

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

git-svn-id: trunk@44127 -
michael преди 5 години
родител
ревизия
5b2738d22f
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      packages/fcl-registry/src/winreg.inc

+ 3 - 2
packages/fcl-registry/src/winreg.inc

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