HTC have, for a variety of reasons lost a lot of ground to Samsung.
The question I always find myself asking, is would Nokia have faired better there?
On WP they only have to out gun HTC really, thats it. On Android, Samsung are doing a good job carving out the high end, the mid range, and leaving the low to no profit margin to the Chinese and nock off brigade.
Will Nokia's Microsoft gamble pay off? Who knows, Would it have been raking in the billions if it had gone Android? Probably not, as HTC's problems show.