Microsoft has one of its best quarters ever -- revenue is up and growing on all their major devisions -- but end up taking an accounting loss (and tax credit, I assume?). Kudos to the accounting team for that one!
This is fairly standard practice. Just much more noticeable when it is MS and it is such a large purchase price.