mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-04 18:58:30 +02:00
Merged revision(s) 41625 from trunk:
* ppudump: Avoid using GetLastOSError on platforms that doesn't support it (e.g. go32v2). ........ git-svn-id: branches/fixes_3_2@41626 -
This commit is contained in:
parent
663c97ed23
commit
0d2cb32aad
@ -1210,7 +1210,7 @@ begin
|
||||
while FOutBufPos > 0 do begin
|
||||
len:=FileWrite(FOutFileHandle, FOutBuf[i], FOutBufPos);
|
||||
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);
|
||||
Dec(FOutBufPos, len);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user