[Bug 26340] MSXML3, HTTP POST fails
wine-bugs at winehq.org
wine-bugs at winehq.org
Mon Jun 27 04:40:57 CDT 2011
http://bugs.winehq.org/show_bug.cgi?id=26340
--- Comment #7 from ocean04 at suomi24.fi 2011-06-27 04:40:56 CDT ---
I added support for VT_VARIANT|VT_BYREF and example is now working.
else
if (V_VT(body) == VT_VARIANT|VT_BYREF)
{
HRESULT hrs;
VARIANTARG tmpdat;
VariantInit(&tmpdat);
char *ansistr;
hrs = VariantCopyInd(&tmpdat, body);
if(hrs != S_OK) ERR("Could not copy array \n");
SAFEARRAY *sa = V_ARRAY(&tmpdat);
LONG size = sa->rgsabound[0].cElements;
TRACE("Got size %d\n", size);
void *ptr;
SafeArrayAccessData(sa, (void**)&ansistr);
bsc->body = GlobalAlloc(GMEM_FIXED, size);
if (!bsc->body)
{
heap_free(bsc);
return E_OUTOFMEMORY;
}
ptr = GlobalLock(bsc->body);
memcpy(ptr, ansistr, size);
GlobalUnlock(bsc->body);
SafeArrayUnaccessData(sa);
}
else
FIXME("unsupported body data type %d\n", V_VT(body));
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list