* fixed WinCE compilation

git-svn-id: trunk@7072 -
This commit is contained in:
florian 2007-04-07 18:23:24 +00:00
parent d90bc77a54
commit 3b3162062a

View File

@ -116,9 +116,13 @@ begin
Result:=0;
S:=Key;
Rel:=RelativeKey(S);
if not(Rel) then
if not(Rel) then
Delete(S,1,1);
{$ifdef WinCE}
RegOpenKeyEx(GetBaseKey(Rel),PWideChar(WideString(S)),0,FAccess,Result);
{$else WinCE}
RegOpenKeyEx(GetBaseKey(Rel),PChar(S),0,FAccess,Result);
{$endif WinCE}
end;