mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 18:09:15 +02:00
* ppudump: Avoid using GetLastOSError on platforms that doesn't support it (e.g. go32v2).
git-svn-id: trunk@41625 -
This commit is contained in:
parent
da4d2e2712
commit
37941d03cc
@ -1210,7 +1210,7 @@ begin
|
|||||||
while FOutBufPos > 0 do begin
|
while FOutBufPos > 0 do begin
|
||||||
len:=FileWrite(FOutFileHandle, FOutBuf[i], FOutBufPos);
|
len:=FileWrite(FOutFileHandle, FOutBuf[i], FOutBufPos);
|
||||||
if len < 0 then
|
if len < 0 then
|
||||||
raise Exception.CreateFmt('Error writing to file: ', [SysErrorMessage(GetLastOSError)]);
|
raise Exception.CreateFmt('Error writing to file: ', [ {$if declared(GetLastOSError) } SysErrorMessage(GetLastOSError) {$else} 'I/O error' {$endif} ]);
|
||||||
Inc(i, len);
|
Inc(i, len);
|
||||||
Dec(FOutBufPos, len);
|
Dec(FOutBufPos, len);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user