mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 02:49:22 +02:00
* removed debug writeln in dirfn.
* fixed I/O error codes for wince. git-svn-id: trunk@4108 -
This commit is contained in:
parent
53ef335edd
commit
451063e187
@ -28,7 +28,6 @@ begin
|
|||||||
move(s[1],buffer,length(s));
|
move(s[1],buffer,length(s));
|
||||||
buffer[length(s)]:=#0;
|
buffer[length(s)]:=#0;
|
||||||
AllowSlash(pchar(@buffer));
|
AllowSlash(pchar(@buffer));
|
||||||
writeln(buffer);
|
|
||||||
if not aFunc(@buffer) then
|
if not aFunc(@buffer) then
|
||||||
begin
|
begin
|
||||||
errno:=GetLastError;
|
errno:=GetLastError;
|
||||||
@ -52,6 +51,10 @@ procedure rmdir(const s:string);[IOCHECK];
|
|||||||
begin
|
begin
|
||||||
if (s ='.') then
|
if (s ='.') then
|
||||||
InOutRes := 16;
|
InOutRes := 16;
|
||||||
|
{$ifdef WINCE}
|
||||||
|
if (s ='..') then
|
||||||
|
InOutRes := 5;
|
||||||
|
{$endif WINCE}
|
||||||
If (s='') or (InOutRes <> 0) then
|
If (s='') or (InOutRes <> 0) then
|
||||||
exit;
|
exit;
|
||||||
dirfn(TDirFnType(@RemoveDirectory),s);
|
dirfn(TDirFnType(@RemoveDirectory),s);
|
||||||
@ -66,7 +69,7 @@ begin
|
|||||||
if Inoutres=2 then
|
if Inoutres=2 then
|
||||||
Inoutres:=3;
|
Inoutres:=3;
|
||||||
{$else WINCE}
|
{$else WINCE}
|
||||||
InOutRes:=1;
|
InOutRes:=3;
|
||||||
{$endif WINCE}
|
{$endif WINCE}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user