* Made file open read-only

git-svn-id: trunk@4417 -
This commit is contained in:
michael 2006-08-13 13:31:49 +00:00
parent 93db6d6174
commit ad11bfe96d

View File

@ -336,11 +336,14 @@ var
Buf : Pchar;
Context: TMD5Context;
Count : Longint;
ofm : Longint;
begin
MD5Init(Context);
Assign(F,N);
{$i-}
ofm:=FileMode;
FileMode:=0;
Reset(F,1);
{$i+}
if (IOResult=0) then
@ -355,6 +358,7 @@ begin
Close(F);
end;
MD5Final(Context, Result);
FileMode:=ofm;
end;