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
June 2008
----- 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
944 discussions
Start a n
N
ew thread
Gerald Pfeifer : iphlpapi: Include <netinet/in_systm.h> if present.
by Alexandre Julliard
30 Jun '08
30 Jun '08
Module: wine Branch: master Commit: 3e57f56fd2e862a2ec424d310304232ff2f9ffdb URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3e57f56fd2e862a2ec424d310…
Author: Gerald Pfeifer <gerald(a)pfeifer.com> Date: Fri Jun 27 13:05:00 2008 +0200 iphlpapi: Include <netinet/in_systm.h> if present. --- dlls/iphlpapi/ipstats.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/iphlpapi/ipstats.c b/dlls/iphlpapi/ipstats.c index 5e40219..3fc91eb 100644 --- a/dlls/iphlpapi/ipstats.c +++ b/dlls/iphlpapi/ipstats.c @@ -79,6 +79,9 @@ #ifdef HAVE_NETINET_TCP_TIMER_H #include <netinet/tcp_timer.h> #endif +#ifdef HAVE_NETINET_IN_SYSTM_H +#include <netinet/in_systm.h> +#endif #ifdef HAVE_NETINET_IP_ICMP_H #include <netinet/ip_icmp.h> #endif
1
0
0
0
Vladimir Pankratov : winhlp32: Update Russian translation.
by Alexandre Julliard
30 Jun '08
30 Jun '08
Module: wine Branch: master Commit: 2025d145038e82767eee6a77473c0da34f014b0e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2025d145038e82767eee6a774…
Author: Vladimir Pankratov <scriptkid(a)mail.ru> Date: Sat Jun 28 00:08:08 2008 +0500 winhlp32: Update Russian translation. --- programs/winhlp32/Ru.rc | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/programs/winhlp32/Ru.rc b/programs/winhlp32/Ru.rc index 0d32728..53f2d17 100644 --- a/programs/winhlp32/Ru.rc +++ b/programs/winhlp32/Ru.rc @@ -38,21 +38,21 @@ MAIN_MENU MENU LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT POPUP "&��������" { MENUITEM "&����������...", MNID_BKMK_DEFINE } - POPUP "&Options" { - POPUP "Help always visible" + POPUP "&���������" { + POPUP "��������� ���� �������" BEGIN - MENUITEM "Default", MNID_OPTS_HELP_DEFAULT - MENUITEM "Visible", MNID_OPTS_HELP_VISIBLE - MENUITEM "Non visible", MNID_OPTS_HELP_NONVISIBLE + MENUITEM "�� ���������", MNID_OPTS_HELP_DEFAULT + MENUITEM "�������", MNID_OPTS_HELP_VISIBLE + MENUITEM "�� �������", MNID_OPTS_HELP_NONVISIBLE END - MENUITEM "History", MNID_OPTS_HISTORY - POPUP "Fonts" + MENUITEM "�������", MNID_OPTS_HISTORY + POPUP "�����" BEGIN - MENUITEM "Small", MNID_OPTS_FONTS_SMALL - MENUITEM "Normal", MNID_OPTS_FONTS_NORMAL - MENUITEM "Large", MNID_OPTS_FONTS_LARGE + MENUITEM "������", MNID_OPTS_FONTS_SMALL + MENUITEM "�������", MNID_OPTS_FONTS_NORMAL + MENUITEM "�������", MNID_OPTS_FONTS_LARGE END - MENUITEM "Use system colors", MNID_OPTS_SYSTEM_COLORS + MENUITEM "������������ ��������� �����", MNID_OPTS_SYSTEM_COLORS } POPUP "&�������" { MENUITEM "������ &�� ������", MNID_HELP_HELPON
1
0
0
0
Vladimir Pankratov : winecfg: Update Russian translation.
by Alexandre Julliard
30 Jun '08
30 Jun '08
Module: wine Branch: master Commit: 79f4ec5cd47cba336fb5f454fc5a8fb8640c6208 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=79f4ec5cd47cba336fb5f454f…
Author: Vladimir Pankratov <scriptkid(a)mail.ru> Date: Sat Jun 28 00:07:44 2008 +0500 winecfg: Update Russian translation. --- programs/winecfg/Ru.rc | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/winecfg/Ru.rc b/programs/winecfg/Ru.rc index 7b23136..1d78053 100644 --- a/programs/winecfg/Ru.rc +++ b/programs/winecfg/Ru.rc @@ -43,9 +43,9 @@ BEGIN */ LTEXT "This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.", IDC_STATIC,119,44,124,72 - GROUPBOX " Windows Registration Information ", IDC_STATIC, 15, 110, 230, 55 - LTEXT "Owner:", IDC_STATIC, 22, 126, 40, 20 - LTEXT "Organization:", IDC_STATIC, 22, 140, 50, 20 + GROUPBOX " ��������������� ���������� Windows ", IDC_STATIC, 15, 110, 230, 55 + LTEXT "���:", IDC_STATIC, 22, 126, 40, 20 + LTEXT "�����������:", IDC_STATIC, 22, 140, 50, 20 EDITTEXT IDC_ABT_OWNER, 75, 126, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP EDITTEXT IDC_ABT_ORG, 75, 140, 160, 13, ES_AUTOHSCROLL | WS_TABSTOP END
1
0
0
0
Jacek Caban : mshtml: Added IHTMLWindow2::clearInterval implementation.
by Alexandre Julliard
30 Jun '08
30 Jun '08
Module: wine Branch: master Commit: 876153976be7ff4d128c0e5ecc70715f21ac2e6d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=876153976be7ff4d128c0e5ec…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Fri Jun 27 14:14:08 2008 -0500 mshtml: Added IHTMLWindow2::clearInterval implementation. --- dlls/mshtml/htmlwindow.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c index 766dafa..e8ed7d9 100644 --- a/dlls/mshtml/htmlwindow.c +++ b/dlls/mshtml/htmlwindow.c @@ -592,8 +592,10 @@ static HRESULT WINAPI HTMLWindow2_setInterval(IHTMLWindow2 *iface, BSTR expressi static HRESULT WINAPI HTMLWindow2_clearInterval(IHTMLWindow2 *iface, long timerID) { HTMLWindow *This = HTMLWINDOW2_THIS(iface); - FIXME("(%p)->(%ld)\n", This, timerID); - return E_NOTIMPL; + + TRACE("(%p)->(%ld)\n", This, timerID); + + return clear_task_timer(This->doc, TRUE, timerID); } static HRESULT WINAPI HTMLWindow2_put_offscreenBuffering(IHTMLWindow2 *iface, VARIANT v)
1
0
0
0
Jacek Caban : mshtml: Added IHTMLWindow2::clearTimeout implementation.
by Alexandre Julliard
30 Jun '08
30 Jun '08
Module: wine Branch: master Commit: 8d3aa6799c16d568b7b660bd1b95fc358bec56b5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8d3aa6799c16d568b7b660bd1…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Fri Jun 27 14:14:40 2008 -0500 mshtml: Added IHTMLWindow2::clearTimeout implementation. --- dlls/mshtml/htmlwindow.c | 6 ++++-- dlls/mshtml/mshtml_private.h | 1 + dlls/mshtml/task.c | 19 +++++++++++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c index 839858b..766dafa 100644 --- a/dlls/mshtml/htmlwindow.c +++ b/dlls/mshtml/htmlwindow.c @@ -197,8 +197,10 @@ static HRESULT WINAPI HTMLWindow2_setTimeout(IHTMLWindow2 *iface, BSTR expressio static HRESULT WINAPI HTMLWindow2_clearTimeout(IHTMLWindow2 *iface, long timerID) { HTMLWindow *This = HTMLWINDOW2_THIS(iface); - FIXME("(%p)->(%ld)\n", This, timerID); - return E_NOTIMPL; + + TRACE("(%p)->(%ld)\n", This, timerID); + + return clear_task_timer(This->doc, FALSE, timerID); } static HRESULT WINAPI HTMLWindow2_alert(IHTMLWindow2 *iface, BSTR message) diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h index e6fd13d..f815b26 100644 --- a/dlls/mshtml/mshtml_private.h +++ b/dlls/mshtml/mshtml_private.h @@ -624,6 +624,7 @@ HWND get_thread_hwnd(void); void push_task(task_t*); void remove_doc_tasks(const HTMLDocument*); DWORD set_task_timer(HTMLDocument*,DWORD,BOOL,IDispatch*); +HRESULT clear_task_timer(HTMLDocument*,BOOL,DWORD); HRESULT get_typeinfo(tid_t,ITypeInfo**); void release_typelib(void); diff --git a/dlls/mshtml/task.c b/dlls/mshtml/task.c index 329c6ac..d863fba 100644 --- a/dlls/mshtml/task.c +++ b/dlls/mshtml/task.c @@ -169,6 +169,25 @@ DWORD set_task_timer(HTMLDocument *doc, DWORD msec, BOOL interval, IDispatch *di return timer->id; } +HRESULT clear_task_timer(HTMLDocument *doc, BOOL interval, DWORD id) +{ + thread_data_t *thread_data = get_thread_data(FALSE); + task_timer_t *iter; + + if(!thread_data) + return S_OK; + + LIST_FOR_EACH_ENTRY(iter, &thread_data->timer_list, task_timer_t, entry) { + if(iter->id == id && iter->doc == doc && (iter->interval == 0) == !interval) { + release_task_timer(thread_data->thread_hwnd, iter); + return S_OK; + } + } + + WARN("timet not found\n"); + return S_OK; +} + static void set_downloading(HTMLDocument *doc) { IOleCommandTarget *olecmd;
1
0
0
0
Jacek Caban : mshtml: Added IHTMLWindow3::setInterval implementation.
by Alexandre Julliard
30 Jun '08
30 Jun '08
Module: wine Branch: master Commit: 74f29f10878ef423c60121c5a383074880d844f7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=74f29f10878ef423c60121c5a…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Fri Jun 27 14:11:38 2008 -0500 mshtml: Added IHTMLWindow3::setInterval implementation. --- dlls/mshtml/htmlwindow.c | 13 ++++++---- dlls/mshtml/mshtml_private.h | 2 +- dlls/mshtml/task.c | 50 ++++++++++++++++++++++++++--------------- 3 files changed, 41 insertions(+), 24 deletions(-) diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c index c76c132..839858b 100644 --- a/dlls/mshtml/htmlwindow.c +++ b/dlls/mshtml/htmlwindow.c @@ -846,7 +846,8 @@ static HRESULT WINAPI HTMLWindow3_detachEvent(IHTMLWindow3 *iface, BSTR event, I return E_NOTIMPL; } -static HRESULT window_set_timer(HTMLWindow *This, VARIANT *expr, long msec, VARIANT *language, long *timer_id) +static HRESULT window_set_timer(HTMLWindow *This, VARIANT *expr, long msec, VARIANT *language, + BOOL interval, long *timer_id) { IDispatch *disp = NULL; @@ -868,7 +869,7 @@ static HRESULT window_set_timer(HTMLWindow *This, VARIANT *expr, long msec, VARI if(!disp) return E_FAIL; - *timer_id = set_task_timer(This->doc, msec, disp); + *timer_id = set_task_timer(This->doc, msec, interval, disp); IDispatch_Release(disp); return S_OK; @@ -881,15 +882,17 @@ static HRESULT WINAPI HTMLWindow3_setTimeout(IHTMLWindow3 *iface, VARIANT *expre TRACE("(%p)->(%p(%d) %ld %p %p)\n", This, expression, V_VT(expression), msec, language, timerID); - return window_set_timer(This, expression, msec, language, timerID); + return window_set_timer(This, expression, msec, language, FALSE, timerID); } static HRESULT WINAPI HTMLWindow3_setInterval(IHTMLWindow3 *iface, VARIANT *expression, long msec, VARIANT *language, long *timerID) { HTMLWindow *This = HTMLWINDOW3_THIS(iface); - FIXME("(%p)->(%p %ld %p %p)\n", This, expression, msec, language, timerID); - return E_NOTIMPL; + + TRACE("(%p)->(%p %ld %p %p)\n", This, expression, msec, language, timerID); + + return window_set_timer(This, expression, msec, language, TRUE, timerID); } static HRESULT WINAPI HTMLWindow3_print(IHTMLWindow3 *iface) diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h index 7b2bf9e..e6fd13d 100644 --- a/dlls/mshtml/mshtml_private.h +++ b/dlls/mshtml/mshtml_private.h @@ -623,7 +623,7 @@ thread_data_t *get_thread_data(BOOL); HWND get_thread_hwnd(void); void push_task(task_t*); void remove_doc_tasks(const HTMLDocument*); -DWORD set_task_timer(HTMLDocument*,DWORD,IDispatch*); +DWORD set_task_timer(HTMLDocument*,DWORD,BOOL,IDispatch*); HRESULT get_typeinfo(tid_t,ITypeInfo**); void release_typelib(void); diff --git a/dlls/mshtml/task.c b/dlls/mshtml/task.c index f9969c5..329c6ac 100644 --- a/dlls/mshtml/task.c +++ b/dlls/mshtml/task.c @@ -43,6 +43,7 @@ typedef struct { HTMLDocument *doc; DWORD id; DWORD time; + DWORD interval; IDispatch *disp; struct list entry; @@ -123,7 +124,29 @@ void remove_doc_tasks(const HTMLDocument *doc) } } -DWORD set_task_timer(HTMLDocument *doc, DWORD msec, IDispatch *disp) +static BOOL queue_timer(thread_data_t *thread_data, task_timer_t *timer) +{ + task_timer_t *iter; + + if(list_empty(&thread_data->timer_list) + || LIST_ENTRY(list_head(&thread_data->timer_list), task_timer_t, entry)->time > timer->time) { + + list_add_head(&thread_data->timer_list, &timer->entry); + return TRUE; + } + + LIST_FOR_EACH_ENTRY(iter, &thread_data->timer_list, task_timer_t, entry) { + if(iter->time > timer->time) { + list_add_tail(&iter->entry, &timer->entry); + return FALSE; + } + } + + list_add_tail(&thread_data->timer_list, &timer->entry); + return FALSE; +} + +DWORD set_task_timer(HTMLDocument *doc, DWORD msec, BOOL interval, IDispatch *disp) { thread_data_t *thread_data = get_thread_data(TRUE); task_timer_t *timer; @@ -135,27 +158,13 @@ DWORD set_task_timer(HTMLDocument *doc, DWORD msec, IDispatch *disp) timer->id = id_cnt++; timer->doc = doc; timer->time = tc + msec; + timer->interval = interval ? msec : 0; IDispatch_AddRef(disp); timer->disp = disp; - if(list_empty(&thread_data->timer_list) - || LIST_ENTRY(list_head(&thread_data->timer_list), task_timer_t, entry)->time > timer->time) { - - list_add_head(&thread_data->timer_list, &timer->entry); + if(queue_timer(thread_data, timer)) SetTimer(thread_data->thread_hwnd, TIMER_ID, msec, NULL); - }else { - task_timer_t *iter; - - LIST_FOR_EACH_ENTRY(iter, &thread_data->timer_list, task_timer_t, entry) { - if(iter->time > timer->time) { - list_add_tail(&iter->entry, &timer->entry); - return timer->id; - } - } - - list_add_tail(&thread_data->timer_list, &timer->entry); - } return timer->id; } @@ -354,7 +363,12 @@ static LRESULT process_timer(void) call_disp_func(timer->doc, timer->disp); - release_task_timer(thread_data->thread_hwnd, timer); + if(timer->interval) { + timer->time += timer->interval; + queue_timer(thread_data, timer); + }else { + release_task_timer(thread_data->thread_hwnd, timer); + } } KillTimer(thread_data->thread_hwnd, TIMER_ID);
1
0
0
0
Jacek Caban : mshtml: Forward IHTMLWindow2::setInterval to IHTMLWindow3.
by Alexandre Julliard
30 Jun '08
30 Jun '08
Module: wine Branch: master Commit: 0d56f1058fbcf671d6f5fde23235f4c4cbe08b99 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0d56f1058fbcf671d6f5fde23…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Fri Jun 27 14:10:23 2008 -0500 mshtml: Forward IHTMLWindow2::setInterval to IHTMLWindow3. --- dlls/mshtml/htmlwindow.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c index 32e0689..c76c132 100644 --- a/dlls/mshtml/htmlwindow.c +++ b/dlls/mshtml/htmlwindow.c @@ -578,8 +578,13 @@ static HRESULT WINAPI HTMLWindow2_setInterval(IHTMLWindow2 *iface, BSTR expressi long msec, VARIANT *language, long *timerID) { HTMLWindow *This = HTMLWINDOW2_THIS(iface); - FIXME("(%p)->(%s %ld %p %p)\n", This, debugstr_w(expression), msec, language, timerID); - return E_NOTIMPL; + VARIANT expr; + + TRACE("(%p)->(%s %ld %p %p)\n", This, debugstr_w(expression), msec, language, timerID); + + V_VT(&expr) = VT_BSTR; + V_BSTR(&expr) = expression; + return IHTMLWindow3_setInterval(HTMLWINDOW3(This), &expr, msec, language, timerID); } static HRESULT WINAPI HTMLWindow2_clearInterval(IHTMLWindow2 *iface, long timerID)
1
0
0
0
Jacek Caban : mshtml: Added VT_BSTR support to IHTMLWindow3::setTimeout.
by Alexandre Julliard
30 Jun '08
30 Jun '08
Module: wine Branch: master Commit: 44223acceb78c1c6cbe056d67d8182e1dbf9254e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=44223acceb78c1c6cbe056d67…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Fri Jun 27 14:10:04 2008 -0500 mshtml: Added VT_BSTR support to IHTMLWindow3::setTimeout. Resend without test depending on JScript. --- dlls/mshtml/htmlwindow.c | 35 +++++++++++++++++++++++++++-------- 1 files changed, 27 insertions(+), 8 deletions(-) diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c index 6e1d092..32e0689 100644 --- a/dlls/mshtml/htmlwindow.c +++ b/dlls/mshtml/htmlwindow.c @@ -841,25 +841,44 @@ static HRESULT WINAPI HTMLWindow3_detachEvent(IHTMLWindow3 *iface, BSTR event, I return E_NOTIMPL; } -static HRESULT WINAPI HTMLWindow3_setTimeout(IHTMLWindow3 *iface, VARIANT *expression, long msec, - VARIANT *language, long *timerID) +static HRESULT window_set_timer(HTMLWindow *This, VARIANT *expr, long msec, VARIANT *language, long *timer_id) { - HTMLWindow *This = HTMLWINDOW3_THIS(iface); - - TRACE("(%p)->(%p(%d) %ld %p %p)\n", This, expression, V_VT(expression), msec, language, timerID); + IDispatch *disp = NULL; - switch(V_VT(expression)) { + switch(V_VT(expr)) { case VT_DISPATCH: - *timerID = set_task_timer(This->doc, msec, V_DISPATCH(expression)); + disp = V_DISPATCH(expr); + IDispatch_AddRef(disp); + break; + + case VT_BSTR: + disp = script_parse_event(This->doc, V_BSTR(expr)); break; default: - FIXME("unimplemented vt=%d\n", V_VT(expression)); + FIXME("unimplemented vt=%d\n", V_VT(expr)); + return E_NOTIMPL; } + if(!disp) + return E_FAIL; + + *timer_id = set_task_timer(This->doc, msec, disp); + IDispatch_Release(disp); + return S_OK; } +static HRESULT WINAPI HTMLWindow3_setTimeout(IHTMLWindow3 *iface, VARIANT *expression, long msec, + VARIANT *language, long *timerID) +{ + HTMLWindow *This = HTMLWINDOW3_THIS(iface); + + TRACE("(%p)->(%p(%d) %ld %p %p)\n", This, expression, V_VT(expression), msec, language, timerID); + + return window_set_timer(This, expression, msec, language, timerID); +} + static HRESULT WINAPI HTMLWindow3_setInterval(IHTMLWindow3 *iface, VARIANT *expression, long msec, VARIANT *language, long *timerID) {
1
0
0
0
Jacek Caban : oleaut32: Added test showing need to QueryInterface on dual interface in ITypeInfo: :Invoke.
by Alexandre Julliard
30 Jun '08
30 Jun '08
Module: wine Branch: master Commit: 6971db7ee32451e2add828ad8f35d0d148013ea6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6971db7ee32451e2add828ad8…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Fri Jun 27 14:09:29 2008 -0500 oleaut32: Added test showing need to QueryInterface on dual interface in ITypeInfo::Invoke. --- dlls/oleaut32/tests/tmarshal.c | 218 +++++++++++++++++++++++++++++--- dlls/oleaut32/tests/tmarshal.idl | 22 ++++ dlls/oleaut32/tests/tmarshal_dispids.h | 1 + 3 files changed, 222 insertions(+), 19 deletions(-) diff --git a/dlls/oleaut32/tests/tmarshal.c b/dlls/oleaut32/tests/tmarshal.c index 3812b72..7ddbe75 100644 --- a/dlls/oleaut32/tests/tmarshal.c +++ b/dlls/oleaut32/tests/tmarshal.c @@ -18,6 +18,7 @@ */ #define COBJMACROS +#define CONST_VTABLE #include <windows.h> #include <ocidl.h> @@ -210,6 +211,72 @@ static void end_host_object(DWORD tid, HANDLE thread) CloseHandle(thread); } +static ItestDual TestDual, TestDualDisp; + +static HRESULT WINAPI TestDual_QueryInterface(ItestDual *iface, REFIID riid, void **ppvObject) +{ + if (IsEqualIID(riid, &IID_IUnknown) || IsEqualIID(riid, &IID_IDispatch)) { + *ppvObject = &TestDualDisp; + return S_OK; + }else if(IsEqualGUID(riid, &IID_ItestDual)) { + *ppvObject = &TestDual; + return S_OK; + } + + *ppvObject = NULL; + return E_NOINTERFACE; +} + +static ULONG WINAPI TestDual_AddRef(ItestDual *iface) +{ + return 2; +} + +static ULONG WINAPI TestDual_Release(ItestDual *iface) +{ + return 1; +} + +static HRESULT WINAPI TestDual_GetTypeInfoCount(ItestDual *iface, UINT *pctinfo) +{ + ok(0, "unexpected call\n"); + return E_NOTIMPL; +} + +static HRESULT WINAPI TestDual_GetTypeInfo(ItestDual *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo) +{ + ok(0, "unexpected call\n"); + return E_NOTIMPL; +} + +static HRESULT WINAPI TestDual_GetIDsOfNames(ItestDual *iface, REFIID riid, LPOLESTR *rgszNames, + UINT cNames, LCID lcid, DISPID *rgDispId) +{ + ok(0, "unexpected call\n"); + return E_NOTIMPL; +} + +static HRESULT WINAPI TestDual_Invoke(ItestDual *iface, DISPID dispIdMember, REFIID riid, LCID lcid, + WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, + UINT *puArgErr) +{ + ok(0, "unexpected call\n"); + return E_NOTIMPL; +} + +static ItestDualVtbl TestDualVtbl = { + TestDual_QueryInterface, + TestDual_AddRef, + TestDual_Release, + TestDual_GetTypeInfoCount, + TestDual_GetTypeInfo, + TestDual_GetIDsOfNames, + TestDual_Invoke +}; + +static ItestDual TestDual = { &TestDualVtbl }; +static ItestDual TestDualDisp = { &TestDualVtbl }; + typedef struct Widget { const IWidgetVtbl *lpVtbl; @@ -553,6 +620,77 @@ static const struct IWidgetVtbl Widget_VTable = Widget_CloneInterface }; +static HRESULT WINAPI StaticWidget_QueryInterface(IStaticWidget *iface, REFIID riid, void **ppvObject) +{ + if (IsEqualIID(riid, &IID_IStaticWidget) || IsEqualIID(riid, &IID_IUnknown) || IsEqualIID(riid, &IID_IDispatch)) + { + IStaticWidget_AddRef(iface); + *ppvObject = iface; + return S_OK; + } + + *ppvObject = NULL; + return E_NOINTERFACE; +} + +static ULONG WINAPI StaticWidget_AddRef(IStaticWidget *iface) +{ + return 2; +} + +static ULONG WINAPI StaticWidget_Release(IStaticWidget *iface) +{ + return 1; +} + +static HRESULT WINAPI StaticWidget_GetTypeInfoCount(IStaticWidget *iface, UINT *pctinfo) +{ + ok(0, "unexpected call\n"); + return E_NOTIMPL; +} + +static HRESULT WINAPI StaticWidget_GetTypeInfo(IStaticWidget *iface, UINT iTInfo, LCID lcid, + ITypeInfo **ppTInfo) +{ + ok(0, "unexpected call\n"); + return E_NOTIMPL; +} + +static HRESULT WINAPI StaticWidget_GetIDsOfNames(IStaticWidget *iface, REFIID riid, LPOLESTR *rgszNames, + UINT cNames, LCID lcid, DISPID *rgDispId) +{ + ok(0, "unexpected call\n"); + return E_NOTIMPL; +} + +static HRESULT WINAPI StaticWidget_Invoke(IStaticWidget *iface, DISPID dispIdMember, REFIID riid, + LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, + UINT *puArgErr) +{ + ok(0, "unexpected call\n"); + return E_NOTIMPL; +} + +static HRESULT WINAPI StaticWidget_TestDual(IStaticWidget *iface, ItestDual *p) +{ + trace("TestDual()\n"); + todo_wine + ok(p == &TestDual, "wrong ItestDual\n"); + return S_OK; +} + +static const IStaticWidgetVtbl StaticWidgetVtbl = { + StaticWidget_QueryInterface, + StaticWidget_AddRef, + StaticWidget_Release, + StaticWidget_GetTypeInfoCount, + StaticWidget_GetTypeInfo, + StaticWidget_GetIDsOfNames, + StaticWidget_Invoke, + StaticWidget_TestDual +}; + +static IStaticWidget StaticWidget = { &StaticWidgetVtbl }; typedef struct KindaEnum { @@ -577,31 +715,44 @@ static HRESULT register_current_module_typelib(void) return hr; } -static IWidget *Widget_Create(void) +static ITypeInfo *get_type_info(REFIID riid) { - Widget *This = HeapAlloc(GetProcessHeap(), 0, sizeof(*This)); - HRESULT hr; + ITypeInfo *pTypeInfo; ITypeLib *pTypeLib; + HRESULT hr; + + hr = LoadRegTypeLib(&LIBID_TestTypelib, 1, 0, LOCALE_NEUTRAL, &pTypeLib); + ok_ole_success(hr, LoadRegTypeLib); + if (FAILED(hr)) + return NULL; + + hr = ITypeLib_GetTypeInfoOfGuid(pTypeLib, riid, &pTypeInfo); + ITypeLib_Release(pTypeLib); + ok_ole_success(hr, ITypeLib_GetTypeInfoOfGuid); + if (FAILED(hr)) + return NULL; + return pTypeInfo; +} + +static IWidget *Widget_Create(void) +{ + Widget *This; + ITypeInfo *pTypeInfo; + HRESULT hr = E_FAIL; + + pTypeInfo = get_type_info(&IID_IWidget); + if(!pTypeInfo) + return NULL; + + This = HeapAlloc(GetProcessHeap(), 0, sizeof(*This)); This->lpVtbl = &Widget_VTable; This->refs = 1; + This->pDispatchUnknown = NULL; - hr = LoadRegTypeLib(&LIBID_TestTypelib, 1, 0, LOCALE_NEUTRAL, &pTypeLib); - ok_ole_success(hr, LoadRegTypeLib); - if (SUCCEEDED(hr)) - { - ITypeInfo *pTypeInfo; - hr = ITypeLib_GetTypeInfoOfGuid(pTypeLib, &IID_IWidget, &pTypeInfo); - ok_ole_success(hr, ITypeLib_GetTypeInfoOfGuid); - if (SUCCEEDED(hr)) - { - This->pDispatchUnknown = NULL; - hr = CreateStdDispatch((IUnknown *)&This->lpVtbl, This, pTypeInfo, &This->pDispatchUnknown); - ok_ole_success(hr, CreateStdDispatch); - ITypeInfo_Release(pTypeInfo); - } - ITypeLib_Release(pTypeLib); - } + hr = CreateStdDispatch((IUnknown *)&This->lpVtbl, This, pTypeInfo, &This->pDispatchUnknown); + ok_ole_success(hr, CreateStdDispatch); + ITypeInfo_Release(pTypeInfo); if (SUCCEEDED(hr)) return (IWidget *)&This->lpVtbl; @@ -1167,6 +1318,34 @@ static void test_DispCallFunc(void) IWidget_Release(pWidget); } +static void test_StaticWidget(void) +{ + ITypeInfo *type_info; + DISPPARAMS dispparams; + VARIANTARG vararg[4]; + EXCEPINFO excepinfo; + VARIANT varresult; + HRESULT hr; + + type_info = get_type_info(&IID_IStaticWidget); + + /* call TestDual */ + dispparams.cNamedArgs = 0; + dispparams.cArgs = 1; + dispparams.rgdispidNamedArgs = NULL; + dispparams.rgvarg = vararg; + V_VT(vararg) = VT_DISPATCH; + V_DISPATCH(vararg) = (IDispatch*)&TestDualDisp; + VariantInit(&varresult); + hr = ITypeInfo_Invoke(type_info, &StaticWidget, DISPID_TM_TESTDUAL, DISPATCH_METHOD, + &dispparams, &varresult, &excepinfo, NULL); + ok_ole_success(hr, IDispatch_Invoke); + ok(V_VT(&varresult) == VT_EMPTY, "vt %x\n", V_VT(&varresult)); + VariantClear(&varresult); + + ITypeInfo_Release(type_info); +} + START_TEST(tmarshal) { HRESULT hr; @@ -1178,6 +1357,7 @@ START_TEST(tmarshal) test_typelibmarshal(); test_DispCallFunc(); + test_StaticWidget(); hr = UnRegisterTypeLib(&LIBID_TestTypelib, 1, 0, LOCALE_NEUTRAL, 1); ok_ole_success(hr, UnRegisterTypeLib); diff --git a/dlls/oleaut32/tests/tmarshal.idl b/dlls/oleaut32/tests/tmarshal.idl index 9b94843..2367f28 100644 --- a/dlls/oleaut32/tests/tmarshal.idl +++ b/dlls/oleaut32/tests/tmarshal.idl @@ -48,6 +48,17 @@ library TestTypelib [ odl, + oleautomation, + dual, + uuid(3f7e06fe-0bce-46f0-8b7d-3a68393c7967) + ] + interface ItestDual : IDispatch + { + HRESULT test(); + } + + [ + odl, uuid(a1f8cae3-c947-4c5f-b57d-c87b9b5f3586), oleautomation, dual @@ -105,7 +116,18 @@ library TestTypelib [propget, id(DISPID_TM_CLONEINTERFACE)] HRESULT CloneInterface([out, retval] ISomethingFromDispatch **ppVal); + } + [ + odl, + uuid(a1f8cae3-c947-3c5f-a57c-c88b9b6f3586), + oleautomation, + dual + ] + interface IStaticWidget : IDispatch + { + [id(DISPID_TM_TESTDUAL)] + HRESULT TestDual([in] ItestDual *p); } [ diff --git a/dlls/oleaut32/tests/tmarshal_dispids.h b/dlls/oleaut32/tests/tmarshal_dispids.h index 4bf47cd..803b94b 100644 --- a/dlls/oleaut32/tests/tmarshal_dispids.h +++ b/dlls/oleaut32/tests/tmarshal_dispids.h @@ -32,5 +32,6 @@ #define DISPID_TM_VARARG 13 #define DISPID_TM_ERROR 14 #define DISPID_TM_CLONEINTERFACE 15 +#define DISPID_TM_TESTDUAL 16 #define DISPID_NOA_BSTRRET 1
1
0
0
0
Jeremy White : configure: On Solaris, libpng requires libm.
by Alexandre Julliard
30 Jun '08
30 Jun '08
Module: wine Branch: master Commit: 082e39f9514df57fa95e585a52d19a6eb2d54c1f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=082e39f9514df57fa95e585a5…
Author: Jeremy White <jwhite(a)winehq.org> Date: Fri Jun 27 13:28:45 2008 -0500 configure: On Solaris, libpng requires libm. --- configure | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 76111e1..e00a2dc 100755 --- a/configure +++ b/configure @@ -16044,7 +16044,7 @@ if test "${ac_cv_lib_soname_png+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_soname_save_LIBS=$LIBS -LIBS="-lpng $LIBS" +LIBS="-lpng -lm $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF diff --git a/configure.ac b/configure.ac index 84ffddd..d71d92d 100644 --- a/configure.ac +++ b/configure.ac @@ -1201,7 +1201,7 @@ WINE_WARNING_WITH(jpeg,[test "x$ac_cv_lib_soname_jpeg" = "x"], dnl **** Check for libpng **** if test "$ac_cv_header_png_h" = "yes" then - WINE_CHECK_SONAME(png,png_create_read_struct,,,,[[libpng[[0-9]]*]]) + WINE_CHECK_SONAME(png,png_create_read_struct,,,-lm,[[libpng[[0-9]]*]]) fi WINE_WARNING_WITH(png,[test "x$ac_cv_lib_soname_png" = "x"], [libpng development files not found, PNG won't be supported.])
1
0
0
0
← Newer
1
...
4
5
6
7
8
9
10
...
95
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
Results per page:
10
25
50
100
200