Hindus, Muslims and people of all faiths have the same Criminal law. Like Muslims, each religion has their own personal laws. Hindus have Hindu Personal Law which is based on their religious scriptures like Vedas, Smritis, and Upanishads.
All kings, irrespective of their faith, had a common goal of protecting their rulership and expanding their kingdom. They did things that helped them achieve this goal. We should never link religion with the actions of the kings.
Muslims & Hindus in Malaysia and Indonesia live in peace and harmony. Some of the world’s most beautiful temples are found in Malaysia and Indonesia. This clearly shows that Muslim countries allow rights and freedom to their non-Muslim citizens.