better way to check for success is to check the return code is non-negative:
<pre>
if(ippFunc(...) &gt;=0) return sc;
</pre>