Misha Koshelev : urlmon/tests: Make http protocol mime type test pass on native.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jul 9 10:24:57 CDT 2007


Module: wine
Branch: master
Commit: 64054b005c21edcd1cd739e5578807cb97bef902
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=64054b005c21edcd1cd739e5578807cb97bef902

Author: Misha Koshelev <mk144210 at bcm.edu>
Date:   Sun Jul  8 16:52:10 2007 -0500

urlmon/tests: Make http protocol mime type test pass on native.

---

 dlls/urlmon/tests/protocol.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/urlmon/tests/protocol.c b/dlls/urlmon/tests/protocol.c
index 5a40355..2f46b5d 100644
--- a/dlls/urlmon/tests/protocol.c
+++ b/dlls/urlmon/tests/protocol.c
@@ -270,7 +270,9 @@ static HRESULT WINAPI ProtocolSink_ReportProgress(IInternetProtocolSink *iface,
             if(tested_protocol == BIND_TEST)
                 ok(szStatusText == expect_wsz, "unexpected szStatusText\n");
             else
-                ok(!lstrcmpW(szStatusText, text_html), "szStatusText != text/html\n");
+                ok(lstrlenW(text_html) <= lstrlenW(szStatusText) &&
+                   !memcmp(szStatusText, text_html, lstrlenW(text_html)*sizeof(WCHAR)),
+                   "szStatusText != text/html\n");
         }
         break;
     case BINDSTATUS_DIRECTBIND:




More information about the wine-cvs mailing list