yeast infection

what happens if you treat a yeast infection by yourself but it isn’t actually a yeast infection? what would the consequences be of the medicine?