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
August 2006
----- 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
5 participants
746 discussions
Start a n
N
ew thread
Dan Hipschman : widl: Allow format-string functions to work with objects.
by Alexandre Julliard
18 Aug '06
18 Aug '06
Module: wine Branch: master Commit: 9b16916ed13e0b26ab3f375f2deb5cb146fda1b3 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=9b16916ed13e0b26ab3f375…
Author: Dan Hipschman <dsh(a)linux.ucla.edu> Date: Thu Aug 17 18:08:38 2006 -0700 widl: Allow format-string functions to work with objects. --- tools/widl/client.c | 6 +++--- tools/widl/proxy.c | 6 +++--- tools/widl/server.c | 6 +++--- tools/widl/typegen.c | 22 +++++++++++----------- tools/widl/typegen.h | 10 +++++----- 5 files changed, 25 insertions(+), 25 deletions(-) diff --git a/tools/widl/client.c b/tools/widl/client.c index 3bc47b2..64cf8c5 100644 --- a/tools/widl/client.c +++ b/tools/widl/client.c @@ -440,7 +440,7 @@ void write_client(ifref_t *ifaces) if (!client) return; - write_formatstringsdecl(client, indent, ifaces); + write_formatstringsdecl(client, indent, ifaces, 0); for (; iface; iface = PREV_LINK(iface)) { @@ -479,8 +479,8 @@ void write_client(ifref_t *ifaces) fprintf(client, "\n"); - write_procformatstring(client, ifaces); - write_typeformatstring(client, ifaces); + write_procformatstring(client, ifaces, 0); + write_typeformatstring(client, ifaces, 0); fclose(client); } diff --git a/tools/widl/proxy.c b/tools/widl/proxy.c index 608c856..2c4fa10 100644 --- a/tools/widl/proxy.c +++ b/tools/widl/proxy.c @@ -110,7 +110,7 @@ static void init_proxy(ifref_t *ifaces) print_proxy( "\n"); print_proxy( "#include \"%s\"\n", header_name); print_proxy( "\n"); - write_formatstringsdecl(proxy, indent, ifaces); + write_formatstringsdecl(proxy, indent, ifaces, 1); write_stubdescproto(); } @@ -1031,8 +1031,8 @@ void write_proxies(ifref_t *ifaces) print_proxy( "#error Currently only Wine and WIN32 are supported.\n"); print_proxy( "#endif\n"); print_proxy( "\n"); - write_procformatstring(proxy, ifaces); - write_typeformatstring(proxy, ifaces); + write_procformatstring(proxy, ifaces, 1); + write_typeformatstring(proxy, ifaces, 1); fprintf(proxy, "const CInterfaceProxyVtbl* _%s_ProxyVtblList[] =\n", file_id); fprintf(proxy, "{\n"); diff --git a/tools/widl/server.c b/tools/widl/server.c index 69eddb8..9f6c5ac 100644 --- a/tools/widl/server.c +++ b/tools/widl/server.c @@ -582,7 +582,7 @@ void write_server(ifref_t *ifaces) if (!server) return; - write_formatstringsdecl(server, indent, ifaces); + write_formatstringsdecl(server, indent, ifaces, 0); for (; iface; iface = PREV_LINK(iface)) { @@ -620,8 +620,8 @@ void write_server(ifref_t *ifaces) fprintf(server, "\n"); - write_procformatstring(server, ifaces); - write_typeformatstring(server, ifaces); + write_procformatstring(server, ifaces, 0); + write_typeformatstring(server, ifaces, 0); fclose(server); } diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index 632bc8a..2d7e07f 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -142,13 +142,13 @@ static void write_formatdesc(FILE *f, in print_file(f, indent, "\n"); } -void write_formatstringsdecl(FILE *f, int indent, ifref_t *ifaces) +void write_formatstringsdecl(FILE *f, int indent, ifref_t *ifaces, int for_objects) { print_file(f, indent, "#define TYPE_FORMAT_STRING_SIZE %d\n", - get_size_typeformatstring(ifaces)); + get_size_typeformatstring(ifaces, for_objects)); print_file(f, indent, "#define PROC_FORMAT_STRING_SIZE %d\n", - get_size_procformatstring(ifaces)); + get_size_procformatstring(ifaces, for_objects)); fprintf(f, "\n"); write_formatdesc(f, indent, "TYPE"); @@ -275,7 +275,7 @@ #undef CASE_BASETYPE return size; } -void write_procformatstring(FILE *file, const ifref_t *ifaces) +void write_procformatstring(FILE *file, const ifref_t *ifaces, int for_objects) { const ifref_t *iface = ifaces; int indent = 0; @@ -293,7 +293,7 @@ void write_procformatstring(FILE *file, for (; iface; iface = PREV_LINK(iface)) { - if (is_object(iface->iface->attrs) || is_local(iface->iface->attrs)) + if (for_objects != is_object(iface->iface->attrs) || is_local(iface->iface->attrs)) continue; if (iface->iface->funcs) @@ -1385,7 +1385,7 @@ #define CASE_BASETYPE(fctype) \ } -void write_typeformatstring(FILE *file, const ifref_t *ifaces) +void write_typeformatstring(FILE *file, const ifref_t *ifaces, int for_objects) { int indent = 0; var_t *var; @@ -1405,7 +1405,7 @@ void write_typeformatstring(FILE *file, for (; iface; iface = PREV_LINK(iface)) { - if (is_object(iface->iface->attrs) || is_local(iface->iface->attrs)) + if (for_objects != is_object(iface->iface->attrs) || is_local(iface->iface->attrs)) continue; if (iface->iface->funcs) @@ -1900,7 +1900,7 @@ size_t get_size_typeformatstring_var(con return type_offset; } -size_t get_size_procformatstring(const ifref_t *ifaces) +size_t get_size_procformatstring(const ifref_t *ifaces, int for_objects) { const ifref_t *iface = ifaces; size_t size = 1; @@ -1911,7 +1911,7 @@ size_t get_size_procformatstring(const i for (; iface; iface = PREV_LINK(iface)) { - if (is_object(iface->iface->attrs) || is_local(iface->iface->attrs)) + if (for_objects != is_object(iface->iface->attrs) || is_local(iface->iface->attrs)) continue; if (iface->iface->funcs) @@ -1946,7 +1946,7 @@ size_t get_size_procformatstring(const i return size; } -size_t get_size_typeformatstring(const ifref_t *ifaces) +size_t get_size_typeformatstring(const ifref_t *ifaces, int for_objects) { const ifref_t *iface = ifaces; size_t size = 3; @@ -1957,7 +1957,7 @@ size_t get_size_typeformatstring(const i for (; iface; iface = PREV_LINK(iface)) { - if (is_object(iface->iface->attrs) || is_local(iface->iface->attrs)) + if (for_objects != is_object(iface->iface->attrs) || is_local(iface->iface->attrs)) continue; if (iface->iface->funcs) diff --git a/tools/widl/typegen.h b/tools/widl/typegen.h index 4509032..d4885fb 100644 --- a/tools/widl/typegen.h +++ b/tools/widl/typegen.h @@ -35,16 +35,16 @@ enum remoting_phase PHASE_FREE }; -void write_formatstringsdecl(FILE *f, int indent, ifref_t *ifaces); -void write_procformatstring(FILE *file, const ifref_t *ifaces); -void write_typeformatstring(FILE *file, const ifref_t *ifaces); +void write_formatstringsdecl(FILE *f, int indent, ifref_t *ifaces, int for_objects); +void write_procformatstring(FILE *file, const ifref_t *ifaces, int for_objects); +void write_typeformatstring(FILE *file, const ifref_t *ifaces, int for_objects); size_t get_type_memsize(const type_t *type); unsigned int get_required_buffer_size(const var_t *var, unsigned int *alignment, enum pass pass); void print_phase_basetype(FILE *file, int indent, enum remoting_phase phase, enum pass pass, const var_t *var, const char *varname); void write_remoting_arguments(FILE *file, int indent, const func_t *func, unsigned int *type_offset, enum pass pass, enum remoting_phase phase); size_t get_size_procformatstring_var(const var_t *var); size_t get_size_typeformatstring_var(const var_t *var); -size_t get_size_procformatstring(const ifref_t *ifaces); -size_t get_size_typeformatstring(const ifref_t *ifaces); +size_t get_size_procformatstring(const ifref_t *ifaces, int for_objects); +size_t get_size_typeformatstring(const ifref_t *ifaces, int for_objects); int write_expr_eval_routines(FILE *file, const char *iface); void write_expr_eval_routine_list(FILE *file, const char *iface);
1
0
0
0
Robert Reif : advapi32: Fix test_LookupAccountSid to work on win9x.
by Alexandre Julliard
18 Aug '06
18 Aug '06
Module: wine Branch: master Commit: e8e501f44b428d66c2f64d4d74a2150ec7816c3e URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=e8e501f44b428d66c2f64d4…
Author: Robert Reif <reif(a)earthlink.net> Date: Thu Aug 17 15:24:21 2006 -0400 advapi32: Fix test_LookupAccountSid to work on win9x. --- dlls/advapi32/tests/security.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c index 51d76e0..9cf2af6 100644 --- a/dlls/advapi32/tests/security.c +++ b/dlls/advapi32/tests/security.c @@ -892,7 +892,12 @@ static void test_LookupAccountSid(void) ret = AllocateAndInitializeSid(&SIDAuthNT, 2, SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_USERS, 0, 0, 0, 0, 0, 0, &pUsersSid); - ok(ret, "AllocateAndInitializeSid failed with error %ld\n", GetLastError()); + ok(ret || (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED), + "AllocateAndInitializeSid failed with error %ld\n", GetLastError()); + + /* not running on NT so give up */ + if (!ret && (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)) + return; /* try NULL account */ acc_size = MAX_PATH;
1
0
0
0
Jacek Caban : mshtml: Fix Advise implementation for IPropertyNotifySink.
by Alexandre Julliard
18 Aug '06
18 Aug '06
Module: wine Branch: master Commit: 572691e68588edc7300a702833393ed126016960 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=572691e68588edc7300a702…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Thu Aug 17 23:16:56 2006 +0200 mshtml: Fix Advise implementation for IPropertyNotifySink. --- dlls/mshtml/conpoint.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/dlls/mshtml/conpoint.c b/dlls/mshtml/conpoint.c index f668e18..db66160 100644 --- a/dlls/mshtml/conpoint.c +++ b/dlls/mshtml/conpoint.c @@ -128,11 +128,10 @@ static HRESULT WINAPI ConnectionPoint_Ad TRACE("(%p)->(%p %p)\n", This, pUnkSink, pdwCookie); hres = IUnknown_QueryInterface(pUnkSink, &This->iid, (void**)&sink); - if(FAILED(hres) && !IsEqualGUID(&IID_IPropertyNotifySink, &This->iid)) { + if(FAILED(hres) && !IsEqualGUID(&IID_IPropertyNotifySink, &This->iid)) hres = IUnknown_QueryInterface(pUnkSink, &IID_IDispatch, (void**)&sink); - if(FAILED(hres)) - return CONNECT_E_CANNOTCONNECT; - } + if(FAILED(hres)) + return CONNECT_E_CANNOTCONNECT; if(This->sinks) { for(i=0; i<This->sinks_size; i++) {
1
0
0
0
Jacek Caban : mshtml: Switch nsWebBrowset to editing mode in exec_editmod.
by Alexandre Julliard
18 Aug '06
18 Aug '06
Module: wine Branch: master Commit: e3990ddf7bfce090ca4557dce505634a269512a4 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=e3990ddf7bfce090ca4557d…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Thu Aug 17 21:00:55 2006 +0200 mshtml: Switch nsWebBrowset to editing mode in exec_editmod. --- dlls/mshtml/nsiface.idl | 17 +++++++++++++++ dlls/mshtml/olecmd.c | 53 ++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 69 insertions(+), 1 deletions(-) diff --git a/dlls/mshtml/nsiface.idl b/dlls/mshtml/nsiface.idl index ee17638..46e0a23 100644 --- a/dlls/mshtml/nsiface.idl +++ b/dlls/mshtml/nsiface.idl @@ -108,6 +108,7 @@ typedef nsISupports nsIDOMHTMLFormElemen typedef nsISupports nsIDOMHTMLOptionsCollection; typedef nsISupports nsIDOMHTMLCollection; typedef nsISupports nsIDOMRange; +typedef nsISupports nsIEditor; [ object, @@ -1157,6 +1158,22 @@ interface nsIWindowWatcher : nsISupports nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow); } +[ + object, + uuid(d39fd2b4-3978-45d2-a4be-ba448171b61b) +] +interface nsIEditingSession : nsISupports +{ + nsresult GetEditorStatus(PRUint32 *aEditorStatus); + nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType, + PRBool doAfterUriLoad); + nsresult WindowIsEditable(nsIDOMWindow *window, PRBool *_retval); + nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval); + nsresult SetupEditorOnWindow(nsIDOMWindow *window); + nsresult TearDownEditorOnWindow(nsIDOMWindow *window); + nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor); +} + /* * NOTE: * This is a private Wine interface that is implemented by our implementation diff --git a/dlls/mshtml/olecmd.c b/dlls/mshtml/olecmd.c index 1669aaa..a95f5b1 100644 --- a/dlls/mshtml/olecmd.c +++ b/dlls/mshtml/olecmd.c @@ -247,11 +247,59 @@ static HRESULT exec_browsemode(HTMLDocum return S_OK; } +static void setup_ns_editing(NSContainer *This) +{ + nsIInterfaceRequestor *iface_req; + nsIEditingSession *editing_session = NULL; + nsIURIContentListener *listener = NULL; + nsIDOMWindow *dom_window = NULL; + nsresult nsres; + + nsres = nsIWebBrowser_QueryInterface(This->webbrowser, + &IID_nsIInterfaceRequestor, (void**)&iface_req); + if(NS_FAILED(nsres)) { + ERR("Could not get nsIInterfaceRequestor: %08lx\n", nsres); + return; + } + + nsres = nsIInterfaceRequestor_GetInterface(iface_req, &IID_nsIEditingSession, + (void**)&editing_session); + nsIInterfaceRequestor_Release(iface_req); + if(NS_FAILED(nsres)) { + ERR("Could not get nsIEditingSession: %08lx\n", nsres); + return; + } + + nsres = nsIWebBrowser_GetContentDOMWindow(This->webbrowser, &dom_window); + nsIDOMWindow_Release(dom_window); + if(NS_FAILED(nsres)) { + ERR("Could not get content DOM window: %08lx\n", nsres); + nsIEditingSession_Release(editing_session); + return; + } + + nsres = nsIEditingSession_MakeWindowEditable(editing_session, dom_window, NULL, FALSE); + nsIEditingSession_Release(editing_session); + if(NS_FAILED(nsres)) { + ERR("MakeWindowEditable failed: %08lx\n", nsres); + return; + } + + /* MakeWindowEditable changes WebBrowser's parent URI content listener. + * It seams to be a bug in Gecko. To workaround it we set our content + * listener again and Gecko's one as its parent. + */ + nsIWebBrowser_GetParentURIContentListener(This->webbrowser, &listener); + nsIURIContentListener_SetParentContentListener(NSURICL(This), listener); + nsIURIContentListener_Release(listener); + nsIWebBrowser_SetParentURIContentListener(This->webbrowser, NSURICL(This)); +} + static HRESULT exec_editmode(HTMLDocument *This) { HRESULT hres; - FIXME("(%p)\n", This); + TRACE("(%p)\n", This); This->usermode = EDITMODE; @@ -306,6 +354,9 @@ static HRESULT exec_editmode(HTMLDocumen } } + if(This->nscontainer) + setup_ns_editing(This->nscontainer); + return S_OK; }
1
0
0
0
Stefan Leichter : shlwapi: Print 64bit integers with wine_dbgstr_longlong.
by Alexandre Julliard
18 Aug '06
18 Aug '06
Module: wine Branch: master Commit: 684b6c24a319cae1da5b2283ca3e55c62e55ae31 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=684b6c24a319cae1da5b228…
Author: Stefan Leichter <Stefan.Leichter(a)camline.com> Date: Thu Aug 17 18:57:42 2006 +0200 shlwapi: Print 64bit integers with wine_dbgstr_longlong. --- dlls/shlwapi/string.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/shlwapi/string.c b/dlls/shlwapi/string.c index 34cc5fa..b03bdfb 100644 --- a/dlls/shlwapi/string.c +++ b/dlls/shlwapi/string.c @@ -1563,7 +1563,7 @@ LPSTR WINAPI StrFormatKBSizeA(LONGLONG l char szBuff[256], *szOut = szBuff + sizeof(szBuff) - 1; LONGLONG ulKB = (llBytes + 1023) >> 10; - TRACE("(%lld,%p,%d)\n", llBytes, lpszDest, cchMax); + TRACE("(0x%s,%p,%d)\n", wine_dbgstr_longlong(llBytes), lpszDest, cchMax); *szOut-- = '\0'; *szOut-- = 'B'; @@ -1591,7 +1591,7 @@ LPWSTR WINAPI StrFormatKBSizeW(LONGLONG WCHAR szBuff[256], *szOut = szBuff + sizeof(szBuff)/sizeof(WCHAR) - 1; LONGLONG ulKB = (llBytes + 1023) >> 10; - TRACE("(%lld,%p,%d)\n", llBytes, lpszDest, cchMax); + TRACE("(0x%s,%p,%d)\n", wine_dbgstr_longlong(llBytes), lpszDest, cchMax); *szOut-- = '\0'; *szOut-- = 'B'; @@ -2265,7 +2265,7 @@ #define PB (KB*KB*KB*KB*KB) double dBytes; UINT i = 0; - TRACE("(%lld,%p,%d)\n", llBytes, lpszDest, cchMax); + TRACE("(0x%s,%p,%d)\n", wine_dbgstr_longlong(llBytes), lpszDest, cchMax); if (!lpszDest || !cchMax) return lpszDest;
1
0
0
0
Huw Davies : rpcrt4: Remember to skip over the conformance description.
by Alexandre Julliard
18 Aug '06
18 Aug '06
Module: wine Branch: master Commit: 59be6e06000fe7424856697544b47c017acad993 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=59be6e06000fe7424856697…
Author: Huw Davies <huw(a)codeweavers.com> Date: Thu Aug 17 15:31:32 2006 +0100 rpcrt4: Remember to skip over the conformance description. --- dlls/rpcrt4/ndr_marshall.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/rpcrt4/ndr_marshall.c b/dlls/rpcrt4/ndr_marshall.c index 9657ab9..b83fd1e 100644 --- a/dlls/rpcrt4/ndr_marshall.c +++ b/dlls/rpcrt4/ndr_marshall.c @@ -2365,6 +2365,8 @@ void WINAPI NdrConformantArrayFree(PMIDL TRACE("(%p,%p,%p)\n", pStubMsg, pMemory, pFormat); if (pFormat[0] != RPC_FC_CARRAY) FIXME("format=%d\n", pFormat[0]); + pFormat = ComputeConformance(pStubMsg, pMemory, pFormat+4, 0); + EmbeddedPointerFree(pStubMsg, pMemory, pFormat); }
1
0
0
0
Oleg Krylov : comctl32: Fix ImageList_Replace function to correctly apply image mask.
by Alexandre Julliard
18 Aug '06
18 Aug '06
Module: wine Branch: master Commit: 496d63473520ed203c4ba1f2d371b725d7bb879b URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=496d63473520ed203c4ba1f…
Author: Oleg Krylov <oleg.krylov(a)gmail.com> Date: Thu Aug 17 16:08:22 2006 +0300 comctl32: Fix ImageList_Replace function to correctly apply image mask. --- dlls/comctl32/imagelist.c | 24 +++++++++++++++--------- 1 files changed, 15 insertions(+), 9 deletions(-) diff --git a/dlls/comctl32/imagelist.c b/dlls/comctl32/imagelist.c index cbd8f34..cc3078e 100644 --- a/dlls/comctl32/imagelist.c +++ b/dlls/comctl32/imagelist.c @@ -2158,6 +2158,7 @@ ImageList_Replace (HIMAGELIST himl, INT { HDC hdcImage; BITMAP bmp; + HBITMAP hOldBitmap; TRACE("%p %d %p %p\n", himl, i, hbmImage, hbmMask); @@ -2175,29 +2176,34 @@ ImageList_Replace (HIMAGELIST himl, INT GetObjectA (hbmImage, sizeof(BITMAP), (LPVOID)&bmp); /* Replace Image */ - SelectObject (hdcImage, hbmImage); + hOldBitmap = SelectObject (hdcImage, hbmImage); StretchBlt (himl->hdcImage, i * himl->cx, 0, himl->cx, himl->cy, hdcImage, 0, 0, bmp.bmWidth, bmp.bmHeight, SRCCOPY); if (himl->hbmMask) { - /* Replace Mask */ - SelectObject (hdcImage, hbmMask); + HDC hdcTemp; + HBITMAP hOldBitmapTemp; - StretchBlt (himl->hdcMask, i * himl->cx, 0, himl->cx, himl->cy, - hdcImage, 0, 0, bmp.bmWidth, bmp.bmHeight, SRCCOPY); + hdcTemp = CreateCompatibleDC(0); + hOldBitmapTemp = SelectObject(hdcTemp, hbmMask); + StretchBlt (himl->hdcMask, i * himl->cx, 0, himl->cx, himl->cy, + hdcTemp, 0, 0, bmp.bmWidth, bmp.bmHeight, SRCCOPY); + SelectObject(hdcTemp, hOldBitmapTemp); + DeleteDC(hdcTemp); /* Remove the background from the image */ - StretchBlt (himl->hdcImage, - i*himl->cx, 0, himl->cx, himl->cy, - hdcImage, - 0, 0, bmp.bmWidth, bmp.bmHeight, + BitBlt (himl->hdcImage, + i*himl->cx, 0, bmp.bmWidth, bmp.bmHeight, + himl->hdcMask, + i*himl->cx, 0, 0x220326); /* NOTSRCAND */ } + SelectObject (hdcImage, hOldBitmap); DeleteDC (hdcImage); return TRUE;
1
0
0
0
Paul Vriens : wintrust.h: Added some defines.
by Alexandre Julliard
18 Aug '06
18 Aug '06
Module: wine Branch: master Commit: 5ffb0174b049ea9e4cd5d392bccb00be2414c3ec URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=5ffb0174b049ea9e4cd5d39…
Author: Paul Vriens <Paul.Vriens(a)xs4all.nl> Date: Fri Aug 18 08:42:47 2006 +0200 wintrust.h: Added some defines. --- include/wintrust.h | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/include/wintrust.h b/include/wintrust.h index 26be598..3d2ba8c 100644 --- a/include/wintrust.h +++ b/include/wintrust.h @@ -76,6 +76,20 @@ typedef struct WINTRUST_CERT_INFO_ FILETIME* psftVerifyAsOf; } WINTRUST_CERT_INFO, *PWINTRUST_CERT_INFO; +/* dwUIChoice */ +#define WTD_UI_ALL 1 +#define WTD_UI_NONE 2 +#define WTD_UI_NOBAD 3 +#define WTD_UI_NOGOOD 4 +/* fdwRevocationChecks */ +#define WTD_REVOKE_NONE 0 +#define WTD_REVOKE_WHOLECHAIN 1 +/* dwUnionChoice */ +#define WTD_CHOICE_FILE 1 +#define WTD_CHOICE_CATALOG 2 +#define WTD_CHOICE_BLOB 3 +#define WTD_CHOICE_SIGNER 4 +#define WTD_CHOICE_CERT 5 typedef struct _WINTRUST_DATA {
1
0
0
0
Paul Vriens : secur32: Make tests loadable on NT4.
by Alexandre Julliard
18 Aug '06
18 Aug '06
Module: wine Branch: master Commit: e1b1fa757cc7f83ca63ecd8b7efc0752d8c9a0fb URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=e1b1fa757cc7f83ca63ecd8…
Author: Paul Vriens <Paul.Vriens(a)xs4all.nl> Date: Thu Aug 17 13:42:28 2006 +0200 secur32: Make tests loadable on NT4. --- dlls/secur32/tests/Makefile.in | 2 - dlls/secur32/tests/schannel.c | 101 +++++++++++++++++++++++++--------------- 2 files changed, 63 insertions(+), 40 deletions(-) Diff:
http://source.winehq.org/git/?p=wine.git;a=commitdiff;h=e1b1fa757cc7f83ca63…
1
0
0
0
Alexandre Julliard : user: Defer all ExitWindowsEx processing to wineboot.
by Alexandre Julliard
18 Aug '06
18 Aug '06
Module: wine Branch: master Commit: 8653598a662258c8809d85a77c337cd439e5cb6e URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=8653598a662258c8809d85a…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Aug 17 20:54:21 2006 +0200 user: Defer all ExitWindowsEx processing to wineboot. --- dlls/user/user_main.c | 209 +++++-------------------------------------- programs/explorer/desktop.c | 7 - 2 files changed, 23 insertions(+), 193 deletions(-) diff --git a/dlls/user/user_main.c b/dlls/user/user_main.c index 743bded..4a2915a 100644 --- a/dlls/user/user_main.c +++ b/dlls/user/user_main.c @@ -26,7 +26,6 @@ #include "winbase.h" #include "wingdi.h" #include "winuser.h" #include "winreg.h" -#include "tlhelp32.h" #include "controls.h" #include "user_private.h" @@ -284,201 +283,39 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWO /*********************************************************************** - * USER_GetProcessHandleList(Internal) - */ -static HANDLE *USER_GetProcessHandleList(void) -{ - DWORD count, i, n; - HANDLE *list; - PROCESSENTRY32 pe; - HANDLE hSnapshot; - BOOL r; - - hSnapshot = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 ); - if (!hSnapshot) - { - ERR("cannot create snapshot\n"); - return FALSE; - } - - /* count the number of processes plus one */ - for (count=0; ;count++) - { - pe.dwSize = sizeof pe; - if (count) - r = Process32Next( hSnapshot, &pe ); - else - r = Process32First( hSnapshot, &pe ); - if (!r) - break; - } - - /* allocate memory make a list of the process handles */ - list = HeapAlloc( GetProcessHeap(), 0, (count+1)*sizeof(HANDLE) ); - n=0; - for (i=0; i<count; i++) - { - pe.dwSize = sizeof pe; - if (i) - r = Process32Next( hSnapshot, &pe ); - else - r = Process32First( hSnapshot, &pe ); - if (!r) - break; - - /* don't kill ourselves */ - if (GetCurrentProcessId() == pe.th32ProcessID ) - continue; - - /* open the process so we don't can track it */ - list[n] = OpenProcess( PROCESS_QUERY_INFORMATION| - PROCESS_TERMINATE, - FALSE, pe.th32ProcessID ); - - /* check it didn't terminate already */ - if( list[n] ) - n++; - } - list[n]=0; - CloseHandle( hSnapshot ); - - if (!r) - ERR("Error enumerating processes\n"); - - TRACE("return %lu processes\n", n); - - return list; -} - - -/*********************************************************************** - * USER_KillProcesses (Internal) - */ -static DWORD USER_KillProcesses(void) -{ - DWORD n, r, i; - HANDLE *handles; - const DWORD dwShutdownTimeout = 10000; - - TRACE("terminating other processes\n"); - - /* kill it and add it to our list of object to wait on */ - handles = USER_GetProcessHandleList(); - for (n=0; handles && handles[n]; n++) - TerminateProcess( handles[n], 0 ); - - /* wait for processes to exit */ - for (i=0; i<n; i+=MAXIMUM_WAIT_OBJECTS) - { - int n_objs = ((n-i)>MAXIMUM_WAIT_OBJECTS) ? MAXIMUM_WAIT_OBJECTS : (n-i); - r = WaitForMultipleObjects( n_objs, &handles[i], TRUE, dwShutdownTimeout ); - if (r==WAIT_TIMEOUT) - ERR("wait failed!\n"); - } - - /* close the handles */ - for (i=0; i<n; i++) - CloseHandle( handles[i] ); - - HeapFree( GetProcessHeap(), 0, handles ); - - return n; -} - - -/*********************************************************************** - * USER_DoShutdown (Internal) - */ -static void USER_DoShutdown(void) -{ - DWORD i, n; - const DWORD nRetries = 10; - - for (i=0; i<nRetries; i++) - { - n = USER_KillProcesses(); - TRACE("Killed %ld processes, attempt %ld\n", n, i); - if(!n) - break; - } -} - - -/*********************************************************************** * ExitWindowsEx (USER32.@) */ BOOL WINAPI ExitWindowsEx( UINT flags, DWORD reason ) { - TRACE("(%x,%lx)\n", flags, reason); - - if (!WIN_IsCurrentThread( GetDesktopWindow() )) - { - BOOL ret = PostMessageW( GetDesktopWindow(), WM_USER + 666, - MAKEWPARAM( flags, 0xbabe ), reason); - if (ret) - return TRUE; - /* this can happen if explorer hasn't been started or created the - * desktop window yet */ - WARN("PostMessage failed with error %ld\n", GetLastError()); - /* fall through to doing it in the same process */ - } + static const WCHAR winebootW[] = { '\\','w','i','n','e','b','o','o','t',0 }; + static const WCHAR killW[] = { ' ','-','-','k','i','l','l',0 }; + static const WCHAR end_sessionW[] = { ' ','-','-','e','n','d','-','s','e','s','s','i','o','n',0 }; + static const WCHAR forceW[] = { ' ','-','-','f','o','r','c','e',0 }; + static const WCHAR shutdownW[] = { ' ','-','-','s','h','u','t','d','o','w','n',0 }; - if ((flags & EWX_FORCE) == 0) - { - HWND *list; + WCHAR cmdline[MAX_PATH + 64]; + PROCESS_INFORMATION pi; + STARTUPINFOW si; - /* We have to build a list of all windows first, as in EnumWindows */ - list = WIN_ListChildren( GetDesktopWindow() ); - if (list) - { - HWND *phwnd; - UINT send_flags; - DWORD_PTR result=1; - - /* Send a WM_QUERYENDSESSION / WM_ENDSESSION message pair to - * each window. Note: it might be better to send all the - * WM_QUERYENDSESSION messages, aggregate the results and then - * send all the WM_ENDSESSION messages with the results but - * that's not what Windows does. - */ - send_flags=(flags & EWX_FORCEIFHUNG) ? SMTO_ABORTIFHUNG : SMTO_NORMAL; - for (phwnd = list; *phwnd; phwnd++) - { - /* Make sure that the window still exists */ - if (!IsWindow( *phwnd )) continue; - if (SendMessageTimeoutW( *phwnd, WM_QUERYENDSESSION, 0, 0, send_flags, 0, &result)) - { - DWORD_PTR dummy; - SendMessageTimeoutW( *phwnd, WM_ENDSESSION, result, 0, send_flags, 0, &dummy ); - if (!result) break; - } - } - HeapFree( GetProcessHeap(), 0, list ); + GetSystemDirectoryW( cmdline, MAX_PATH ); + lstrcatW( cmdline, winebootW ); - if (!result) - return TRUE; - } + if (flags & EWX_FORCE) lstrcatW( cmdline, killW ); + else + { + lstrcatW( cmdline, end_sessionW ); + if (flags & EWX_FORCEIFHUNG) lstrcatW( cmdline, forceW ); } + if (!(flags & EWX_REBOOT)) lstrcatW( cmdline, shutdownW ); - /* USER_DoShutdown will kill all processes except the current process */ - USER_DoShutdown(); - - if (flags & EWX_REBOOT) + memset( &si, 0, sizeof si ); + si.cb = sizeof si; + if (!CreateProcessW( NULL, cmdline, NULL, NULL, FALSE, DETACHED_PROCESS, NULL, NULL, &si, &pi )) { - WCHAR winebootW[] = { 'w','i','n','e','b','o','o','t',0 }; - PROCESS_INFORMATION pi; - STARTUPINFOW si; - - memset( &si, 0, sizeof si ); - si.cb = sizeof si; - if (CreateProcessW( NULL, winebootW, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi )) - { - CloseHandle( pi.hProcess ); - CloseHandle( pi.hThread ); - } - else - MESSAGE("wine: Failed to start wineboot\n"); + ERR( "Failed to run %s\n", debugstr_w(cmdline) ); + return FALSE; } - + CloseHandle( pi.hProcess ); + CloseHandle( pi.hThread ); return TRUE; } diff --git a/programs/explorer/desktop.c b/programs/explorer/desktop.c index e552599..0b8bfbb 100644 --- a/programs/explorer/desktop.c +++ b/programs/explorer/desktop.c @@ -64,13 +64,6 @@ static LRESULT WINAPI desktop_wnd_proc( } return 0; - /* simple check to prevent applications accidentally triggering the - * ExitWindowsEx code if they send random messages to the desktop window */ - case WM_USER + 666: - if (HIWORD(wp) == 0xbabe) - return ExitWindowsEx( LOWORD(wp), lp ); - return DefWindowProcW( hwnd, message, wp, lp ); - default: return DefWindowProcW( hwnd, message, wp, lp ); }
1
0
0
0
← Newer
1
...
24
25
26
27
28
29
30
...
75
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
Results per page:
10
25
50
100
200