I would imagine it depends on the type of codesharing arrangmement, but the marketing carrier will certainly get some of the money. If it is a Block Space agreement, the marketing carrier will buy a block of seats from the operating carrier at a fix price, and sell them for whatever money they can get. If it is a freeflow agreement, where the marketing carrier continues selling space on the operators flight until the operator closes the flight for sale, then I would imagine some kind of revenue sharing is in place, either or a per seat sold basis or for the whole flight.
Young and beautiful and thin and gorgeous AND BANNED ! Cya at airspaceonline.com, losers