platform: actually copy handle name correctly