mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 18:09:12 +02:00
Fix Result not assigned
This commit is contained in:
parent
f923348cca
commit
c06bf85045
@ -345,8 +345,10 @@ var
|
||||
Res : Boolean;
|
||||
|
||||
begin
|
||||
if IOType in [iotNone,iotFile] then
|
||||
if IOType in [iotNone,iotFile] then begin
|
||||
Result:=aHandle;
|
||||
exit;
|
||||
end;
|
||||
oldHandle := ahandle;
|
||||
ahandle:=THandle(INVALID_HANDLE_VALUE);
|
||||
Res := DuplicateHandle
|
||||
|
Loading…
Reference in New Issue
Block a user