A Thai court Friday ruled against a complaint that would have undone the partial privatization of the country’s major oil company and forced it to withdraw its listing from the Thai stock market.

The Supreme Administrative Court’s ruling Friday that the 2001 privatization of PTT PCL was lawful lifted weeks of uncertainty for the company and investors.