MPCTestAPIDlg.cpp: Check return value and add a cast to shut up /analyze.