Here is a definition of baptism of desire:
“Baptism of Desire is one of the two possible substitutes for Baptism of water. When it is not possible thus to be baptized, an act of perfect contrition or pure love of God will supply the omission. Such acts are a perfect and ultimate diposition calling for the infusion of sanctifying grace, and at least implicitly include a desire and intention to receive Baptism of water should occasion offer. Infants are not capable of Baptism of desire. An heathen, believing, even though in a confused way, in a God whose will should be done and desiring to do that will whatever it may be, probably has Baptism of desire. It may reasonably be assumed that vast numbers of persons unbaptized by water have thus been rendered capable of enjoying the Beatific Vision.”
You are asking about a situation in which baptism with water has occurred so Baptism of Desire does not apply.
A person who has known the full truth taught by the Catholic Church and rejected it, is among those least likely to be saved. Of course, we cannot judge the soul of another; that is for God alone.