AV in 64 bit process when ASLR is enabled

Recent update of Delphi has introduced ASLR support in compiled binaries. And immediately lots of bugs have popup. One of them is in RemObjects Software\RemObjects SDK for Delphi\Source\uROComboService.pas line 127, 128. Variables l_mgr and l_svc should be THandle and not Integer. This is important because value returned by OpenSCManager and OpenService is actually a pointer to internal structures in system libraries. I have not done any intensive testing, probably there are other places with wrong 32 bit types.

1 Like

Hi,

this code wasn’t changed since 2004.
I’ll update this unit for using proper types.

Logged as bugs://D19261.

bugs://D19261 was closed as fixed.