many things may affect the final outcome of a war,check human history for that part.the history is history,winners are winnes,losers are losers.
Then use the same yardstick always , stop the hypocrisy and admit that China dint gain anything in 1979 against Vietnam , your objective in that war was not achieved