Device ID offsets. memcpy return fix