ordinals[i] = (IntPtr)(i + 1);
}
- OleDbHResult hr;
+ IntPtr bindingPtr;
if (ODB.IsRunningOnX86)
{
}
fixed (tagDBPARAMBINDINFO_x86* p = &bindInfo_x86[0])
{
- hr = commandWithParameters.SetParameterInfo((IntPtr)bindInfo.Length, ordinals, (IntPtr)p);
+ bindingPtr = (IntPtr)p;
}
}
else
{
fixed (tagDBPARAMBINDINFO* p = &bindInfo[0])
{
- hr = commandWithParameters.SetParameterInfo((IntPtr)bindInfo.Length, ordinals, (IntPtr)p);
+ bindingPtr = (IntPtr)p;
}
}
+ OleDbHResult hr = commandWithParameters.SetParameterInfo((IntPtr)bindInfo.Length, ordinals, (IntPtr)bindingPtr);
+
if (hr < 0)
{
ProcessResults(hr);