And those women who endured the tragedy of being raped still found themselves contending with laws that discriminated against the victims of sex crimes--laws that would only be changed years later by President Pervez Musharraf , who came to power in a 1999 military coup .