[PATCH v2 2/2] urlmon/tests: Add FTP encoded url test
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Sat Mar 23 04:34:20 CDT 2019
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
dlls/urlmon/tests/Makefile.in | 2 +-
dlls/urlmon/tests/url.c | 10 +++++++++-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/dlls/urlmon/tests/Makefile.in b/dlls/urlmon/tests/Makefile.in
index 2eef12919a..48afdc9f9b 100644
--- a/dlls/urlmon/tests/Makefile.in
+++ b/dlls/urlmon/tests/Makefile.in
@@ -1,5 +1,5 @@
TESTDLL = urlmon.dll
-IMPORTS = urlmon wininet ole32 oleaut32 user32 advapi32
+IMPORTS = urlmon wininet ole32 oleaut32 user32 advapi32 shlwapi
C_SRCS = \
generated.c \
diff --git a/dlls/urlmon/tests/url.c b/dlls/urlmon/tests/url.c
index ada78c930b..0f2b14edc4 100644
--- a/dlls/urlmon/tests/url.c
+++ b/dlls/urlmon/tests/url.c
@@ -32,6 +32,7 @@
#include "urlmon.h"
#include "wininet.h"
#include "mshtml.h"
+#include "shlwapi.h"
#include "wine/test.h"
@@ -2905,7 +2906,7 @@ static void init_bind_test(int protocol, DWORD flags, DWORD t)
url_a = (flags & BINDTEST_INVALID_CN) ? "https://4.15.184.77/favicon.ico" : "https://test.winehq.org/tests/hello.html";
break;
case FTP_TEST:
- url_a = "ftp://ftp.winehq.org/welcome.msg";
+ url_a = "ftp://ftp.winehq.org/welcome%2emsg";
break;
default:
url_a = "winetest:test";
@@ -2969,6 +2970,13 @@ static void test_BindToStorage(int protocol, DWORD flags, DWORD t)
if(FAILED(hres))
return;
+ if(protocol == FTP_TEST)
+ {
+ /* FTP url dont have any escape characters, so convert the url to what is expected */
+ DWORD size = 0;
+ UrlUnescapeW(current_url, NULL, &size, URL_UNESCAPE_INPLACE);
+ }
+
hres = IMoniker_QueryInterface(mon, &IID_IBinding, (void**)&bind);
ok(hres == E_NOINTERFACE, "IMoniker should not have IBinding interface\n");
if(SUCCEEDED(hres))
--
2.20.1
More information about the wine-devel
mailing list