Error in IconsToStream for TTMSFMXDirectoryTreeView

Calling LoadDrivers for a 64 bit application there is an "Acces violation error". The error is caused by the IconsToStream procedure. Specifically, it is the use of the CopyMemory procedure:
CopyMemory(Pointer(Cardinal(Pstorage) ....

Cardinal type was used and NativeUInt should have been used.
After the replacement, the code works correctly.