Mediatype.cpp: Fix cast from HRESULT to BOOL.

Found with /analyze, warning C6214, C6216.