HONG KONG  A judge in Hong Kong ruled Tuesday that the estate of the billionaire known as Little Sweetie will not be going to her feng shui master.

The judge, Johnson Lam, ruled instead that the billionaire, Nina Wang, intended to leave her estate to her charity, the Chinachem Charitable Foundation, under a will that she drew up in 2002. Mrs. Wang, once the richest woman in Asia, died of cancer in 2007 at the age of 69.

In a 326-page ruling, Mr. Lam invalidated a “feng shui will” from 2006, saying her signature had been forged. That will would have given Mrs. Wang’s entire fortune to her onetime spiritual adviser, Tony Chan, who also claimed to be her long-time lover. Estimates of Mrs. Wang’s estate have ranged from $4 billion to nearly $13 billion.

Mrs. Wang, an engaging eccentric who wore pigtails and miniskirts well into middle age, was the chairwoman of the Chinachem Group, a real estate and development conglomerate that she and her husband, Teddy Wang, had built together. They also founded the Chinachem charity in 1988.