Hans Leidekker : winhttp: Forward WinHttpCrackUrl and WinHttpCreateUrl to wininet for the time being .

Alexandre Julliard julliard at winehq.org
Tue Aug 19 08:46:59 CDT 2008


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

Author: Hans Leidekker <hans at meelstraat.net>
Date:   Fri Aug 15 14:43:47 2008 +0200

winhttp: Forward WinHttpCrackUrl and WinHttpCreateUrl to wininet for the time being.

---

 dlls/winhttp/Makefile.in  |    2 +-
 dlls/winhttp/main.c       |   21 +++++++++++++++++++++
 dlls/winhttp/winhttp.spec |    4 ++--
 3 files changed, 24 insertions(+), 3 deletions(-)

diff --git a/dlls/winhttp/Makefile.in b/dlls/winhttp/Makefile.in
index c83e630..c65adbd 100644
--- a/dlls/winhttp/Makefile.in
+++ b/dlls/winhttp/Makefile.in
@@ -4,7 +4,7 @@ SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 MODULE    = winhttp.dll
 IMPORTLIB = winhttp
-IMPORTS   = kernel32
+IMPORTS   = wininet kernel32
 
 C_SRCS = \
 	handle.c \
diff --git a/dlls/winhttp/main.c b/dlls/winhttp/main.c
index bec3cc0..6aa59df 100644
--- a/dlls/winhttp/main.c
+++ b/dlls/winhttp/main.c
@@ -209,3 +209,24 @@ BOOL WINAPI WinHttpAddRequestHeaders (HINTERNET hRequest, LPCWSTR pwszHeaders,
     SetLastError(ERROR_NOT_SUPPORTED);
     return FALSE;
 }
+
+BOOL WINAPI InternetCrackUrlW( LPCWSTR, DWORD, DWORD, LPURL_COMPONENTSW );
+BOOL WINAPI InternetCreateUrlW( LPURL_COMPONENTS, DWORD, LPWSTR, LPDWORD );
+
+/***********************************************************************
+ *          WinHttpCrackUrl (winhttp.@)
+ */
+BOOL WINAPI WinHttpCrackUrl( LPCWSTR url, DWORD len, DWORD flags, LPURL_COMPONENTSW components )
+{
+    TRACE("%s, %d, %x, %p\n", debugstr_w(url), len, flags, components);
+    return InternetCrackUrlW( url, len, flags, components );
+}
+
+/***********************************************************************
+ *          WinHttpCreateUrl (winhttp.@)
+ */
+BOOL WINAPI WinHttpCreateUrl( LPURL_COMPONENTS comps, DWORD flags, LPWSTR url, LPDWORD len )
+{
+    TRACE("%p, 0x%08x, %p, %p\n", comps, flags, url, len);
+    return InternetCreateUrlW( comps, flags, url, len );
+}
diff --git a/dlls/winhttp/winhttp.spec b/dlls/winhttp/winhttp.spec
index e86fe60..08e4d93 100644
--- a/dlls/winhttp/winhttp.spec
+++ b/dlls/winhttp/winhttp.spec
@@ -6,8 +6,8 @@
 @ stdcall WinHttpCheckPlatform()
 @ stdcall WinHttpCloseHandle(ptr)
 @ stdcall WinHttpConnect(ptr wstr long long)
-@ stub WinHttpCrackUrl
-@ stub WinHttpCreateUrl
+@ stdcall WinHttpCrackUrl(wstr long long ptr)
+@ stdcall WinHttpCreateUrl(ptr long ptr ptr)
 @ stdcall WinHttpDetectAutoProxyConfigUrl(long ptr)
 @ stdcall WinHttpGetDefaultProxyConfiguration(ptr)
 @ stdcall WinHttpGetIEProxyConfigForCurrentUser(ptr)




More information about the wine-cvs mailing list