Obviously in that Argentina progressed far beyond Portugal, didn't hurt that Messi had a far stronger squad and that Ronaldo's only top class team mate got himself sent off 20 minutes into their first game, or that they had a far easier group.
Messi had a good group stage against the might of Iran and a Mikel led Nigeria, then didn't score a single goal in any of the knockout games, was anonymous in the semi and missed a golden chance in the final. Portugal were rubbish but Ronaldo scored the winner vs Ghana and played an unbelievable cross to save a point against the US, not much more he could do with such a pitiful team with Pepe suspended and Coentrao injured.
edit: To clarify i'm not saying Ronaldo had a better world cup than Messi, but taking into account their relative teams and opponents, I don't think Messi's longer run in the tournament holds any weight over Ronaldo. With the team and fixtures Messi had, he had a great chance to really shine and after the group stage he just faded.