Browse Source

* Fixed compile error in FileCreate

git-svn-id: trunk@17549 -
michael 14 years ago
parent
commit
9d580533d9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      rtl/win/sysutils.pp

+ 2 - 2
rtl/win/sysutils.pp

@@ -235,12 +235,12 @@ end;
 
 
 Function FileCreate (Const FileName : String) : THandle;
 Function FileCreate (Const FileName : String) : THandle;
 begin
 begin
-  FileCreate:=FileCreate(FileName, fmShareExclusive);
+  FileCreate:=FileCreate(FileName, fmShareExclusive, 0);
 end;
 end;
 
 
 Function FileCreate (Const FileName : String; Rights:longint) : THandle;
 Function FileCreate (Const FileName : String; Rights:longint) : THandle;
 begin
 begin
-  FileCreate:=FileCreate(FileName, Mode, 0);
+  FileCreate:=FileCreate(FileName, fmShareExclusive, Rights);
 end;
 end;
 
 
 Function FileCreate (Const FileName : String; ShareMode : Integer; Rights : Integer) : THandle;
 Function FileCreate (Const FileName : String; ShareMode : Integer; Rights : Integer) : THandle;