Remember that delegates of candidates that have dropped out can vote as they please--just because Guliani endorsed McCain that doesn't mean his delegates (I think he has only a few) have to vote for McCain.
And don't forget about the superdelegates--I think 10% or 20% come directly from the party leadership.