Juan Lang wrote:
Combined with the first patch, I'm able to log in with Skype 2.6 beta.
ChangeLog: ignore VT_ERROR arguments to WebBrowser_Navigate2
Ignoring VT_ERROR just masks a previous error.
bye michael
Index: dlls/shdocvw/webbrowser.c
RCS file: /home/wine/wine/dlls/shdocvw/webbrowser.c,v retrieving revision 1.65 diff -u -r1.65 webbrowser.c --- dlls/shdocvw/webbrowser.c 25 Sep 2006 19:46:43 -0000 1.65 +++ dlls/shdocvw/webbrowser.c 29 Sep 2006 00:55:46 -0000 @@ -675,7 +675,7 @@ if(V_VT(URL) != VT_BSTR) return E_INVALIDARG;
- if(PostData && V_VT(PostData) != VT_EMPTY) {
- if(PostData && V_VT(PostData) != VT_EMPTY && V_VT(PostData) != VT_ERROR) { if(V_VT(PostData) != (VT_ARRAY | VT_UI1) || V_ARRAY(PostData)->cDims != 1) { WARN("Invalid PostData\n");
@@ -686,7 +686,7 @@ post_data_len = V_ARRAY(PostData)->rgsabound[0].cElements; }
- if(Headers && V_VT(Headers) != VT_EMPTY) {
- if(Headers && V_VT(Headers) != VT_EMPTY && V_VT(Headers) != VT_ERROR) { if(V_VT(Headers) != VT_BSTR) return E_INVALIDARG;
Ignoring VT_ERROR just masks a previous error.
Hm.. are you sure? These are input arguments, not results. This isn't the only app that gets further with this patch. See also bug 6166.
I guess a test case is the only answer.
--Juan
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Hi,
Juan Lang wrote:
Ignoring VT_ERROR just masks a previous error.
Hm.. are you sure? These are input arguments, not results. This isn't the only app that gets further with this patch. See also bug 6166.
I guess a test case is the only answer.
I've tested it and we really shouldn't return E_INVALIDARG in this case so your patch is good.
Thanks, Jacek
Juan Lang wrote:
Ignoring VT_ERROR just masks a previous error.
Hm.. are you sure? These are input arguments, not results. This isn't
You can never be sure with this OLE stuff. My only experience with VT_ERROR stems from variant arithmetics and those functions didn't like VT_ERROR as input. Well except VarCmp when both input variants where VT_ERROR it would return "equal".
the only app that gets further with this patch. See also bug 6166.
I guess a test case is the only answer.
Definitely.
bye michael