mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 05:09:49 +02:00
* Patch from Serge Anvarov to simplify ReadDate/ReadTime (bug ID 35105)
git-svn-id: trunk@44480 -
This commit is contained in:
parent
3030ffb9c1
commit
aaaca28dcd
@ -546,9 +546,7 @@ end;
|
|||||||
function TRegistry.ReadDate(const Name: UnicodeString): TDateTime;
|
function TRegistry.ReadDate(const Name: UnicodeString): TDateTime;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
Result:=Default(TDateTime);
|
Result:=Trunc(ReadDateTime(Name));
|
||||||
ReadBinaryData(Name, Result, SizeOf(TDateTime));
|
|
||||||
Result:=Trunc(Result);
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TRegistry.ReadDate(const Name: String): TDateTime;
|
function TRegistry.ReadDate(const Name: String): TDateTime;
|
||||||
|
@ -423,8 +423,6 @@ Function TRegistry.SysPutData(const Name: UnicodeString; Buffer: Pointer;
|
|||||||
|
|
||||||
Var
|
Var
|
||||||
RegDataType: DWORD;
|
RegDataType: DWORD;
|
||||||
B : Pchar;
|
|
||||||
S : String;
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
RegDataType:=RegDataWords[RegData];
|
RegDataType:=RegDataWords[RegData];
|
||||||
|
Loading…
Reference in New Issue
Block a user