Heebie Gee-Gees (1952)

Wally Vernon and Eddie Quillan, each in trouble with their respective spouse, spend the day at the race track. When they accidentally bet on the wrong horse rather than the one they had picked, they hit a long-shot winner. But their more-than-irate wives show up before they can collect their winnings, and the only winner is Big Dan, the bookie.