Get them to see a different perspective and find other solutions than to whine.

I don't know if this is considered making things worse, but you really got to get that person to notice that his/her whining is getting annoying, even if you have to say it bluntly.