Kevin James was ready to walk away from Hollywood forever after seeing the first cut of Paul Blart: Mall Cop. "I believed my career was finished," James confessed this week on The Drew Barrymore Show. "We were in a total panic. The movie was an absolute disaster."

That's when Adam Sandler stepped in with what James calls "pure movie magic." The comedy superstar, who produced the 2009 film, took one look at the disastrous edit and transformed it into a box office hit that would launch James' career into new territory.

"He rescued me. He made my movie Mall Cop happen," James revealed. "Adam said, 'Take it easy, pal. Let me take a look.' He reviewed it, gave scenes room to breathe, and just knew exactly how to fix it. He transformed it into the movie it became. It was incredible."

Kevin James in 'Paul Blart: Mall Cop' - a film that almost ended his career until Adam Sandler's intervention. Moviestore/Shutterstock

The behind-the-scenes drama reveals just how close one of comedy's most successful franchises came to never existing. James, who co-wrote, co-produced and starred in the film, credits Sandler with single-handedly saving both the movie and his future in Hollywood.

Barrymore, who has her own legendary partnership with Sandler dating back to The Wedding Singer, agreed that Sandler possesses a unique genius for fixing broken projects. "He's the best," she said, recalling how she pursued Sandler for years because she knew they were destined to become "the Spencer Tracy and Katharine Hepburn of their time."

James' revelation comes as he promotes his new romantic comedy Solo Mio, but the conversation kept returning to Sandler's unparalleled influence. "I pay attention to everything he does," James admitted. "I just follow his lead."

The story serves as a powerful reminder that even the most successful comedies can start as disasters - and that sometimes, it takes one person's vision to turn panic into profit. Without Sandler's last-minute intervention, there might never have been a Paul Blart, a sequel, or Kevin James' continued Hollywood success.

The Drew Barrymore Show airs on weekdays. Check local listings for times.