[PATCH] urlmon/tests: Handle BSCF_SKIPDRAINDATAFORFILEURLS to fix failures on IE8

Detlef Riekenberg wine.dev at web.de
Sun May 3 05:51:00 CDT 2009


---
 dlls/urlmon/tests/protocol.c |    4 +++-
 include/urlmon.idl           |    4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/dlls/urlmon/tests/protocol.c b/dlls/urlmon/tests/protocol.c
index e136d4b..a973211 100644
--- a/dlls/urlmon/tests/protocol.c
+++ b/dlls/urlmon/tests/protocol.c
@@ -599,7 +599,9 @@ static HRESULT WINAPI ProtocolSink_ReportData(IInternetProtocolSink *iface, DWOR
         ok(ulProgress == ulProgressMax, "ulProgress (%d) != ulProgressMax (%d)\n",
            ulProgress, ulProgressMax);
         ok(ulProgressMax == 13, "ulProgressMax=%d, expected 13\n", ulProgressMax);
-        ok(grfBSCF == (BSCF_FIRSTDATANOTIFICATION | BSCF_LASTDATANOTIFICATION),
+        /* BSCF_SKIPDRAINDATAFORFILEURLS added in IE8 */
+        ok((grfBSCF == (BSCF_FIRSTDATANOTIFICATION | BSCF_LASTDATANOTIFICATION)) ||
+           (grfBSCF == (BSCF_FIRSTDATANOTIFICATION | BSCF_LASTDATANOTIFICATION | BSCF_SKIPDRAINDATAFORFILEURLS)),
                 "grcfBSCF = %08x\n", grfBSCF);
     }else if(!binding_test && (tested_protocol == HTTP_TEST || tested_protocol == HTTPS_TEST || tested_protocol == FTP_TEST)) {
         if(!(grfBSCF & BSCF_LASTDATANOTIFICATION) || (grfBSCF & BSCF_DATAFULLYAVAILABLE))
diff --git a/include/urlmon.idl b/include/urlmon.idl
index 93bdd0f..20bf28e 100644
--- a/include/urlmon.idl
+++ b/include/urlmon.idl
@@ -198,7 +198,9 @@ interface IBindStatusCallback : IUnknown
         BSCF_INTERMEDIATEDATANOTIFICATION = 0x02,
         BSCF_LASTDATANOTIFICATION = 0x04,
         BSCF_DATAFULLYAVAILABLE = 0x08,
-        BSCF_AVAILABLEDATASIZEUNKNOWN = 0x10
+        BSCF_AVAILABLEDATASIZEUNKNOWN = 0x10,
+        BSCF_SKIPDRAINDATAFORFILEURLS = 0x20,
+        BSCF_64BITLENGTHDOWNLOAD = 0x40
     } BSCF;
 
     typedef enum BINDSTATUS
-- 
1.5.4.3


--=-IfUJP8ZJWg7A10i3uECV--




More information about the wine-patches mailing list