shdocvw: Wrong PostData VT is not an error.

This commit is contained in:
Jacek Caban 2007-08-01 20:09:19 +02:00 committed by Alexandre Julliard
parent b25b287e6c
commit b2395e4907
1 changed files with 6 additions and 8 deletions

View File

@ -528,16 +528,14 @@ HRESULT navigate_url(DocHost *This, BSTR url, VARIANT *Flags, VARIANT *TargetFra
|| (TargetFrameName && V_VT(TargetFrameName) != VT_EMPTY)) || (TargetFrameName && V_VT(TargetFrameName) != VT_EMPTY))
FIXME("Unsupported arguments\n"); FIXME("Unsupported arguments\n");
if(PostData && V_VT(PostData) != VT_EMPTY && V_VT(PostData) != VT_ERROR) { if(PostData) {
if(V_VT(PostData) != (VT_ARRAY | VT_UI1) TRACE("PostData vt=%d\n", V_VT(PostData));
|| V_ARRAY(PostData)->cDims != 1) {
WARN("Invalid PostData\n");
return E_INVALIDARG;
}
if(V_VT(PostData) == (VT_ARRAY | VT_UI1)) {
SafeArrayAccessData(V_ARRAY(PostData), (void**)&post_data); SafeArrayAccessData(V_ARRAY(PostData), (void**)&post_data);
post_data_len = V_ARRAY(PostData)->rgsabound[0].cElements; post_data_len = V_ARRAY(PostData)->rgsabound[0].cElements;
} }
}
if(Headers && V_VT(Headers) != VT_EMPTY && V_VT(Headers) != VT_ERROR) { if(Headers && V_VT(Headers) != VT_EMPTY && V_VT(Headers) != VT_ERROR) {
if(V_VT(Headers) != VT_BSTR) if(V_VT(Headers) != VT_BSTR)