0003471: HRESULT return codes from unmanaged methods are possibly being wrongly interpreted (1 Viewer)

MediaPortal-Bot

Worlds greatest bot!
March 26, 2007
3,715
180
Home Country
Germany Germany
We need to check calls to unmanaged methods in both TVServer and MediaPortal to make sure that the return HRESULT is correctly interpreted for that function.<br /> <br /> Some methods are only checking for S_OK (0x0) and throwing an error for anything else. For example, S_FALSE (0x1) is an alternative success code and is returned by Terratec drivers when trying to tune to a transponder that is already tuned. <br /> <br /> Technically any positive HRESULT is a success code (with a possible warning code attached). Each method really needs to be checked against relavent specifications to make sure that the return code is handled correctly (especially calls that are driver specific).

Continue reading...
 

Users who are viewing this thread

Top Bottom