Meaning: to really wish for a good result when you do something even though it doesn't necessarily result in a good result.
Example: The teacher told the girl that her drawing was excellent. The girl thought that her drawing was poor but that the teacher's heart was in the right place.
See this Idiom in a story: Ripped Off