[~] pyDia: IDiaSymbol::get_xxx may return S_FALSE (if call failed)

git-svn-id: https://pykd.svn.codeplex.com/svn@69905 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\EreTIk_cp 2011-09-20 22:34:33 +00:00 committed by Mikhail I. Izmestev
parent 4c40342a91
commit c91abde950

View File

@ -101,7 +101,7 @@ do { \
throwIfNull(__FUNCTION__); \ throwIfNull(__FUNCTION__); \
retType retValue; \ retType retValue; \
HRESULT hres = m_symbol->##method(&retValue); \ HRESULT hres = m_symbol->##method(&retValue); \
if (FAILED(hres)) \ if (S_OK != hres) \
throw Exception("Call IDiaSymbol::" #method, hres); \ throw Exception("Call IDiaSymbol::" #method, hres); \
return retValue; \ return retValue; \
} while(false) } while(false)