mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 12:59:24 +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));
|
||||
buffer[length(s)]:=#0;
|
||||
AllowSlash(pchar(@buffer));
|
||||
writeln(buffer);
|
||||
if not aFunc(@buffer) then
|
||||
begin
|
||||
errno:=GetLastError;
|
||||
@ -52,6 +51,10 @@ procedure rmdir(const s:string);[IOCHECK];
|
||||
begin
|
||||
if (s ='.') then
|
||||
InOutRes := 16;
|
||||
{$ifdef WINCE}
|
||||
if (s ='..') then
|
||||
InOutRes := 5;
|
||||
{$endif WINCE}
|
||||
If (s='') or (InOutRes <> 0) then
|
||||
exit;
|
||||
dirfn(TDirFnType(@RemoveDirectory),s);
|
||||
@ -66,7 +69,7 @@ begin
|
||||
if Inoutres=2 then
|
||||
Inoutres:=3;
|
||||
{$else WINCE}
|
||||
InOutRes:=1;
|
||||
InOutRes:=3;
|
||||
{$endif WINCE}
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user