winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
July 2007
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
3 participants
957 discussions
Start a n
N
ew thread
Misha Koshelev : urlmon: Add support for non-GET requests (e.g., POST) in HttpProtocol.
by Alexandre Julliard
23 Jul '07
23 Jul '07
Module: wine Branch: master Commit: a58da4c49a9b751832d207c1877e0d5eb7f5ef54 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a58da4c49a9b751832d207c18…
Author: Misha Koshelev <mk144210(a)bcm.edu> Date: Fri Jul 20 19:56:12 2007 -0500 urlmon: Add support for non-GET requests (e.g., POST) in HttpProtocol. --- dlls/urlmon/http.c | 43 ++++++++++++++++++++++++++++++++++++----- dlls/urlmon/tests/protocol.c | 4 +- 2 files changed, 39 insertions(+), 8 deletions(-) diff --git a/dlls/urlmon/http.c b/dlls/urlmon/http.c index d072159..2afe267 100644 --- a/dlls/urlmon/http.c +++ b/dlls/urlmon/http.c @@ -20,7 +20,6 @@ /* * TODO: * - Handle redirects as native. - * - Add support for non-GET requests (e.g., POST). */ #include <stdarg.h> @@ -290,8 +289,8 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl ULONG num = 0; IServiceProvider *service_provider = 0; IHttpNegotiate2 *http_negotiate2 = 0; - LPWSTR host = 0, path = 0, user = 0, pass = 0, - addl_header = 0, full_header = 0; + LPWSTR host = 0, path = 0, user = 0, pass = 0, addl_header = 0, + full_header = 0, post_cookie = 0, optional = 0; BYTE security_id[512]; LPOLESTR user_agent, accept_mimes[257]; HRESULT hres; @@ -299,6 +298,10 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl static const WCHAR wszHttp[] = {'h','t','t','p',':'}; static const WCHAR wszHeaders[] = {'A','c','c','e','p','t','-','E','n','c','o','d','i','n','g', ':',' ','g','z','i','p',',',' ','d','e','f','l','a','t','e',0}; + static const WCHAR wszBindVerb[BINDVERB_CUSTOM][5] = + {{'G','E','T',0}, + {'P','O','S','T',0}, + {'P','U','T',0}}; TRACE("(%p)->(%s %p %p %08x %d)\n", This, debugstr_w(szUrl), pOIProtSink, pOIBindInfo, grfPI, dwReserved); @@ -404,8 +407,10 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl if (This->grfBINDF & BINDF_NOWRITECACHE) request_flags |= INTERNET_FLAG_NO_CACHE_WRITE; - This->request = HttpOpenRequestW(This->connect, NULL, path, NULL, NULL, - (LPCWSTR *)accept_mimes, request_flags, (DWORD)This); + This->request = HttpOpenRequestW(This->connect, bindinfo.dwBindVerb < BINDVERB_CUSTOM ? + wszBindVerb[bindinfo.dwBindVerb] : bindinfo.szCustomVerb, + path, NULL, NULL, (LPCWSTR *)accept_mimes, + request_flags, (DWORD)This); if (!This->request) { WARN("HttpOpenRequest failed: %d\n", GetLastError()); @@ -474,7 +479,32 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl /* FIXME: Handle security_id. Native calls undocumented function IsHostInProxyBypassList. */ - if (!HttpSendRequestW(This->request, full_header, lstrlenW(full_header), NULL, 0) && + if (bindinfo.dwBindVerb == BINDVERB_POST) + { + num = 0; + hres = IInternetBindInfo_GetBindString(pOIBindInfo, BINDSTRING_POST_COOKIE, &post_cookie, + 1, &num); + if (hres == S_OK && num && + !InternetSetOptionW(This->request, INTERNET_OPTION_SECONDARY_CACHE_KEY, + post_cookie, lstrlenW(post_cookie))) + { + WARN("InternetSetOption INTERNET_OPTION_SECONDARY_CACHE_KEY failed: %d\n", + GetLastError()); + } + } + + if (bindinfo.dwBindVerb != BINDVERB_GET) + { + /* Native does not use GlobalLock/GlobalUnlock, so we won't either */ + if (bindinfo.stgmedData.tymed != TYMED_HGLOBAL) + WARN("Expected bindinfo.stgmedData.tymed to be TYMED_HGLOBAL, not %d\n", + bindinfo.stgmedData.tymed); + else + optional = (LPWSTR)bindinfo.stgmedData.hGlobal; + } + if (!HttpSendRequestW(This->request, full_header, lstrlenW(full_header), + optional, + optional ? bindinfo.cbstgmedData : 0) && GetLastError() != ERROR_IO_PENDING) { WARN("HttpSendRequest failed: %d\n", GetLastError()); @@ -490,6 +520,7 @@ done: HTTPPROTOCOL_Close(This); } + CoTaskMemFree(post_cookie); if (full_header != wszHeaders) HeapFree(GetProcessHeap(), 0, full_header); CoTaskMemFree(addl_header); diff --git a/dlls/urlmon/tests/protocol.c b/dlls/urlmon/tests/protocol.c index 5e5a4a8..ebc06bf 100644 --- a/dlls/urlmon/tests/protocol.c +++ b/dlls/urlmon/tests/protocol.c @@ -402,7 +402,7 @@ static HRESULT WINAPI ProtocolSink_ReportData(IInternetProtocolSink *iface, DWOR }else if(tested_protocol == HTTP_TEST) { if(!(grfBSCF & BSCF_LASTDATANOTIFICATION)) CHECK_EXPECT(ReportData); - else if (http_post_test) todo_wine + else if (http_post_test) ok(ulProgress == 13, "Read %u bytes instead of 13\n", ulProgress); ok(ulProgress, "ulProgress == 0\n"); @@ -1174,7 +1174,7 @@ static BOOL http_protocol_start(LPCWSTR url, BOOL is_first) CHECK_CALLED(BeginningTransaction); /* GetRootSecurityId called on WinXP but not on Win98 */ CLEAR_CALLED(GetRootSecurityId); - if (http_post_test) todo_wine + if (http_post_test) CHECK_CALLED(GetBindString_POST_COOKIE); return TRUE;
1
0
0
0
Misha Koshelev : urlmon: Actually send the additional headers returned by IHttpNegotiate:: BeginningTransaction.
by Alexandre Julliard
23 Jul '07
23 Jul '07
Module: wine Branch: master Commit: 609d91fb0ca73807768705e4add3781e3e00861e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=609d91fb0ca73807768705e4a…
Author: Misha Koshelev <mk144210(a)bcm.edu> Date: Fri Jul 20 19:56:05 2007 -0500 urlmon: Actually send the additional headers returned by IHttpNegotiate::BeginningTransaction. --- dlls/urlmon/http.c | 24 ++++++++++++++++++++++-- 1 files changed, 22 insertions(+), 2 deletions(-) diff --git a/dlls/urlmon/http.c b/dlls/urlmon/http.c index 33d23b0..d072159 100644 --- a/dlls/urlmon/http.c +++ b/dlls/urlmon/http.c @@ -290,7 +290,8 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl ULONG num = 0; IServiceProvider *service_provider = 0; IHttpNegotiate2 *http_negotiate2 = 0; - LPWSTR host = 0, path = 0, user = 0, pass = 0, addl_header = 0; + LPWSTR host = 0, path = 0, user = 0, pass = 0, + addl_header = 0, full_header = 0; BYTE security_id[512]; LPOLESTR user_agent, accept_mimes[257]; HRESULT hres; @@ -435,6 +436,23 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl WARN("IHttpNegotiate_BeginningTransaction failed: %08x\n", hres); goto done; } + else if (addl_header == NULL) + { + full_header = (LPWSTR)wszHeaders; + } + else + { + full_header = HeapAlloc(GetProcessHeap(), 0, + (lstrlenW(addl_header)+sizeof(wszHeaders))*sizeof(WCHAR)); + if (!full_header) + { + WARN("Out of memory\n"); + hres = E_OUTOFMEMORY; + goto done; + } + lstrcpyW(full_header, addl_header); + lstrcpyW(&full_header[lstrlenW(addl_header)], wszHeaders); + } hres = IServiceProvider_QueryService(service_provider, &IID_IHttpNegotiate2, &IID_IHttpNegotiate2, (void **)&http_negotiate2); @@ -456,7 +474,7 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl /* FIXME: Handle security_id. Native calls undocumented function IsHostInProxyBypassList. */ - if (!HttpSendRequestW(This->request, wszHeaders, lstrlenW(wszHeaders), NULL, 0) && + if (!HttpSendRequestW(This->request, full_header, lstrlenW(full_header), NULL, 0) && GetLastError() != ERROR_IO_PENDING) { WARN("HttpSendRequest failed: %d\n", GetLastError()); @@ -472,6 +490,8 @@ done: HTTPPROTOCOL_Close(This); } + if (full_header != wszHeaders) + HeapFree(GetProcessHeap(), 0, full_header); CoTaskMemFree(addl_header); if (http_negotiate2) IHttpNegotiate2_Release(http_negotiate2);
1
0
0
0
Misha Koshelev : urlmon: Call HttpOpenRequest with INTERNET_FLAG_KEEP_CONNECTION, INTERNET_FLAG_NO_CACHE_WRITE if appropriate.
by Alexandre Julliard
23 Jul '07
23 Jul '07
Module: wine Branch: master Commit: 2a4e41878d0ba56dcf5353a24d12eb9cb048b47a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2a4e41878d0ba56dcf5353a24…
Author: Misha Koshelev <mk144210(a)bcm.edu> Date: Fri Jul 20 19:55:55 2007 -0500 urlmon: Call HttpOpenRequest with INTERNET_FLAG_KEEP_CONNECTION, INTERNET_FLAG_NO_CACHE_WRITE if appropriate. --- dlls/urlmon/http.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/urlmon/http.c b/dlls/urlmon/http.c index 6a8e603..33d23b0 100644 --- a/dlls/urlmon/http.c +++ b/dlls/urlmon/http.c @@ -286,7 +286,7 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl HttpProtocol *This = PROTOCOL_THIS(iface); URL_COMPONENTSW url; BINDINFO bindinfo; - DWORD len = 0; + DWORD len = 0, request_flags = INTERNET_FLAG_KEEP_CONNECTION; ULONG num = 0; IServiceProvider *service_provider = 0; IHttpNegotiate2 *http_negotiate2 = 0; @@ -401,8 +401,10 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl } accept_mimes[num] = 0; + if (This->grfBINDF & BINDF_NOWRITECACHE) + request_flags |= INTERNET_FLAG_NO_CACHE_WRITE; This->request = HttpOpenRequestW(This->connect, NULL, path, NULL, NULL, - (LPCWSTR *)accept_mimes, 0, (DWORD)This); + (LPCWSTR *)accept_mimes, request_flags, (DWORD)This); if (!This->request) { WARN("HttpOpenRequest failed: %d\n", GetLastError());
1
0
0
0
Misha Koshelev : urlmon/tests: Add test for BINDVERB_POST in http_protocol.
by Alexandre Julliard
23 Jul '07
23 Jul '07
Module: wine Branch: master Commit: e9312fbc92ca61e7704bfeaceac33769645b5025 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e9312fbc92ca61e7704bfeace…
Author: Misha Koshelev <mk144210(a)bcm.edu> Date: Fri Jul 20 19:55:32 2007 -0500 urlmon/tests: Add test for BINDVERB_POST in http_protocol. --- dlls/urlmon/tests/protocol.c | 87 ++++++++++++++++++++++++++++++++++++++++- 1 files changed, 84 insertions(+), 3 deletions(-) diff --git a/dlls/urlmon/tests/protocol.c b/dlls/urlmon/tests/protocol.c index 08476d0..5e5a4a8 100644 --- a/dlls/urlmon/tests/protocol.c +++ b/dlls/urlmon/tests/protocol.c @@ -77,6 +77,7 @@ DEFINE_EXPECT(ReportData); DEFINE_EXPECT(ReportResult); DEFINE_EXPECT(GetBindString_ACCEPT_MIMES); DEFINE_EXPECT(GetBindString_USER_AGENT); +DEFINE_EXPECT(GetBindString_POST_COOKIE); DEFINE_EXPECT(QueryService_HttpNegotiate); DEFINE_EXPECT(QueryService_InternetProtocol); DEFINE_EXPECT(BeginningTransaction); @@ -96,7 +97,8 @@ static const WCHAR index_url[] = static HRESULT expect_hrResult; static LPCWSTR file_name, http_url, expect_wsz; static IInternetProtocol *http_protocol = NULL; -static BOOL first_data_notif = FALSE, http_is_first = FALSE; +static BOOL first_data_notif = FALSE, http_is_first = FALSE, + http_post_test = FALSE; static HWND protocol_hwnd; static int state = 0; static DWORD bindf = 0; @@ -136,13 +138,33 @@ static ULONG WINAPI HttpNegotiate_Release(IHttpNegotiate2 *iface) static HRESULT WINAPI HttpNegotiate_BeginningTransaction(IHttpNegotiate2 *iface, LPCWSTR szURL, LPCWSTR szHeaders, DWORD dwReserved, LPWSTR *pszAdditionalHeaders) { + LPWSTR addl_headers; + + static const WCHAR wszHeaders[] = + {'C','o','n','t','e','n','t','-','T','y','p','e',':',' ','a','p','p','l','i','c','a','t', + 'i','o','n','/','x','-','w','w','w','-','f','o','r','m','-','u','r','l','e','n','c','o', + 'd','e','d','\r','\n',0}; + CHECK_EXPECT(BeginningTransaction); ok(!lstrcmpW(szURL, http_url), "szURL != http_url\n"); ok(!dwReserved, "dwReserved=%d, expected 0\n", dwReserved); ok(pszAdditionalHeaders != NULL, "pszAdditionalHeaders == NULL\n"); if(pszAdditionalHeaders) + { ok(*pszAdditionalHeaders == NULL, "*pszAdditionalHeaders != NULL\n"); + if (http_post_test) + { + addl_headers = CoTaskMemAlloc(sizeof(wszHeaders)); + if (!addl_headers) + { + skip("Out of memory\n"); + return E_OUTOFMEMORY; + } + lstrcpyW(addl_headers, wszHeaders); + *pszAdditionalHeaders = addl_headers; + } + } return S_OK; } @@ -266,10 +288,16 @@ static HRESULT WINAPI ProtocolSink_ReportProgress(IInternetProtocolSink *iface, static const WCHAR null_guid[] = {'{','0','0','0','0','0','0','0','0','-','0','0','0','0','-', '0','0','0','0','-','0','0','0','0','-','0','0','0','0','0','0','0','0','0','0','0','0','}',0}; static const WCHAR text_html[] = {'t','e','x','t','/','h','t','m','l',0}; + static const WCHAR text_plain[] = {'t','e','x','t','/','p','l','a','i','n',0}; static const WCHAR host[] = {'w','w','w','.','w','i','n','e','h','q','.','o','r','g',0}; + static const WCHAR post_host[] = + {'c','r','o','s','s','o','v','e','r','.','c','o','d','e', + 'w','e','a','v','e','r','s','.','c','o','m',0}; static const WCHAR wszWineHQIP[] = {'2','0','9','.','4','6','.','2','5','.','1','3','4',0}; + static const WCHAR wszCrossoverIP[] = + {'2','0','9','.','4','6','.','2','5','.','1','3','2',0}; /* I'm not sure if it's a good idea to hardcode here the IP address... */ switch(ulStatusCode) { @@ -279,6 +307,10 @@ static HRESULT WINAPI ProtocolSink_ReportProgress(IInternetProtocolSink *iface, if(szStatusText) { if(tested_protocol == BIND_TEST) ok(szStatusText == expect_wsz, "unexpected szStatusText\n"); + else if (http_post_test) + ok(lstrlenW(text_plain) <= lstrlenW(szStatusText) && + !memcmp(szStatusText, text_plain, lstrlenW(text_plain)*sizeof(WCHAR)), + "szStatusText != text/plain\n"); else ok(lstrlenW(text_html) <= lstrlenW(szStatusText) && !memcmp(szStatusText, text_html, lstrlenW(text_html)*sizeof(WCHAR)), @@ -311,13 +343,22 @@ static HRESULT WINAPI ProtocolSink_ReportProgress(IInternetProtocolSink *iface, CHECK_EXPECT(ReportProgress_FINDINGRESOURCE); ok(szStatusText != NULL, "szStatusText == NULL\n"); if(szStatusText) - ok(!lstrcmpW(szStatusText, host), "szStatustext != \"
www.winehq.org\
"\n"); + { + if (!http_post_test) + ok(!lstrcmpW(szStatusText, host), + "szStatustext != \"
www.winehq.org\
"\n"); + else + ok(!lstrcmpW(szStatusText, post_host), + "szStatustext != \"crossover.codeweavers.com\"\n"); + } break; case BINDSTATUS_CONNECTING: CHECK_EXPECT(ReportProgress_CONNECTING); ok(szStatusText != NULL, "szStatusText == NULL\n"); if(szStatusText) - ok(!lstrcmpW(szStatusText, wszWineHQIP), "Unexpected szStatusText\n"); + ok(!lstrcmpW(szStatusText, http_post_test ? + wszCrossoverIP : wszWineHQIP), + "Unexpected szStatusText\n"); break; case BINDSTATUS_SENDINGREQUEST: CHECK_EXPECT(ReportProgress_SENDINGREQUEST); @@ -361,6 +402,8 @@ static HRESULT WINAPI ProtocolSink_ReportData(IInternetProtocolSink *iface, DWOR }else if(tested_protocol == HTTP_TEST) { if(!(grfBSCF & BSCF_LASTDATANOTIFICATION)) CHECK_EXPECT(ReportData); + else if (http_post_test) todo_wine + ok(ulProgress == 13, "Read %u bytes instead of 13\n", ulProgress); ok(ulProgress, "ulProgress == 0\n"); @@ -446,6 +489,8 @@ static HRESULT WINAPI BindInfo_GetBindInfo(IInternetBindInfo *iface, DWORD *grfB { DWORD cbSize; + static const CHAR szPostData[] = "mode=Test"; + CHECK_EXPECT(GetBindInfo); ok(grfBINDF != NULL, "grfBINDF == NULL\n"); @@ -457,6 +502,22 @@ static HRESULT WINAPI BindInfo_GetBindInfo(IInternetBindInfo *iface, DWORD *grfB memset(pbindinfo, 0, cbSize); pbindinfo->cbSize = cbSize; + if (http_post_test) + { + pbindinfo->dwBindVerb = BINDVERB_POST; + pbindinfo->stgmedData.tymed = TYMED_HGLOBAL; + /* Must be GMEM_FIXED, GMEM_MOVABLE does not work properly + * with urlmon on native (Win98 and WinXP) */ + pbindinfo->stgmedData.hGlobal = GlobalAlloc(GPTR, sizeof(szPostData)); + if (!pbindinfo->stgmedData.hGlobal) + { + skip("Out of memory\n"); + return E_OUTOFMEMORY; + } + lstrcpy((LPSTR)pbindinfo->stgmedData.hGlobal, szPostData); + pbindinfo->cbstgmedData = sizeof(szPostData)-1; + } + return S_OK; } @@ -494,6 +555,12 @@ static HRESULT WINAPI BindInfo_GetBindString(IInternetBindInfo *iface, ULONG ulS memcpy(*ppwzStr, user_agent, sizeof(user_agent)); } return S_OK; + case BINDSTRING_POST_COOKIE: + CHECK_EXPECT(GetBindString_POST_COOKIE); + ok(cEl == 1, "cEl=%d, expected 1\n", cEl); + if(pcElFetched) + ok(*pcElFetched == 0, "*pcElFetch=%d, expectd 0\n", *pcElFetched); + return S_OK; default: ok(0, "unexpected call\n"); } @@ -1081,6 +1148,8 @@ static BOOL http_protocol_start(LPCWSTR url, BOOL is_first) SET_EXPECT(QueryService_HttpNegotiate); SET_EXPECT(BeginningTransaction); SET_EXPECT(GetRootSecurityId); + if (http_post_test) + SET_EXPECT(GetBindString_POST_COOKIE); hres = IInternetProtocol_Start(http_protocol, url, &protocol_sink, &bind_info, 0, 0); ok(hres == S_OK, "Start failed: %08x\n", hres); @@ -1105,6 +1174,8 @@ static BOOL http_protocol_start(LPCWSTR url, BOOL is_first) CHECK_CALLED(BeginningTransaction); /* GetRootSecurityId called on WinXP but not on Win98 */ CLEAR_CALLED(GetRootSecurityId); + if (http_post_test) todo_wine + CHECK_CALLED(GetBindString_POST_COOKIE); return TRUE; } @@ -1191,6 +1262,10 @@ static void test_http_protocol(void) static const WCHAR winehq_url[] = {'h','t','t','p',':','/','/','w','w','w','.','w','i','n','e','h','q','.', 'o','r','g','/','s','i','t','e','/','a','b','o','u','t',0}; + static const WCHAR posttest_url[] = + {'h','t','t','p',':','/','/','c','r','o','s','s','o','v','e','r','.', + 'c','o','d','e','w','e','a','v','e','r','s','.','c','o','m','/', + 'p','o','s','t','t','e','s','t','.','p','h','p',0}; tested_protocol = HTTP_TEST; bindf = BINDF_ASYNCHRONOUS | BINDF_ASYNCSTORAGE | BINDF_PULLDATA; @@ -1198,6 +1273,12 @@ static void test_http_protocol(void) bindf = BINDF_ASYNCHRONOUS | BINDF_ASYNCSTORAGE | BINDF_PULLDATA | BINDF_FROMURLMON; test_http_protocol_url(winehq_url, FALSE); + http_post_test = TRUE; + /* Without this flag we get a ReportProgress_CACHEFILENAMEAVAILABLE + * notification with BINDVERB_POST */ + bindf |= BINDF_NOWRITECACHE; + test_http_protocol_url(posttest_url, TRUE); + http_post_test = FALSE; } static LRESULT WINAPI wnd_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
1
0
0
0
James Hawkins : msi: Ref count temporary columns and release them when necessary.
by Alexandre Julliard
23 Jul '07
23 Jul '07
Module: wine Branch: master Commit: ccef56f2cc6c253eb43fd4e8821456c959f2e908 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ccef56f2cc6c253eb43fd4e88…
Author: James Hawkins <truiken(a)gmail.com> Date: Fri Jul 20 18:41:16 2007 -0700 msi: Ref count temporary columns and release them when necessary. --- dlls/msi/alter.c | 8 +++-- dlls/msi/create.c | 1 + dlls/msi/delete.c | 1 + dlls/msi/distinct.c | 1 + dlls/msi/insert.c | 1 + dlls/msi/join.c | 1 + dlls/msi/msipriv.h | 8 ++++- dlls/msi/order.c | 1 + dlls/msi/select.c | 1 + dlls/msi/sql.y | 14 +++++++-- dlls/msi/streams.c | 1 + dlls/msi/table.c | 81 +++++++++++++++++++++++++++++++++++++++++++++++++- dlls/msi/tests/db.c | 35 ++++----------------- dlls/msi/update.c | 1 + dlls/msi/where.c | 1 + 15 files changed, 119 insertions(+), 37 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=ccef56f2cc6c253eb43fd…
1
0
0
0
James Hawkins : msi: Implement adding columns using the ALTER command.
by Alexandre Julliard
23 Jul '07
23 Jul '07
Module: wine Branch: master Commit: 0fd733bf9096d51ef78cba7daafa8a1905bc3ee0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0fd733bf9096d51ef78cba7da…
Author: James Hawkins <truiken(a)gmail.com> Date: Fri Jul 20 14:01:13 2007 -0700 msi: Implement adding columns using the ALTER command. --- dlls/msi/alter.c | 82 +++++++++++++++++++++++++++++++++++++++++++++- dlls/msi/create.c | 1 + dlls/msi/delete.c | 1 + dlls/msi/distinct.c | 1 + dlls/msi/insert.c | 1 + dlls/msi/join.c | 1 + dlls/msi/msipriv.h | 5 +++ dlls/msi/order.c | 1 + dlls/msi/query.h | 2 +- dlls/msi/select.c | 1 + dlls/msi/sql.y | 14 +++++++- dlls/msi/streams.c | 1 + dlls/msi/table.c | 71 +++++++++++++++++++++++++++------------ dlls/msi/tests/db.c | 35 +++++++------------ dlls/msi/tests/package.c | 2 +- dlls/msi/tokenize.c | 2 + dlls/msi/update.c | 1 + dlls/msi/where.c | 1 + 18 files changed, 174 insertions(+), 49 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=0fd733bf9096d51ef78cb…
1
0
0
0
Juan Lang : crypt32: Move decoding hash messages to a helper function.
by Alexandre Julliard
23 Jul '07
23 Jul '07
Module: wine Branch: master Commit: 52cc727348a218ab42c35e3149b68532793ad02a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=52cc727348a218ab42c35e314…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Fri Jul 20 14:43:12 2007 -0700 crypt32: Move decoding hash messages to a helper function. --- dlls/crypt32/msg.c | 68 ++++++++++++++++++++++++++++----------------------- 1 files changed, 37 insertions(+), 31 deletions(-) diff --git a/dlls/crypt32/msg.c b/dlls/crypt32/msg.c index c3d7b96..67a4024 100644 --- a/dlls/crypt32/msg.c +++ b/dlls/crypt32/msg.c @@ -693,6 +693,41 @@ static inline void CRYPT_FixUpAlgorithmID(CRYPT_ALGORITHM_IDENTIFIER *id) id->Parameters.pbData = (BYTE *)id->pszObjId + strlen(id->pszObjId) + 1; } +static BOOL CDecodeMsg_DecodeHashedContent(CDecodeMsg *msg, + CRYPT_DER_BLOB *blob) +{ + BOOL ret; + CRYPT_DIGESTED_DATA *digestedData; + DWORD size; + + ret = CRYPT_AsnDecodePKCSDigestedData(blob->pbData, blob->cbData, + CRYPT_DECODE_ALLOC_FLAG, NULL, (CRYPT_DIGESTED_DATA *)&digestedData, + &size); + if (ret) + { + msg->type = CMSG_HASHED; + ContextPropertyList_SetProperty(msg->properties, CMSG_VERSION_PARAM, + (const BYTE *)&digestedData->version, sizeof(digestedData->version)); + CDecodeMsg_SaveAlgorithmID(msg, CMSG_HASH_ALGORITHM_PARAM, + &digestedData->DigestAlgorithm); + ContextPropertyList_SetProperty(msg->properties, + CMSG_INNER_CONTENT_TYPE_PARAM, + (const BYTE *)digestedData->ContentInfo.pszObjId, + digestedData->ContentInfo.pszObjId ? + strlen(digestedData->ContentInfo.pszObjId) + 1 : 0); + if (digestedData->ContentInfo.Content.cbData) + CDecodeMsg_DecodeDataContent(msg, + &digestedData->ContentInfo.Content); + else + ContextPropertyList_SetProperty(msg->properties, + CMSG_CONTENT_PARAM, NULL, 0); + ContextPropertyList_SetProperty(msg->properties, CMSG_HASH_DATA_PARAM, + digestedData->hash.pbData, digestedData->hash.cbData); + LocalFree(digestedData); + } + return ret; +} + /* Decodes the content in blob as the type given, and updates the value * (type, parameters, etc.) of msg based on what blob contains. * It doesn't just use msg's type, to allow a recursive call from an implicitly @@ -702,7 +737,6 @@ static BOOL CDecodeMsg_DecodeContent(CDecodeMsg *msg, CRYPT_DER_BLOB *blob, DWORD type) { BOOL ret; - DWORD size; switch (type) { @@ -711,38 +745,9 @@ static BOOL CDecodeMsg_DecodeContent(CDecodeMsg *msg, CRYPT_DER_BLOB *blob, msg->type = CMSG_DATA; break; case CMSG_HASHED: - { - CRYPT_DIGESTED_DATA *digestedData; - - ret = CRYPT_AsnDecodePKCSDigestedData(blob->pbData, blob->cbData, - CRYPT_DECODE_ALLOC_FLAG, NULL, (CRYPT_DIGESTED_DATA *)&digestedData, - &size); - if (ret) - { + if ((ret = CDecodeMsg_DecodeHashedContent(msg, blob))) msg->type = CMSG_HASHED; - ContextPropertyList_SetProperty(msg->properties, - CMSG_VERSION_PARAM, (const BYTE *)&digestedData->version, - sizeof(digestedData->version)); - CDecodeMsg_SaveAlgorithmID(msg, CMSG_HASH_ALGORITHM_PARAM, - &digestedData->DigestAlgorithm); - ContextPropertyList_SetProperty(msg->properties, - CMSG_INNER_CONTENT_TYPE_PARAM, - (const BYTE *)digestedData->ContentInfo.pszObjId, - digestedData->ContentInfo.pszObjId ? - strlen(digestedData->ContentInfo.pszObjId) + 1 : 0); - if (digestedData->ContentInfo.Content.cbData) - CDecodeMsg_DecodeDataContent(msg, - &digestedData->ContentInfo.Content); - else - ContextPropertyList_SetProperty(msg->properties, - CMSG_CONTENT_PARAM, NULL, 0); - ContextPropertyList_SetProperty(msg->properties, - CMSG_HASH_DATA_PARAM, digestedData->hash.pbData, - digestedData->hash.cbData); - LocalFree(digestedData); - } break; - } case CMSG_ENVELOPED: case CMSG_SIGNED: FIXME("unimplemented for type %s\n", MSG_TYPE_STR(type)); @@ -751,6 +756,7 @@ static BOOL CDecodeMsg_DecodeContent(CDecodeMsg *msg, CRYPT_DER_BLOB *blob, default: { CRYPT_CONTENT_INFO *info; + DWORD size; ret = CryptDecodeObjectEx(X509_ASN_ENCODING, PKCS_CONTENT_INFO, msg->msg_data.pbData, msg->msg_data.cbData, CRYPT_DECODE_ALLOC_FLAG,
1
0
0
0
Andrew Talbot : comcat: Cast-qual warning fix.
by Alexandre Julliard
23 Jul '07
23 Jul '07
Module: wine Branch: master Commit: 815c3ccbdc50dfc9c43e382d609e64982ea0c9cf URL:
http://source.winehq.org/git/wine.git/?a=commit;h=815c3ccbdc50dfc9c43e382d6…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Fri Jul 20 21:36:36 2007 +0100 comcat: Cast-qual warning fix. --- dlls/comcat/information.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/dlls/comcat/information.c b/dlls/comcat/information.c index 51032ac..cd5a9ea 100644 --- a/dlls/comcat/information.c +++ b/dlls/comcat/information.c @@ -39,7 +39,7 @@ static struct class_categories *COMCAT_PrepareClassCategories( static HRESULT COMCAT_IsClassOfCategories( HKEY key, struct class_categories const* class_categories); static LPENUMGUID COMCAT_CLSID_IEnumGUID_Construct( - struct class_categories const* class_categories); + struct class_categories *class_categories); static LPENUMGUID COMCAT_CATID_IEnumGUID_Construct( REFCLSID rclsid, LPCWSTR impl_req); @@ -608,7 +608,7 @@ typedef struct { const IEnumGUIDVtbl *lpVtbl; LONG ref; - const struct class_categories *categories; + struct class_categories *categories; HKEY key; DWORD next_index; } CLSID_IEnumGUIDImpl; @@ -775,8 +775,7 @@ static const IEnumGUIDVtbl COMCAT_CLSID_IEnumGUID_Vtbl = COMCAT_CLSID_IEnumGUID_Clone }; -static LPENUMGUID COMCAT_CLSID_IEnumGUID_Construct( - struct class_categories const* categories) +static LPENUMGUID COMCAT_CLSID_IEnumGUID_Construct(struct class_categories *categories) { CLSID_IEnumGUIDImpl *This;
1
0
0
0
Andrew Talbot : kernel32: Cast-qual warning fix.
by Alexandre Julliard
23 Jul '07
23 Jul '07
Module: wine Branch: master Commit: 6c0ccbc23a2b8a79571224a512b2895c84975699 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6c0ccbc23a2b8a79571224a51…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Fri Jul 20 21:36:39 2007 +0100 kernel32: Cast-qual warning fix. --- dlls/kernel32/resource.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/kernel32/resource.c b/dlls/kernel32/resource.c index 096a550..52a5f2e 100644 --- a/dlls/kernel32/resource.c +++ b/dlls/kernel32/resource.c @@ -968,7 +968,7 @@ static void *address_from_rva( void *base, DWORD mapping_size, DWORD rva, DWORD return NULL; if (rva + len <= (DWORD)sec->VirtualAddress + sec->SizeOfRawData) - return (void*)((const BYTE*) base + (sec->PointerToRawData + rva - sec->VirtualAddress)); + return (void*)((LPBYTE) base + (sec->PointerToRawData + rva - sec->VirtualAddress)); return NULL; }
1
0
0
0
Vitaliy Margolen : winex11drv: Correctly react to focus loss away from Wine .
by Alexandre Julliard
23 Jul '07
23 Jul '07
Module: wine Branch: master Commit: d836a5062141dd42293ed044debbaf25f914f383 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d836a5062141dd42293ed044d…
Author: Vitaliy Margolen <wine-patches(a)kievinfo.com> Date: Fri Jul 20 07:15:42 2007 -0600 winex11drv: Correctly react to focus loss away from Wine. --- dlls/winex11.drv/event.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c index aad09c6..1f9d2a9 100644 --- a/dlls/winex11.drv/event.c +++ b/dlls/winex11.drv/event.c @@ -570,8 +570,8 @@ static void EVENT_FocusOut( HWND hwnd, XEvent *xev ) case we don't have to change the foreground window to 0 */ if (hwnd == GetForegroundWindow()) { - TRACE( "lost focus, setting fg to 0\n" ); - SetForegroundWindow( 0 ); + TRACE( "lost focus, setting fg to desktop\n" ); + SetForegroundWindow( GetDesktopWindow() ); } } }
1
0
0
0
← Newer
1
...
35
36
37
38
39
40
41
...
96
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
Results per page:
10
25
50
100
200