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
Juan Lang : crypt32: Test getting the hash from a hash message with an invalid index.
by Alexandre Julliard
26 Jul '07
26 Jul '07
Module: wine Branch: master Commit: 55729020460264338a633d495be305a1aca64400 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=55729020460264338a633d495…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Wed Jul 25 18:08:58 2007 -0700 crypt32: Test getting the hash from a hash message with an invalid index. --- dlls/crypt32/tests/msg.c | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/dlls/crypt32/tests/msg.c b/dlls/crypt32/tests/msg.c index 3bd0882..f65c7f8 100644 --- a/dlls/crypt32/tests/msg.c +++ b/dlls/crypt32/tests/msg.c @@ -1853,6 +1853,7 @@ static void test_decode_msg_get_param(void) HCRYPTMSG msg; BOOL ret; DWORD size = 0, version; + LPBYTE buf; msg = CryptMsgOpenToDecode(PKCS_7_ASN_ENCODING, 0, 0, 0, NULL, NULL); SetLastError(0xdeadbeef); @@ -1879,7 +1880,19 @@ static void test_decode_msg_get_param(void) sizeof(hashParam)); check_param("hash computed hash", msg, CMSG_COMPUTED_HASH_PARAM, hashParam, sizeof(hashParam)); - size = strlen(szOID_RSA_data) + 1; + /* Curiously, getting the hash of index 1 succeeds, even though there's + * only one hash. + */ + ret = CryptMsgGetParam(msg, CMSG_COMPUTED_HASH_PARAM, 1, NULL, &size); + ok(ret, "CryptMsgGetParam failed: %08x\n", GetLastError()); + buf = CryptMemAlloc(size); + if (buf) + { + ret = CryptMsgGetParam(msg, CMSG_COMPUTED_HASH_PARAM, 1, buf, &size); + ok(size == sizeof(hashParam), "Unexpected size %d\n", size); + ok(!memcmp(buf, hashParam, size), "Unexpected value\n"); + CryptMemFree(buf); + } check_param("hash inner OID", msg, CMSG_INNER_CONTENT_TYPE_PARAM, (const BYTE *)szOID_RSA_data, strlen(szOID_RSA_data) + 1); version = CMSG_HASHED_DATA_V0;
1
0
0
0
Misha Koshelev : urlmon: Don' t free structures that are used by asynchronous HttpSendRequest until we are sure they won 't be used.
by Alexandre Julliard
26 Jul '07
26 Jul '07
Module: wine Branch: master Commit: a8aa3fb5469de10c3b7b98acc01a7977b7e71be7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a8aa3fb5469de10c3b7b98acc…
Author: Misha Koshelev <mk144210(a)bcm.edu> Date: Wed Jul 25 23:58:37 2007 -0500 urlmon: Don't free structures that are used by asynchronous HttpSendRequest until we are sure they won't be used. --- dlls/urlmon/http.c | 68 +++++++++++++++++++++++++++++++-------------------- 1 files changed, 41 insertions(+), 27 deletions(-) diff --git a/dlls/urlmon/http.c b/dlls/urlmon/http.c index 79858e6..8dc3432 100644 --- a/dlls/urlmon/http.c +++ b/dlls/urlmon/http.c @@ -74,9 +74,11 @@ typedef struct { const IInternetPriorityVtbl *lpInternetPriorityVtbl; DWORD flags, grfBINDF; + BINDINFO bind_info; IInternetProtocolSink *protocol_sink; IHttpNegotiate *http_negotiate; HINTERNET internet, connect, request; + LPWSTR full_header; HANDLE lock; ULONG current_position, content_length, available_bytes; LONG priority; @@ -84,6 +86,10 @@ typedef struct { LONG ref; } HttpProtocol; +/* Default headers from native */ +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}; + /* * Helpers */ @@ -160,6 +166,17 @@ static void HTTPPROTOCOL_Close(HttpProtocol *This) InternetCloseHandle(This->internet); This->internet = 0; } + if (This->full_header) + { + if (This->full_header != wszHeaders) + HeapFree(GetProcessHeap(), 0, This->full_header); + This->full_header = 0; + } + if (This->bind_info.cbSize) + { + ReleaseBindInfo(&This->bind_info); + memset(&This->bind_info, 0, sizeof(This->bind_info)); + } This->flags = 0; } @@ -284,20 +301,17 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl { HttpProtocol *This = PROTOCOL_THIS(iface); URL_COMPONENTSW url; - BINDINFO bindinfo; DWORD len = 0, request_flags = INTERNET_FLAG_KEEP_CONNECTION; 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, post_cookie = 0, optional = 0; + post_cookie = 0, optional = 0; BYTE security_id[512]; LPOLESTR user_agent, accept_mimes[257]; HRESULT hres; 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}, @@ -306,9 +320,9 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl TRACE("(%p)->(%s %p %p %08x %d)\n", This, debugstr_w(szUrl), pOIProtSink, pOIBindInfo, grfPI, dwReserved); - memset(&bindinfo, 0, sizeof(bindinfo)); - bindinfo.cbSize = sizeof(BINDINFO); - hres = IInternetBindInfo_GetBindInfo(pOIBindInfo, &This->grfBINDF, &bindinfo); + memset(&This->bind_info, 0, sizeof(This->bind_info)); + This->bind_info.cbSize = sizeof(BINDINFO); + hres = IInternetBindInfo_GetBindInfo(pOIBindInfo, &This->grfBINDF, &This->bind_info); if (hres != S_OK) { WARN("GetBindInfo failed: %08x\n", hres); @@ -407,8 +421,9 @@ 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, bindinfo.dwBindVerb < BINDVERB_CUSTOM ? - wszBindVerb[bindinfo.dwBindVerb] : bindinfo.szCustomVerb, + This->request = HttpOpenRequestW(This->connect, This->bind_info.dwBindVerb < BINDVERB_CUSTOM ? + wszBindVerb[This->bind_info.dwBindVerb] : + This->bind_info.szCustomVerb, path, NULL, NULL, (LPCWSTR *)accept_mimes, request_flags, (DWORD)This); if (!This->request) @@ -443,20 +458,21 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl } else if (addl_header == NULL) { - full_header = (LPWSTR)wszHeaders; + This->full_header = (LPWSTR)wszHeaders; } else { - full_header = HeapAlloc(GetProcessHeap(), 0, - (lstrlenW(addl_header)+sizeof(wszHeaders))*sizeof(WCHAR)); - if (!full_header) + int len_addl_header = lstrlenW(addl_header); + This->full_header = HeapAlloc(GetProcessHeap(), 0, + len_addl_header*sizeof(WCHAR)+sizeof(wszHeaders)); + if (!This->full_header) { WARN("Out of memory\n"); hres = E_OUTOFMEMORY; goto done; } - lstrcpyW(full_header, addl_header); - lstrcpyW(&full_header[lstrlenW(addl_header)], wszHeaders); + lstrcpyW(This->full_header, addl_header); + lstrcpyW(&This->full_header[len_addl_header], wszHeaders); } hres = IServiceProvider_QueryService(service_provider, &IID_IHttpNegotiate2, @@ -479,7 +495,7 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl /* FIXME: Handle security_id. Native calls undocumented function IsHostInProxyBypassList. */ - if (bindinfo.dwBindVerb == BINDVERB_POST) + if (This->bind_info.dwBindVerb == BINDVERB_POST) { num = 0; hres = IInternetBindInfo_GetBindString(pOIBindInfo, BINDSTRING_POST_COOKIE, &post_cookie, @@ -493,18 +509,18 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl } } - if (bindinfo.dwBindVerb != BINDVERB_GET) + if (This->bind_info.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); + if (This->bind_info.stgmedData.tymed != TYMED_HGLOBAL) + WARN("Expected This->bind_info.stgmedData.tymed to be TYMED_HGLOBAL, not %d\n", + This->bind_info.stgmedData.tymed); else - optional = (LPWSTR)bindinfo.stgmedData.hGlobal; + optional = (LPWSTR)This->bind_info.stgmedData.hGlobal; } - if (!HttpSendRequestW(This->request, full_header, lstrlenW(full_header), + if (!HttpSendRequestW(This->request, This->full_header, lstrlenW(This->full_header), optional, - optional ? bindinfo.cbstgmedData : 0) && + optional ? This->bind_info.cbstgmedData : 0) && GetLastError() != ERROR_IO_PENDING) { WARN("HttpSendRequest failed: %d\n", GetLastError()); @@ -521,8 +537,6 @@ done: } CoTaskMemFree(post_cookie); - if (full_header != wszHeaders) - HeapFree(GetProcessHeap(), 0, full_header); CoTaskMemFree(addl_header); if (http_negotiate2) IHttpNegotiate2_Release(http_negotiate2); @@ -539,8 +553,6 @@ done: HeapFree(GetProcessHeap(), 0, path); HeapFree(GetProcessHeap(), 0, host); - ReleaseBindInfo(&bindinfo); - return hres; } @@ -904,9 +916,11 @@ HRESULT HttpProtocol_Construct(IUnknown *pUnkOuter, LPVOID *ppobj) ret->lpInternetProtocolVtbl = &HttpProtocolVtbl; ret->lpInternetPriorityVtbl = &HttpPriorityVtbl; ret->flags = ret->grfBINDF = 0; + memset(&ret->bind_info, 0, sizeof(ret->bind_info)); ret->protocol_sink = 0; ret->http_negotiate = 0; ret->internet = ret->connect = ret->request = 0; + ret->full_header = 0; ret->lock = 0; ret->current_position = ret->content_length = ret->available_bytes = 0; ret->priority = 0;
1
0
0
0
Alexandre Julliard : libwine: Get rid of the lookup in the top dlls/ dir, all dlls are named correctly now.
by Alexandre Julliard
26 Jul '07
26 Jul '07
Module: wine Branch: master Commit: 5fe7589bb41c227807699db8ca61c88fbcb37e56 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5fe7589bb41c227807699db8c…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Jul 26 11:52:53 2007 +0200 libwine: Get rid of the lookup in the top dlls/ dir, all dlls are named correctly now. --- libs/wine/loader.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/libs/wine/loader.c b/libs/wine/loader.c index a86da98..c7fcece 100644 --- a/libs/wine/loader.c +++ b/libs/wine/loader.c @@ -182,13 +182,11 @@ static char *next_dll_path( struct dll_path_context *context ) case 1: /* try dlls dir with subdir prefix */ if (namelen > 4 && !memcmp( context->name + namelen - 4, ".dll", 4 )) namelen -= 4; path = prepend( path, context->name, namelen ); - /* fall through */ - case 2: /* try dlls dir without prefix */ path = prepend( path, "/dlls", sizeof("/dlls") - 1 ); path = prepend( path, build_dir, strlen(build_dir) ); return path; default: - index -= 3; + index -= 2; if (index < nb_dll_paths) return prepend( context->name, dll_paths[index], strlen( dll_paths[index] )); break; @@ -204,7 +202,7 @@ static char *first_dll_path( const char *name, const char *ext, struct dll_path_ int namelen = strlen( name ); context->buffer = malloc( dll_path_maxlen + 2 * namelen + strlen(ext) + 3 ); - context->index = build_dir ? 0 : 3; /* if no build dir skip all the build dir magic cases */ + context->index = build_dir ? 0 : 2; /* if no build dir skip all the build dir magic cases */ context->name = context->buffer + dll_path_maxlen + namelen + 1; context->namelen = namelen + 1; @@ -655,7 +653,7 @@ void wine_init( int argc, char *argv[], char *error, int error_size ) if ((ntdll = wine_dlopen( path, RTLD_NOW, error, error_size ))) { /* if we didn't use the default dll dir, remove it from the search path */ - if (default_dlldir[0] && context.index < nb_dll_paths) nb_dll_paths--; + if (default_dlldir[0] && context.index < nb_dll_paths + 2) nb_dll_paths--; break; } }
1
0
0
0
Misha Koshelev : urlmon/tests: Fix http protocol tests with absence of BINDF_FROMURLMON to properly expect ReportData .
by Alexandre Julliard
26 Jul '07
26 Jul '07
Module: wine Branch: master Commit: d5fedcdab01755c55852c04cb445b819ff416f81 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d5fedcdab01755c55852c04cb…
Author: Misha Koshelev <mk144210(a)bcm.edu> Date: Thu Jul 26 00:02:17 2007 -0500 urlmon/tests: Fix http protocol tests with absence of BINDF_FROMURLMON to properly expect ReportData. --- dlls/urlmon/tests/protocol.c | 71 +++++++++++++++++++++++++++--------------- 1 files changed, 46 insertions(+), 25 deletions(-) diff --git a/dlls/urlmon/tests/protocol.c b/dlls/urlmon/tests/protocol.c index ebc06bf..a9d13d1 100644 --- a/dlls/urlmon/tests/protocol.c +++ b/dlls/urlmon/tests/protocol.c @@ -104,6 +104,7 @@ static int state = 0; static DWORD bindf = 0; static IInternetBindInfo *prot_bind_info; static void *expect_pv; +static HANDLE received_data; static enum { FILE_TEST, @@ -416,9 +417,8 @@ static HRESULT WINAPI ProtocolSink_ReportData(IInternetProtocolSink *iface, DWOR "grcfBSCF = %08x\n", grfBSCF); } - if (!(grfBSCF & BSCF_LASTDATANOTIFICATION) && - !(bindf & BINDF_FROMURLMON)) - SendMessage(protocol_hwnd, WM_USER, 0, 0); + if (!(bindf & BINDF_FROMURLMON)) + SetEvent(received_data); } return S_OK; } @@ -1233,19 +1233,25 @@ static void test_http_protocol_url(LPCWSTR url, BOOL is_first) if(!http_protocol_start(url, is_first)) return; - hres = IInternetProtocol_Read(http_protocol, buf, 2, &cb); - ok(hres == E_PENDING, "Read failed: %08x, expected E_PENDING\n", hres); - ok(!cb, "cb=%d, expected 0\n", cb); - - if(bindf & BINDF_FROMURLMON) - SET_EXPECT(Switch); SET_EXPECT(ReportResult); expect_hrResult = S_OK; - GetMessage(&msg, NULL, 0, 0); - if(bindf & BINDF_FROMURLMON) + { + hres = IInternetProtocol_Read(http_protocol, buf, 2, &cb); + ok(hres == E_PENDING, "Read failed: %08x, expected E_PENDING\n", hres); + ok(!cb, "cb=%d, expected 0\n", cb); + + SET_EXPECT(Switch); + GetMessage(&msg, NULL, 0, 0); CHECK_CALLED(Switch); + } + else + { + WaitForSingleObject(received_data, INFINITE); + SendMessage(protocol_hwnd, WM_USER, 0, 0); + } + CHECK_CALLED(ReportResult); hres = IInternetProtocol_Terminate(http_protocol, 0); @@ -1281,18 +1287,31 @@ static void test_http_protocol(void) http_post_test = FALSE; } +static HRESULT http_protocol_read(void) +{ + HRESULT hres; + DWORD cb; + BYTE buf[3600]; + + while(1) { + hres = IInternetProtocol_Read(http_protocol, buf, sizeof(buf), &cb); + if(!(bindf & BINDF_FROMURLMON) && + hres == E_PENDING) { + WaitForSingleObject(received_data, INFINITE); + CHECK_CALLED(ReportData); + SET_EXPECT(ReportData); + } else if(cb == 0) break; + } + + return hres; +} + static LRESULT WINAPI wnd_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { if(msg == WM_USER) { - BOOL first_call = FALSE; HRESULT hres; - DWORD cb; - BYTE buf[3600]; if(!state) { - first_call = TRUE; - state = 1; - if (http_is_first) { CHECK_CALLED(ReportProgress_FINDINGRESOURCE); @@ -1324,26 +1343,26 @@ static LRESULT WINAPI wnd_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ok(hres == S_OK, "Continue failed: %08x\n", hres); CHECK_CALLED(ReportData); - if(first_call) { + if(!state) { CHECK_CALLED(OnResponse); CHECK_CALLED(ReportProgress_MIMETYPEAVAILABLE); } } - do hres = IInternetProtocol_Read(http_protocol, buf, sizeof(buf), &cb); - while(cb); - + hres = http_protocol_read(); ok(hres == S_FALSE || hres == E_PENDING, "Read failed: %08x\n", hres); - if(hres == S_FALSE) + if(hres == S_FALSE && + (bindf & BINDF_FROMURLMON)) PostMessage(protocol_hwnd, WM_USER+1, 0, 0); - if(first_call) { + if(!state) { + state = 1; + hres = IInternetProtocol_LockRequest(http_protocol, 0); ok(hres == S_OK, "LockRequest failed: %08x\n", hres); - do hres = IInternetProtocol_Read(http_protocol, buf, sizeof(buf), &cb); - while(cb); + hres = http_protocol_read(); ok(hres == S_FALSE || hres == E_PENDING, "Read failed: %08x\n", hres); } } @@ -1533,6 +1552,7 @@ START_TEST(protocol) { OleInitialize(NULL); + received_data = CreateEvent(NULL, FALSE, FALSE, NULL); protocol_hwnd = create_protocol_window(); test_file_protocol(); @@ -1541,6 +1561,7 @@ START_TEST(protocol) test_CreateBinding(); DestroyWindow(protocol_hwnd); + CloseHandle(received_data); OleUninitialize(); }
1
0
0
0
Alexandre Julliard : crypt32: Don't use off_t for memory offsets.
by Alexandre Julliard
26 Jul '07
26 Jul '07
Module: wine Branch: master Commit: fd51447966d403b5f41b901a597dde17293704b0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fd51447966d403b5f41b901a5…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Jul 26 11:52:23 2007 +0200 crypt32: Don't use off_t for memory offsets. --- dlls/crypt32/encode.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/crypt32/encode.c b/dlls/crypt32/encode.c index 7359ed8..e6695cf 100644 --- a/dlls/crypt32/encode.c +++ b/dlls/crypt32/encode.c @@ -1215,7 +1215,7 @@ struct DERSetDescriptor DWORD cItems; const void *items; size_t itemSize; - off_t itemOffset; + size_t itemOffset; CryptEncodeObjectExFunc encode; };
1
0
0
0
Rob Shearman : mshtml: Handle Ctrl-Home and Ctrl-End in edit mode.
by Alexandre Julliard
26 Jul '07
26 Jul '07
Module: wine Branch: master Commit: 4dfdec2ef57f4cd8f36f53e086d50a76aaa224b5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4dfdec2ef57f4cd8f36f53e08…
Author: Rob Shearman <rob(a)codeweavers.com> Date: Wed Jul 25 19:15:22 2007 -0500 mshtml: Handle Ctrl-Home and Ctrl-End in edit mode. --- dlls/mshtml/editor.c | 36 +++++++++++++++++++++++++++++++++++- 1 files changed, 35 insertions(+), 1 deletions(-) diff --git a/dlls/mshtml/editor.c b/dlls/mshtml/editor.c index f9005b6..5bf160e 100644 --- a/dlls/mshtml/editor.c +++ b/dlls/mshtml/editor.c @@ -39,6 +39,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml); #define NSCMD_ALIGN "cmd_align" +#define NSCMD_BEGINLINE "cmd_beginLine" #define NSCMD_BOLD "cmd_bold" #define NSCMD_CHARNEXT "cmd_charNext" #define NSCMD_CHARPREVIOUS "cmd_charPrevious" @@ -46,6 +47,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml); #define NSCMD_CUT "cmd_cut" #define NSCMD_DELETECHARFORWARD "cmd_deleteCharForward" #define NSCMD_DELETEWORDFORWARD "cmd_deleteWordForward" +#define NSCMD_ENDLINE "cmd_endLine" #define NSCMD_FONTCOLOR "cmd_fontColor" #define NSCMD_FONTFACE "cmd_fontFace" #define NSCMD_INDENT "cmd_indent" @@ -53,17 +55,23 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml); #define NSCMD_ITALIC "cmd_italic" #define NSCMD_LINENEXT "cmd_lineNext" #define NSCMD_LINEPREVIOUS "cmd_linePrevious" +#define NSCMD_MOVEBOTTOM "cmd_moveBottom" #define NSCMD_MOVEPAGEDOWN "cmd_movePageDown" #define NSCMD_MOVEPAGEUP "cmd_movePageUp" +#define NSCMD_MOVETOP "cmd_moveTop" #define NSCMD_OL "cmd_ol" #define NSCMD_OUTDENT "cmd_outdent" #define NSCMD_PASTE "cmd_paste" +#define NSCMD_SELECTBEGINLINE "cmd_selectBeginLine" +#define NSCMD_SELECTBOTTOM "cmd_selectBottom" #define NSCMD_SELECTCHARNEXT "cmd_selectCharNext" #define NSCMD_SELECTCHARPREVIOUS "cmd_selectCharPrevious" +#define NSCMD_SELECTENDLINE "cmd_selectEndLine" #define NSCMD_SELECTLINENEXT "cmd_selectLineNext" #define NSCMD_SELECTLINEPREVIOUS "cmd_selectLinePrevious" #define NSCMD_SELECTPAGEDOWN "cmd_selectPageDown" #define NSCMD_SELECTPAGEUP "cmd_selectPageUp" +#define NSCMD_SELECTTOP "cmd_selectTop" #define NSCMD_SELECTWORDNEXT "cmd_selectWordNext" #define NSCMD_SELECTWORDPREVIOUS "cmd_selectWordPrevious" #define NSCMD_UL "cmd_ul" @@ -83,6 +91,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml); #define DOM_VK_RIGHT VK_RIGHT #define DOM_VK_DOWN VK_DOWN #define DOM_VK_DELETE VK_DELETE +#define DOM_VK_HOME VK_HOME +#define DOM_VK_END VK_END static const WCHAR wszFont[] = {'f','o','n','t',0}; static const WCHAR wszSize[] = {'s','i','z','e',0}; @@ -478,7 +488,7 @@ static nsIDOMNode *get_child_text_node(nsIDOMNode *node, BOOL first) return NULL; } -static void handle_arrow_key(HTMLDocument *This, nsIDOMKeyEvent *event, const char **cmds) +static void handle_arrow_key(HTMLDocument *This, nsIDOMKeyEvent *event, const char *cmds[4]) { int i=0; PRBool b; @@ -566,6 +576,30 @@ void handle_edit_event(HTMLDocument *This, nsIDOMEvent *event) handle_arrow_key(This, key_event, cmds); break; } + case DOM_VK_HOME: { + static const char *cmds[] = { + NSCMD_BEGINLINE, + NSCMD_MOVETOP, + NSCMD_SELECTBEGINLINE, + NSCMD_SELECTTOP + }; + + TRACE("home\n"); + handle_arrow_key(This, key_event, cmds); + break; + } + case DOM_VK_END: { + static const char *cmds[] = { + NSCMD_ENDLINE, + NSCMD_MOVEBOTTOM, + NSCMD_SELECTENDLINE, + NSCMD_SELECTBOTTOM + }; + + TRACE("end\n"); + handle_arrow_key(This, key_event, cmds); + break; + } } nsIDOMKeyEvent_Release(key_event);
1
0
0
0
H. Verbeet : wined3d: Flip the scissor rect when rendering offscreen.
by Alexandre Julliard
26 Jul '07
26 Jul '07
Module: wine Branch: master Commit: b4e596e70e912e3cc362d81d43bfead3a21b608c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b4e596e70e912e3cc362d81d4…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Thu Jul 26 00:38:50 2007 +0200 wined3d: Flip the scissor rect when rendering offscreen. --- dlls/wined3d/context.c | 2 ++ dlls/wined3d/device.c | 17 ++++++++++++----- dlls/wined3d/state.c | 7 ++++++- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index 32791b7..1c5abd0 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -700,6 +700,7 @@ static inline WineD3DContext *FindContext(IWineD3DDeviceImpl *This, IWineD3DSurf Context_MarkStateDirty(context, WINED3DTS_PROJECTION); Context_MarkStateDirty(context, STATE_VDECL); Context_MarkStateDirty(context, STATE_VIEWPORT); + Context_MarkStateDirty(context, STATE_SCISSORRECT); } } else { @@ -787,6 +788,7 @@ static inline WineD3DContext *FindContext(IWineD3DDeviceImpl *This, IWineD3DSurf Context_MarkStateDirty(context, WINED3DTS_PROJECTION); Context_MarkStateDirty(context, STATE_VDECL); Context_MarkStateDirty(context, STATE_VIEWPORT); + Context_MarkStateDirty(context, STATE_SCISSORRECT); } } if (readTexture) { diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 9f6d63b..be4214e 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -4509,11 +4509,18 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Clear(IWineD3DDevice *iface, DWORD Coun if (!curRect) { /* In drawable flag is set below */ - glScissor(This->stateBlock->viewport.X, - (((IWineD3DSurfaceImpl *)This->render_targets[0])->currentDesc.Height - - (This->stateBlock->viewport.Y + This->stateBlock->viewport.Height)), - This->stateBlock->viewport.Width, - This->stateBlock->viewport.Height); + if (This->render_offscreen) { + glScissor(This->stateBlock->viewport.X, + This->stateBlock->viewport.Y, + This->stateBlock->viewport.Width, + This->stateBlock->viewport.Height); + } else { + glScissor(This->stateBlock->viewport.X, + (((IWineD3DSurfaceImpl *)This->render_targets[0])->currentDesc.Height - + (This->stateBlock->viewport.Y + This->stateBlock->viewport.Height)), + This->stateBlock->viewport.Width, + This->stateBlock->viewport.Height); + } checkGLcall("glScissor"); glClear(glMask); checkGLcall("glClear"); diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index 3d6101d..71a6916 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -3442,7 +3442,12 @@ static void scissorrect(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3D winHeight = windowRect.bottom - windowRect.top; TRACE("(%p) Setting new Scissor Rect to %d:%d-%d:%d\n", stateblock->wineD3DDevice, pRect->left, pRect->bottom - winHeight, pRect->right - pRect->left, pRect->bottom - pRect->top); - glScissor(pRect->left, winHeight - pRect->bottom, pRect->right - pRect->left, pRect->bottom - pRect->top); + + if (stateblock->wineD3DDevice->render_offscreen) { + glScissor(pRect->left, pRect->top, pRect->right - pRect->left, pRect->bottom - pRect->top); + } else { + glScissor(pRect->left, winHeight - pRect->bottom, pRect->right - pRect->left, pRect->bottom - pRect->top); + } checkGLcall("glScissor"); }
1
0
0
0
H. Verbeet : d3d9: Trace the Format parameter to IDirect3DDevice9Impl_CreateTexture as hexadecimal .
by Alexandre Julliard
26 Jul '07
26 Jul '07
Module: wine Branch: master Commit: 4194d784f8e678281205e17f79f8bf7c51847885 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4194d784f8e678281205e17f7…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Thu Jul 26 00:38:45 2007 +0200 d3d9: Trace the Format parameter to IDirect3DDevice9Impl_CreateTexture as hexadecimal. --- dlls/d3d9/texture.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/d3d9/texture.c b/dlls/d3d9/texture.c index d45385d..aa873eb 100644 --- a/dlls/d3d9/texture.c +++ b/dlls/d3d9/texture.c @@ -333,7 +333,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateTexture(LPDIRECT3DDEVICE9 iface, UIN IDirect3DDevice9Impl *This = (IDirect3DDevice9Impl *)iface; HRESULT hrc = D3D_OK; - TRACE("(%p) : W(%d) H(%d), Lvl(%d) d(%d), Fmt(%u), Pool(%d)\n", This, Width, Height, Levels, Usage, Format, Pool); + TRACE("(%p) : W(%d) H(%d), Lvl(%d) d(%d), Fmt(%#x), Pool(%d)\n", This, Width, Height, Levels, Usage, Format, Pool); /* Allocate the storage for the device */ object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirect3DTexture9Impl));
1
0
0
0
Jacek Caban : mshtml: Make sure we have associated listener before calling OnStopRequest.
by Alexandre Julliard
26 Jul '07
26 Jul '07
Module: wine Branch: master Commit: cb9527ac069dcbc27ad8d27f8637795c00e77b76 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cb9527ac069dcbc27ad8d27f8…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Thu Jul 26 00:14:45 2007 +0200 mshtml: Make sure we have associated listener before calling OnStopRequest. --- dlls/mshtml/navigate.c | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/dlls/mshtml/navigate.c b/dlls/mshtml/navigate.c index 76fd5f2..014fcdb 100644 --- a/dlls/mshtml/navigate.c +++ b/dlls/mshtml/navigate.c @@ -249,6 +249,12 @@ static void add_nsrequest(BSCallback *This) } } +static void on_stop_nsrequest(BSCallback *This) { + if(This->nslistener) + nsIStreamListener_OnStopRequest(This->nslistener, (nsIRequest*)NSCHANNEL(This->nschannel), + This->nscontext, NS_OK); +} + #define STATUSCLB_THIS(iface) DEFINE_THIS(BSCallback, BindStatusCallback, iface) static HRESULT WINAPI BindStatusCallback_QueryInterface(IBindStatusCallback *iface, @@ -391,10 +397,9 @@ static HRESULT WINAPI BindStatusCallback_OnStopBinding(IBindStatusCallback *ifac This->binding = NULL; } - if(This->nslistener) { - nsIStreamListener_OnStopRequest(This->nslistener, (nsIRequest*)NSCHANNEL(This->nschannel), - This->nscontext, NS_OK); + on_stop_nsrequest(This); + if(This->nslistener) { if(This->nschannel->load_group) { nsresult nsres; @@ -796,8 +801,7 @@ HRESULT start_binding(BSCallback *bscallback) hres = CreateAsyncBindCtx(0, STATUSCLB(bscallback), NULL, &bctx); if(FAILED(hres)) { WARN("CreateAsyncBindCtx failed: %08x\n", hres); - nsIStreamListener_OnStopRequest(bscallback->nslistener, (nsIRequest*)NSCHANNEL(bscallback->nschannel), - bscallback->nscontext, NS_OK); + on_stop_nsrequest(bscallback); return hres; } @@ -805,8 +809,7 @@ HRESULT start_binding(BSCallback *bscallback) IBindCtx_Release(bctx); if(FAILED(hres)) { WARN("BindToStorage failed: %08x\n", hres); - nsIStreamListener_OnStopRequest(bscallback->nslistener, (nsIRequest*)NSCHANNEL(bscallback->nschannel), - bscallback->nscontext, NS_OK); + on_stop_nsrequest(bscallback); return hres; }
1
0
0
0
Jacek Caban : urlmon: Change some gotos to return.
by Alexandre Julliard
26 Jul '07
26 Jul '07
Module: wine Branch: master Commit: 262db80776a8f06518b49175c43ec08949582ed6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=262db80776a8f06518b49175c…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Thu Jul 26 00:13:44 2007 +0200 urlmon: Change some gotos to return. --- dlls/urlmon/http.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/urlmon/http.c b/dlls/urlmon/http.c index a720651..79858e6 100644 --- a/dlls/urlmon/http.c +++ b/dlls/urlmon/http.c @@ -558,22 +558,22 @@ static HRESULT WINAPI HttpProtocol_Continue(IInternetProtocol *iface, PROTOCOLDA if (!pProtocolData) { WARN("Expected pProtocolData to be non-NULL\n"); - goto done; + return S_OK; } else if (!This->request) { WARN("Expected request to be non-NULL\n"); - goto done; + return S_OK; } else if (!This->http_negotiate) { WARN("Expected IHttpNegotiate pointer to be non-NULL\n"); - goto done; + return S_OK; } else if (!This->protocol_sink) { WARN("Expected IInternetProtocolSink pointer to be non-NULL\n"); - goto done; + return S_OK; } if (pProtocolData->pData == (LPVOID)BINDSTATUS_DOWNLOADINGDATA)
1
0
0
0
← Newer
1
...
18
19
20
21
22
23
24
...
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