Fix Result not assigned

This commit is contained in:
Martin 2023-12-18 00:58:55 +01:00
parent f923348cca
commit c06bf85045

View File

@ -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