Skip to content

Commit

Permalink
THRIFT-5839 incorrect cast under Win64
Browse files Browse the repository at this point in the history
Client: delphi
Patch: Jens Geyer
  • Loading branch information
Jens-G committed Nov 28, 2024
1 parent 45b1868 commit f54bdbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/delphi/src/Thrift.Transport.Pipes.pas
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ function TAnonymousPipeServerTransportImpl.CreateAnonPipe : Boolean;
FReadHandle := hPipe;
FWriteHandle := hPipeW;
finally
if sd <> nil then LocalFree( Cardinal(sd));
if sd <> nil then LocalFree( NativeUInt(sd));
end;
end;

Expand Down Expand Up @@ -1117,8 +1117,8 @@ function TNamedPipeServerTransportImpl.CreateNamedPipe : THandle;
else raise TTransportExceptionNotOpen.Create('CreateNamedPipe() failed ' + IntToStr(GetLastError));

finally
if sd <> nil then LocalFree( Cardinal( sd));
if acl <> nil then LocalFree( Cardinal( acl));
if sd <> nil then LocalFree( NativeUInt(sd));
if acl <> nil then LocalFree( NativeUInt(acl));
if everyone_sid <> nil then FreeSid(everyone_sid);
end;
end;
Expand Down

0 comments on commit f54bdbd

Please sign in to comment.