Mediatype.cpp: Fix cast from HRESULT to BOOL.

Found with /analyze, warning C6214, C6216.
Fix using potentially unitialized variable.
Return the filename within the rar when calling GetCurFile()