Commit 805abf6d authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

oledb32: Pass the correct value to SafeArrayPutElement.

parent 5faa69d3
...@@ -960,7 +960,7 @@ static HRESULT WINAPI convert_DataConvert(IDataConvert* iface, ...@@ -960,7 +960,7 @@ static HRESULT WINAPI convert_DataConvert(IDataConvert* iface,
psa = SafeArrayCreate(VT_UI1,1,rgsabound); psa = SafeArrayCreate(VT_UI1,1,rgsabound);
for(i =0; i < src_len; i++,p++) for(i =0; i < src_len; i++,p++)
{ {
hr = SafeArrayPutElement(psa, &i, &p); hr = SafeArrayPutElement(psa, &i, p);
if(FAILED(hr)) { if(FAILED(hr)) {
SafeArrayDestroy (psa); SafeArrayDestroy (psa);
return hr; return hr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment