At the time of the Korean war, China was still in the Mao period. From any sane point of view at that time, communism was horrible for China.
Post-Mao, well... Hua was a disaster and Deng was never a good communist. Mao himself accused Deng of being a capitalist and banished him to the countryside in the 60s. Once he finally gained power and brought back mild capitalism (really, market socialism), it still took 20 years for China to really get going.