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
February 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
4 participants
696 discussions
Start a n
N
ew thread
Robert Shearman : oleaut: Fix standard font cloning.
by Alexandre Julliard
24 Feb '06
24 Feb '06
Module: wine Branch: refs/heads/master Commit: 7fbca4c1117549553c289e4cfac54b4e63d93c42 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=7fbca4c1117549553c289e4…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Thu Feb 23 19:01:02 2006 +0000 oleaut: Fix standard font cloning. Create new empty connection points on clone of the standard Font (based on a patch by Alex Villacís Lasso). --- dlls/oleaut32/olefont.c | 11 +++++++++++ dlls/oleaut32/tests/olefont.c | 17 ++++++++++++++--- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/dlls/oleaut32/olefont.c b/dlls/oleaut32/olefont.c index b213f50..a9110e7 100644 --- a/dlls/oleaut32/olefont.c +++ b/dlls/oleaut32/olefont.c @@ -1109,6 +1109,17 @@ static HRESULT WINAPI OLEFontImpl_Clone( newObject->gdiFont = CreateFontIndirectW(&logFont); + /* create new connection points */ + newObject->pPropertyNotifyCP = NULL; + newObject->pFontEventsCP = NULL; + CreateConnectionPoint((IUnknown*)newObject, &IID_IPropertyNotifySink, &newObject->pPropertyNotifyCP); + CreateConnectionPoint((IUnknown*)newObject, &IID_IFontEventsDisp, &newObject->pFontEventsCP); + + if (!newObject->pPropertyNotifyCP || !newObject->pFontEventsCP) + { + OLEFontImpl_Destroy(newObject); + return E_OUTOFMEMORY; + } /* The cloned object starts with a reference count of 1 */ newObject->ref = 1; diff --git a/dlls/oleaut32/tests/olefont.c b/dlls/oleaut32/tests/olefont.c index 5906749..1fb1596 100644 --- a/dlls/oleaut32/tests/olefont.c +++ b/dlls/oleaut32/tests/olefont.c @@ -206,7 +206,7 @@ static ULONG WINAPI FontEventsDisp_Relea return 1; } -static BOOL fonteventsdisp_invoke_called = FALSE; +static int fonteventsdisp_invoke_called = 0; static HRESULT WINAPI FontEventsDisp_Invoke( IFontEventsDisp __RPC_FAR * iface, @@ -226,7 +226,7 @@ static HRESULT WINAPI FontEventsDisp_Inv ok(V_VT(&pDispParams->rgvarg[0]) == VT_BSTR, "VT of first param should have been VT_BSTR instead of %d\n", V_VT(&pDispParams->rgvarg[0])); ok(!lstrcmpW(V_BSTR(&pDispParams->rgvarg[0]), wszBold), "String in first param should have been \"Bold\"\n"); - fonteventsdisp_invoke_called = TRUE; + fonteventsdisp_invoke_called++; return S_OK; } @@ -246,6 +246,7 @@ static IFontEventsDisp FontEventsDisp = static void test_font_events_disp(void) { IFont *pFont; + IFont *pFont2; IConnectionPointContainer *pCPC; IConnectionPoint *pCP; FONTDESC fontdesc; @@ -279,9 +280,19 @@ static void test_font_events_disp(void) hr = IFont_put_Bold(pFont, TRUE); ok_ole_success(hr, "IFont_put_Bold"); - ok(fonteventsdisp_invoke_called, "IFontEventDisp::Invoke wasn't called\n"); + ok(fonteventsdisp_invoke_called == 1, "IFontEventDisp::Invoke wasn't called once\n"); + hr = IFont_Clone(pFont, &pFont2); + ok_ole_success(hr, "IFont_Clone"); IFont_Release(pFont); + + hr = IFont_put_Bold(pFont2, TRUE); + ok_ole_success(hr, "IFont_put_Bold"); + + /* this test shows that the notification routine isn't called again */ + ok(fonteventsdisp_invoke_called == 1, "IFontEventDisp::Invoke wasn't called once\n"); + + IFont_Release(pFont2); } START_TEST(olefont)
1
0
0
0
Francois Gouget : user: Give meaningful names to the structures used to transfer
by Alexandre Julliard
24 Feb '06
24 Feb '06
Module: wine Branch: refs/heads/master Commit: 1f297893e57e0f24974065dbcb029968e3ef71af URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=1f297893e57e0f24974065d…
Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Thu Feb 23 17:57:59 2006 +0100 user: Give meaningful names to the structures used to transfer information to the test threads. --- dlls/user/tests/msg.c | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/dlls/user/tests/msg.c b/dlls/user/tests/msg.c index dd671d7..5b3cac5 100644 --- a/dlls/user/tests/msg.c +++ b/dlls/user/tests/msg.c @@ -5535,12 +5535,12 @@ static void test_message_conversion(void ok( ret, "DestroyWindow() error %ld\n", GetLastError()); } -typedef struct _thread_info +struct timer_info { HWND hWnd; HANDLE handles[2]; DWORD id; -} thread_info; +}; static VOID CALLBACK tfunc(HWND hwnd, UINT uMsg, UINT id, DWORD dwTime) { @@ -5550,7 +5550,7 @@ static VOID CALLBACK tfunc(HWND hwnd, UI static DWORD WINAPI timer_thread_proc(LPVOID x) { - thread_info *info = x; + struct timer_info *info = x; DWORD r; r = KillTimer(info->hWnd, 0x19); @@ -5565,7 +5565,7 @@ static DWORD WINAPI timer_thread_proc(LP static void test_timers(void) { - thread_info info; + struct timer_info info; DWORD id; info.hWnd = CreateWindow ("TestWindowClass", NULL, @@ -6432,7 +6432,7 @@ static const struct message WmUser[] = { { 0 } }; -struct thread_info +struct sendmsg_info { HWND hwnd; DWORD timeout; @@ -6441,7 +6441,7 @@ struct thread_info static DWORD CALLBACK send_msg_thread( LPVOID arg ) { - struct thread_info *info = arg; + struct sendmsg_info *info = arg; info->ret = SendMessageTimeoutA( info->hwnd, WM_USER, 0, 0, 0, info->timeout, NULL ); if (!info->ret) ok( GetLastError() == ERROR_TIMEOUT, "unexpected error %ld\n", GetLastError()); return 0; @@ -6466,7 +6466,7 @@ static void test_SendMessageTimeout(void { MSG msg; HANDLE thread; - struct thread_info info; + struct sendmsg_info info; DWORD tid; info.hwnd = CreateWindowA( "TestWindowClass", NULL, WS_OVERLAPPEDWINDOW, @@ -6783,7 +6783,7 @@ static const struct message WmUserChar[] #define EV_SENDMSG 1 #define EV_ACK 2 -struct thread_info_2 +struct peekmsg_info { HWND hwnd; HANDLE hevent[3]; /* 0 - start/stop, 1 - SendMessage, 2 - ack */ @@ -6792,7 +6792,7 @@ struct thread_info_2 static DWORD CALLBACK send_msg_thread_2(void *param) { DWORD ret; - struct thread_info_2 *info = param; + struct peekmsg_info *info = param; trace("thread: waiting for start\n"); WaitForSingleObject(info->hevent[EV_START_STOP], INFINITE); @@ -6830,7 +6830,7 @@ static void test_PeekMessage(void) DWORD tid, qstatus; UINT qs_all_input = QS_ALLINPUT; UINT qs_input = QS_INPUT; - struct thread_info_2 info; + struct peekmsg_info info; info.hwnd = CreateWindowA("TestWindowClass", NULL, WS_OVERLAPPEDWINDOW, 100, 100, 200, 200, 0, 0, 0, NULL);
1
0
0
0
Ulrich Czekalla : msi: When evaluating conditions, if the condition is empty or none is
by Alexandre Julliard
24 Feb '06
24 Feb '06
Module: wine Branch: refs/heads/master Commit: 2ee5a5bf7c4cc67f40a3dc7d5e8325224713dc85 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=2ee5a5bf7c4cc67f40a3dc7…
Author: Ulrich Czekalla <ulrich(a)codeweavers.com> Date: Thu Feb 23 11:33:10 2006 -0500 msi: When evaluating conditions, if the condition is empty or none is provided then treat it as being satisfied. --- dlls/msi/dialog.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c index 0a8fa50..69909a7 100644 --- a/dlls/msi/dialog.c +++ b/dlls/msi/dialog.c @@ -1991,7 +1991,7 @@ static UINT msi_dialog_control_event( MS condition = MSI_RecordGetString( rec, 5 ); r = MSI_EvaluateConditionW( dialog->package, condition ); - if( r == MSICONDITION_TRUE ) + if( r == MSICONDITION_TRUE || r == MSICONDITION_NONE ) { event = MSI_RecordGetString( rec, 3 ); arg = MSI_RecordGetString( rec, 4 );
1
0
0
0
Huw Davies : msxml3: Fix for empty node lists.
by Alexandre Julliard
24 Feb '06
24 Feb '06
Module: wine Branch: refs/heads/master Commit: 4eb389bbdf479ed762ab76015f5b0a5bdcd6f7f5 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=4eb389bbdf479ed762ab760…
Author: Huw Davies <huw(a)codeweavers.com> Date: Thu Feb 23 14:10:06 2006 +0000 msxml3: Fix for empty node lists. --- dlls/msxml3/nodelist.c | 9 +++---- dlls/msxml3/tests/domdoc.c | 58 ++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 60 insertions(+), 7 deletions(-) diff --git a/dlls/msxml3/nodelist.c b/dlls/msxml3/nodelist.c index 407c5f7..7543b75 100644 --- a/dlls/msxml3/nodelist.c +++ b/dlls/msxml3/nodelist.c @@ -61,6 +61,8 @@ static void xslt_info_init( struct xslt_ static int create_xslt_parser( struct xslt_info *info, xmlNodePtr node, const xmlChar *str ) { + if(!node) return 1; + info->sheet = xsltNewStylesheet(); if (!info->sheet) return 0; @@ -220,7 +222,7 @@ static ULONG WINAPI xmlnodelist_Release( if ( ref == 0 ) { free_xslt_info( &This->xinfo ); - xmldoc_release( This->node->doc ); + if(This->node) xmldoc_release( This->node->doc ); HeapFree( GetProcessHeap(), 0, This ); } @@ -424,7 +426,7 @@ static xmlnodelist *new_nodelist( xmlNod nodelist->enum_children = FALSE; xslt_info_init( &nodelist->xinfo ); - xmldoc_add_ref( node->doc ); + if(node) xmldoc_add_ref( node->doc ); return nodelist; } @@ -432,15 +434,12 @@ static xmlnodelist *new_nodelist( xmlNod IXMLDOMNodeList* create_nodelist( xmlNodePtr node ) { xmlnodelist *nodelist = new_nodelist( node ); - if (!node) - return NULL; return (IXMLDOMNodeList*) &nodelist->lpVtbl; } IXMLDOMNodeList* create_filtered_nodelist( xmlNodePtr node, const xmlChar *str, BOOL enum_children ) { xmlnodelist *This = new_nodelist( node ); - if (create_xslt_parser( &This->xinfo, node, str )) { This->enum_children = enum_children; diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c index 1b5eb23..6de17e2 100644 --- a/dlls/msxml3/tests/domdoc.c +++ b/dlls/msxml3/tests/domdoc.c @@ -58,6 +58,7 @@ static const WCHAR szComplete4[] = { 'p','n','=','\'','w','i','n','e',' ','2','0','0','5','0','8','0','4','\'','>','\n', 'f','n','2','.','t','x','t','\n', '<','/','p','r','>','\n', + '<','e','m','p','t','y','>','<','/','e','m','p','t','y','>','\n', '<','/','l','c','>','\n',0 }; static const WCHAR szNonExistentFile[] = { @@ -494,7 +495,7 @@ todo_wine { r = IXMLDOMNodeList_get_length( list, &count ); ok( r == S_OK, "get_length returns %08lx\n", r ); - ok( count == 2, "get_length got %ld\n", count ); + ok( count == 3, "get_length got %ld\n", count ); r = IXMLDOMNodeList_nextNode( list, &node ); ok( r == S_OK, "nextNode returned wrong code\n"); @@ -803,7 +804,7 @@ static void test_getElementsByTagName(vo ok( r == S_OK, "ret %08lx\n", r ); r = IXMLDOMNodeList_get_length( node_list, &len ); ok( r == S_OK, "ret %08lx\n", r ); - ok( len == 3, "len %ld\n", len ); + ok( len == 4, "len %ld\n", len ); IXMLDOMNodeList_Release( node_list ); SysFreeString( str ); @@ -904,6 +905,58 @@ todo_wine { IXMLDOMDocument_Release( doc ); } +static void test_get_childNodes(void) +{ + HRESULT r; + BSTR str; + VARIANT_BOOL b; + IXMLDOMDocument *doc; + IXMLDOMElement *element; + IXMLDOMNode *node, *node2; + IXMLDOMNodeList *node_list, *node_list2; + long len; + + r = CoCreateInstance( &CLSID_DOMDocument, NULL, + CLSCTX_INPROC_SERVER, &IID_IXMLDOMDocument, (LPVOID*)&doc ); + if( r != S_OK ) + return; + + str = SysAllocString( szComplete4 ); + r = IXMLDOMDocument_loadXML( doc, str, &b ); + ok( r == S_OK, "loadXML failed\n"); + ok( b == VARIANT_TRUE, "failed to load XML string\n"); + SysFreeString( str ); + + r = IXMLDOMDocument_get_documentElement( doc, &element ); + ok( r == S_OK, "ret %08lx\n", r); + + r = IXMLDOMElement_get_childNodes( element, &node_list ); + ok( r == S_OK, "ret %08lx\n", r); + + r = IXMLDOMNodeList_get_length( node_list, &len ); + ok( r == S_OK, "ret %08lx\n", r); + ok( len == 3, "len %ld\n", len); + + r = IXMLDOMNodeList_get_item( node_list, 2, &node ); + ok( r == S_OK, "ret %08lx\n", r); + + r = IXMLDOMNode_get_childNodes( node, &node_list2 ); + ok( r == S_OK, "ret %08lx\n", r); + + r = IXMLDOMNodeList_get_length( node_list2, &len ); + ok( r == S_OK, "ret %08lx\n", r); + ok( len == 0, "len %ld\n", len); + + r = IXMLDOMNodeList_get_item( node_list2, 0, &node2); + ok( r == S_FALSE, "ret %08lx\n", r); + + IXMLDOMNodeList_Release( node_list2 ); + IXMLDOMNode_Release( node ); + IXMLDOMNodeList_Release( node_list ); + IXMLDOMElement_Release( element ); + IXMLDOMDocument_Release( doc ); +} + START_TEST(domdoc) { HRESULT r; @@ -917,6 +970,7 @@ START_TEST(domdoc) test_create(); test_getElementsByTagName(); test_get_text(); + test_get_childNodes(); CoUninitialize(); }
1
0
0
0
Dmitry Timoshkov : gdi: Use "MS Sans Serif" as default sans serif font, not Arial.
by Alexandre Julliard
24 Feb '06
24 Feb '06
Module: wine Branch: refs/heads/master Commit: 69a23a608eea59624b2f37ab424e0f42b3da5baf URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=69a23a608eea59624b2f37a…
Author: Dmitry Timoshkov <dmitry(a)codeweavers.com> Date: Thu Feb 23 20:33:06 2006 +0800 gdi: Use "MS Sans Serif" as default sans serif font, not Arial. --- dlls/gdi/freetype.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/gdi/freetype.c b/dlls/gdi/freetype.c index ad0d6eb..51e92b8 100644 --- a/dlls/gdi/freetype.c +++ b/dlls/gdi/freetype.c @@ -284,10 +284,10 @@ static struct list font_list = LIST_INIT static const WCHAR defSerif[] = {'T','i','m','e','s',' ','N','e','w',' ', 'R','o','m','a','n','\0'}; -static const WCHAR defSans[] = {'A','r','i','a','l','\0'}; +static const WCHAR defSans[] = {'M','S',' ','S','a','n','s',' ','S','e','r','i','f','\0'}; static const WCHAR defFixed[] = {'C','o','u','r','i','e','r',' ','N','e','w','\0'}; -static const WCHAR defSystem[] = {'A','r','i','a','l','\0'}; +static const WCHAR defSystem[] = {'S','y','s','t','e','m','\0'}; static const WCHAR SystemW[] = {'S','y','s','t','e','m','\0'}; static const WCHAR MSSansSerifW[] = {'M','S',' ','S','a','n','s',' ', 'S','e','r','i','f','\0'};
1
0
0
0
Huw Davies : gdi32: Fallback to StretchDIBits if the driver doesn' t support BitBlt.
by Alexandre Julliard
24 Feb '06
24 Feb '06
Module: wine Branch: refs/heads/master Commit: 66a05b2aec118946d75f159237a3c73df38f2486 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=66a05b2aec118946d75f159…
Author: Huw Davies <huw(a)codeweavers.com> Date: Thu Feb 23 12:02:03 2006 +0000 gdi32: Fallback to StretchDIBits if the driver doesn't support BitBlt. --- dlls/gdi/bitblt.c | 63 +++++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 56 insertions(+), 7 deletions(-) diff --git a/dlls/gdi/bitblt.c b/dlls/gdi/bitblt.c index d15b39a..221fc6d 100644 --- a/dlls/gdi/bitblt.c +++ b/dlls/gdi/bitblt.c @@ -55,19 +55,68 @@ BOOL WINAPI BitBlt( HDC hdcDst, INT xDst BOOL ret = FALSE; DC *dcDst, *dcSrc; - if ((dcSrc = DC_GetDCUpdate( hdcSrc ))) GDI_ReleaseObj( hdcSrc ); - /* FIXME: there is a race condition here */ - if ((dcDst = DC_GetDCUpdate( hdcDst ))) + if ((dcDst = DC_GetDCUpdate( hdcDst )) && dcDst->funcs->pBitBlt) { - dcSrc = DC_GetDCPtr( hdcSrc ); + GDI_ReleaseObj( hdcDst ); + /* FIXME: there is a race condition here */ + dcSrc = DC_GetDCUpdate( hdcSrc ); + dcDst = DC_GetDCPtr( hdcDst ); TRACE("hdcSrc=%p %d,%d -> hdcDest=%p %d,%d %dx%d rop=%06lx\n", hdcSrc, xSrc, ySrc, hdcDst, xDst, yDst, width, height, rop); - if (dcDst->funcs->pBitBlt) - ret = dcDst->funcs->pBitBlt( dcDst->physDev, xDst, yDst, width, height, - dcSrc ? dcSrc->physDev : NULL, xSrc, ySrc, rop ); + + ret = dcDst->funcs->pBitBlt( dcDst->physDev, xDst, yDst, width, height, + dcSrc ? dcSrc->physDev : NULL, xSrc, ySrc, rop ); + + GDI_ReleaseObj( hdcDst ); if (dcSrc) GDI_ReleaseObj( hdcSrc ); + } + else if(dcDst && dcDst->funcs->pStretchDIBits) + { + BITMAP bm; + BITMAPINFOHEADER info_hdr; + HBITMAP hbm; + LPVOID bits; + INT lines; + GDI_ReleaseObj( hdcDst ); + + if(GetObjectType( hdcSrc ) != OBJ_MEMDC) + { + FIXME("hdcSrc isn't a memory dc. Don't yet cope with this\n"); + return FALSE; + } + + GetObjectW(GetCurrentObject(hdcSrc, OBJ_BITMAP), sizeof(bm), &bm); + + info_hdr.biSize = sizeof(info_hdr); + info_hdr.biWidth = bm.bmWidth; + info_hdr.biHeight = bm.bmHeight; + info_hdr.biPlanes = 1; + info_hdr.biBitCount = 32; + info_hdr.biCompression = BI_RGB; + info_hdr.biSizeImage = 0; + info_hdr.biXPelsPerMeter = 0; + info_hdr.biYPelsPerMeter = 0; + info_hdr.biClrUsed = 0; + info_hdr.biClrImportant = 0; + + if(!(bits = HeapAlloc(GetProcessHeap(), 0, bm.bmHeight * bm.bmWidth * 4))) + return FALSE; + + /* Select out the src bitmap before calling GetDIBits */ + hbm = SelectObject(hdcSrc, GetStockObject(DEFAULT_BITMAP)); + GetDIBits(hdcSrc, hbm, 0, bm.bmHeight, bits, (BITMAPINFO*)&info_hdr, DIB_RGB_COLORS); + SelectObject(hdcSrc, hbm); + + lines = StretchDIBits(hdcDst, xDst, yDst, width, height, xSrc, ySrc, width, height, + bits, (BITMAPINFO*)&info_hdr, DIB_RGB_COLORS, rop); + + HeapFree(GetProcessHeap(), 0, bits); + return (lines == bm.bmHeight); } + else if(dcDst) + GDI_ReleaseObj( hdcDst ); + return ret; }
1
0
0
0
Detlef Riekenberg : cfgmgr32: Forward some functions to setupapi.dll.
by Alexandre Julliard
24 Feb '06
24 Feb '06
Module: wine Branch: refs/heads/master Commit: 56247a2084174a7ba02d9a695cd582efa8ccac8f URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=56247a2084174a7ba02d9a6…
Author: Detlef Riekenberg <wine.dev(a)web.de> Date: Thu Feb 23 12:26:22 2006 +0100 cfgmgr32: Forward some functions to setupapi.dll. --- dlls/cfgmgr32/Makefile.in | 2 +- dlls/cfgmgr32/cfgmgr32.spec | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dlls/cfgmgr32/Makefile.in b/dlls/cfgmgr32/Makefile.in index 597f662..d128841 100644 --- a/dlls/cfgmgr32/Makefile.in +++ b/dlls/cfgmgr32/Makefile.in @@ -4,7 +4,7 @@ SRCDIR = @srcdir@ VPATH = @srcdir@ MODULE = cfgmgr32.dll IMPORTLIB = libcfgmgr32.$(IMPLIBEXT) -IMPORTS = kernel32 +IMPORTS = setupapi kernel32 C_SRCS = \ main.c diff --git a/dlls/cfgmgr32/cfgmgr32.spec b/dlls/cfgmgr32/cfgmgr32.spec index 6f7a877..2d53dd1 100644 --- a/dlls/cfgmgr32/cfgmgr32.spec +++ b/dlls/cfgmgr32/cfgmgr32.spec @@ -8,7 +8,7 @@ @ stub CM_Add_Res_Des @ stub CM_Add_Res_Des_Ex @ stub CM_Connect_MachineA -@ stub CM_Connect_MachineW +@ stdcall CM_Connect_MachineW(wstr ptr) setupapi.CM_Connect_MachineW @ stub CM_Create_DevNodeA @ stub CM_Create_DevNodeW @ stub CM_Create_DevNode_ExA @@ -23,7 +23,7 @@ @ stub CM_Detect_Resource_Conflict_Ex @ stub CM_Disable_DevNode @ stub CM_Disable_DevNode_Ex -@ stub CM_Disconnect_Machine +@ stdcall CM_Disconnect_Machine(long) setupapi.CM_Disconnect_Machine @ stub CM_Dup_Range_List @ stub CM_Enable_DevNode @ stub CM_Enable_DevNode_Ex @@ -177,3 +177,4 @@ @ stub CM_Unregister_Device_InterfaceW @ stub CM_Unregister_Device_Interface_ExA @ stub CM_Unregister_Device_Interface_ExW +@ stdcall CMP_WaitNoPendingInstallEvents(long) setupapi.CMP_WaitNoPendingInstallEvents
1
0
0
0
Mike McCormack : server: Add directories to recursive watches as they' re opened.
by Alexandre Julliard
23 Feb '06
23 Feb '06
Module: wine Branch: refs/heads/master Commit: 42121085985b3995692c4b40ee1b127963785223 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=42121085985b3995692c4b4…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Thu Feb 23 00:45:34 2006 +0900 server: Add directories to recursive watches as they're opened. --- server/change.c | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 106 insertions(+), 0 deletions(-) diff --git a/server/change.c b/server/change.c index 923bbce..4a8d222 100644 --- a/server/change.c +++ b/server/change.c @@ -934,6 +934,105 @@ static int inotify_adjust_changes( struc return 1; } +static char *get_basename( const char *link ) +{ + char *buffer, *name = NULL; + int r, n = 0x100; + + while (1) + { + buffer = malloc( n ); + if (!buffer) break; + + r = readlink( link, buffer, n ); + if (r < 0) + break; + + if (r < n) + { + name = buffer; + break; + } + free( buffer ); + n *= 2; + } + + if (name) + { + while (r > 0 && name[ r - 1 ] == '/' ) + r--; + name[ r ] = 0; + + name = strrchr( name, '/' ); + if (name) + name = strdup( &name[1] ); + } + + free( buffer ); + return name; +} + +static int dir_add_to_existing_notify( struct dir *dir ) +{ + struct inode *inode, *parent; + unsigned int filter = 0; + struct stat st, st_new; + char link[35], *name; + int wd, unix_fd; + + if (!inotify_fd) + return 0; + + unix_fd = get_unix_fd( dir->fd ); + + /* check if it's in the list of inodes we want to watch */ + if (-1 == fstat( unix_fd, &st_new )) + return 0; + inode = find_inode( st_new.st_dev, st_new.st_ino ); + if (inode) + return 0; + + /* lookup the parent */ + sprintf( link, "/proc/self/fd/%u/..", unix_fd ); + if (-1 == stat( link, &st )) + return 0; + + /* + * If there's no parent, stop. We could keep going adding + * ../ to the path until we hit the root of the tree or + * find a recursively watched ancestor. + * Assume it's too expensive to search up the tree for now. + */ + parent = find_inode( st.st_dev, st.st_ino ); + if (!parent) + return 0; + + if (parent->wd == -1) + return 0; + + filter = filter_from_inode( parent, 1 ); + if (!filter) + return 0; + + sprintf( link, "/proc/self/fd/%u", unix_fd ); + name = get_basename( link ); + if (!name) + return 0; + inode = inode_add( parent, st_new.st_dev, st_new.st_ino, name ); + free( name ); + if (!inode) + return 0; + + /* Couldn't find this inode at the start of the function, must be new */ + assert( inode->wd == -1 ); + + wd = inotify_add_dir( link, filter ); + if (wd != -1) + inode_set_wd( inode, wd ); + + return 1; +} + #else static int init_inotify( void ) @@ -951,6 +1050,11 @@ static void free_inode( struct inode *in assert( 0 ); } +static int dir_add_to_existing_notify( struct dir *dir ) +{ + return 0; +} + #endif /* USE_INOTIFY */ struct object *create_dir_obj( struct fd *fd ) @@ -973,6 +1077,8 @@ struct object *create_dir_obj( struct fd dir->fd = fd; set_fd_user( fd, &dir_fd_ops, &dir->obj ); + dir_add_to_existing_notify( dir ); + return &dir->obj; }
1
0
0
0
Juan Lang : wincrypt: Add OIDs.
by Alexandre Julliard
23 Feb '06
23 Feb '06
Module: wine Branch: refs/heads/master Commit: 3faa942c8fd4eb32925c2a1eb62ca12d666518a2 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=3faa942c8fd4eb32925c2a1…
Author: Juan Lang <juan_lang(a)yahoo.com> Date: Wed Feb 22 22:25:19 2006 -0800 wincrypt: Add OIDs. --- include/wincrypt.h | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 78 insertions(+), 0 deletions(-) diff --git a/include/wincrypt.h b/include/wincrypt.h index e19f6b1..8d82ebe 100644 --- a/include/wincrypt.h +++ b/include/wincrypt.h @@ -2127,6 +2127,36 @@ static const WCHAR CERT_PHYSICAL_STORE_A #define szOID_PKCS_12_LOCAL_KEY_ID "1.2.840.113549.1.9.21" #define szOID_CERT_EXTENSIONS "1.3.6.1.4.1.311.2.1.14" #define szOID_NEXT_UPDATE_LOCATION "1.3.6.1.4.1.311.10.2" +#define szOID_KP_CTL_USAGE_SIGNING "1.3.6.1.4.1.311.10.3.1" +#define szOID_KP_TIME_STAMP_SIGNING "1.3.6.1.4.1.311.10.3.2" +#ifndef szOID_SERVER_GATED_CRYPTO +#define szOID_SERVER_GATED_CRYPTO "1.3.6.1.4.1.311.10.3.3" +#endif +#define szOID_KP_EFS "1.3.6.1.4.1.311.10.3.4" +#define szOID_EFS_RECOVERY "1.3.6.1.4.1.311.10.3.4.1" +#define szOID_WHQL_CRYPTO "1.3.6.1.4.1.311.10.3.5" +#define szOID_NT5_CRYPTO "1.3.6.1.4.1.311.10.3.6" +#define szOID_OEM_WHQL_CRYPTO "1.3.6.1.4.1.311.10.3.7" +#define szOID_EMBEDDED_NT_CRYPTO "1.3.6.1.4.1.311.10.3.8" +#define szOID_ROOT_LIST_SIGNER "1.3.6.1.4.1.311.10.3.9" +#define szOID_KP_QUALIFIED_SUBORDINATION "1.3.6.1.4.1.311.10.3.10" +#define szOID_KP_KEY_RECOVERY "1.3.6.1.4.1.311.10.3.11" +#define szOID_KP_DOCUMENT_SIGNING "1.3.6.1.4.1.311.10.3.12" +#define szOID_KP_LIFETIME_SIGNING "1.3.6.1.4.1.311.10.3.13" +#define szOID_KP_MOBILE_DEVICE_SOFTWARE "1.3.6.1.4.1.311.10.3.14" +#define szOID_YESNO_TRUST_ATTR "1.3.6.1.4.1.311.10.4.1" +#ifndef szOID_DRM +#define szOID_DRM "1.3.6.1.4.1.311.10.5.1" +#endif +#ifndef szOID_DRM_INDIVIDUALIZATION +#define szOID_DRM_INDIVIDUALIZATION "1.3.6.1.4.1.311.10.5.2" +#endif +#ifndef szOID_LICENSES +#define szOID_LICENSES "1.3.6.1.4.1.311.10.6.1" +#endif +#ifndef szOID_LICENSE_SERVER +#define szOID_LICENSE_SERVER "1.3.6.1.4.1.311.10.6.2" +#endif #define szOID_REMOVE_CERTIFICATE "1.3.6.1.4.1.311.10.8.1" #define szOID_CROSS_CERT_DIST_POINTS "1.3.6.1.4.1.311.10.9.1" #define szOID_CTL "1.3.6.1.4.1.311.10.10.1" @@ -2141,7 +2171,11 @@ static const WCHAR CERT_PHYSICAL_STORE_A #define szOID_AUTO_ENROLL_CTL_USAGE "1.3.6.1.4.1.311.20.1" #define szOID_ENROLL_CERTTYPE_EXTENSION "1.3.6.1.4.1.311.20.2" #define szOID_ENROLLMENT_AGENT "1.3.6.1.4.1.311.20.2.1" +#define szOID_KP_SMARTCARD_LOGON "1.3.6.1.4.1.311.20.2.2" #define szOID_CERT_MANIFOLD "1.3.6.1.4.1.311.20.3" +#ifndef szOID_CERTSRV_CA_VERSION +#define szOID_CERTSRV_CA_VERSION "1.3.6.1.4.1.311.21.1" +#endif #define szOID_CERTSRV_PREVIOUS_CERT_HASH "1.3.6.1.4.1.311.21.2" #define szOID_CRL_VIRTUAL_BASE "1.3.6.1.4.1.311.21.3" #define szOID_CRL_NEXT_PUBLISH "1.3.6.1.4.1.311.21.4" @@ -2177,15 +2211,48 @@ static const WCHAR CERT_PHYSICAL_STORE_A #define szOID_PKIX_KP_IPSEC_TUNNEL "1.3.6.1.5.5.7.3.6" #define szOID_PKIX_KP_IPSEC_USER "1.3.6.1.5.5.7.3.7" #define szOID_PKIX_KP_TIMESTAMP_SIGNING "1.3.6.1.5.5.7.3.8" +#define szOID_PKIX_NO_SIGNATURE "1.3.6.1.5.5.7.6.2" +#define szOID_CMC "1.3.6.1.5.5.7.7" +#define szOID_CMC_STATUS_INFO "1.3.6.1.5.5.7.7.1" +#define szOID_CMC_IDENTIFICATION "1.3.6.1.5.5.7.7.2" +#define szOID_CMC_IDENTITY_PROOF "1.3.6.1.5.5.7.7.3" +#define szOID_CMC_DATA_RETURN "1.3.6.1.5.5.7.7.4" +#define szOID_CMC_TRANSACTION_ID "1.3.6.1.5.5.7.7.5" +#define szOID_CMC_SENDER_NONCE "1.3.6.1.5.5.7.7.6" +#define szOID_CMC_RECIPIENT_NONCE "1.3.6.1.5.5.7.7.7" +#define szOID_CMC_ADD_EXTENSIONS "1.3.6.1.5.5.7.7.8" +#define szOID_CMC_ENCRYPTED_POP "1.3.6.1.5.5.7.7.9" +#define szOID_CMC_DECRYPTED_POP "1.3.6.1.5.5.7.7.10" +#define szOID_CMC_LRA_POP_WITNESS "1.3.6.1.5.5.7.7.11" +#define szOID_CMC_GET_CERT "1.3.6.1.5.5.7.7.15" +#define szOID_CMC_GET_CRL "1.3.6.1.5.5.7.7.16" +#define szOID_CMC_REVOKE_REQUEST "1.3.6.1.5.5.7.7.17" +#define szOID_CMC_REG_INFO "1.3.6.1.5.5.7.7.18" +#define szOID_CMC_RESPONSE_INFO "1.3.6.1.5.5.7.7.19" +#define szOID_CMC_QUERY_PENDING "1.3.6.1.5.5.7.7.21" +#define szOID_CMC_ID_POP_LINK_RANDOM "1.3.6.1.5.5.7.7.22" +#define szOID_CMC_ID_POP_LINK_WITNESS "1.3.6.1.5.5.7.7.23" +#define szOID_CT_PKI_DATA "1.3.6.1.5.5.7.12.2" +#define szOID_CT_PKI_RESPONSE "1.3.6.1.5.5.7.12.3" +#define szOID_PKIX_ACC_DESCR "1.3.6.1.5.5.7.48" +#define szOID_PKIX_OCSP "1.3.6.1.5.5.7.48.1" +#define szOID_PKIX_CA_ISSUERS "1.3.6.1.5.5.7.48.2" #define szOID_IPSEC_KP_IKE_INTERMEDIATE "1.3.6.1.5.5.8.2.2" #ifndef szOID_SERIALIZED #define szOID_SERIALIZED "1.3.6.1.4.1.311.10.3.3.1" #endif +#define szOID_AUTO_ENROLL_CTL_USAGE "1.3.6.1.4.1.311.20.1" +#define szOID_ENROLL_CERTTYPE_EXTENSION "1.3.6.1.4.1.311.20.2" +#define szOID_ENROLLMENT_AGENT "1.3.6.1.4.1.311.20.2.1" +#ifndef szOID_KP_SMARTCARD_LOGON +#define szOID_KP_SMARTCARD_LOGON "1.3.6.1.4.1.311.20.2.2" +#endif #ifndef szOID_NT_PRINCIPAL_NAME #define szOID_NT_PRINCIPAL_NAME "1.3.6.1.4.1.311.20.2.3" #endif +#define szOID_CERT_MANIFOLD "1.3.6.1.4.1.311.20.3" #ifndef szOID_CERTSRV_CA_VERSION #define szOID_CERTSRV_CA_VERSION "1.3.6.1.4.1.311.21.1" @@ -2195,6 +2262,17 @@ static const WCHAR CERT_PHYSICAL_STORE_A #define szOID_PRODUCT_UPDATE "1.3.6.1.4.1.311.31.1" #endif +#define szOID_NETSCAPE "2.16.840.1.113730" +#define szOID_NETSCAPE_CERT_EXTENSION "2.16.840.1.113730.1" +#define szOID_NETSCAPE_CERT_TYPE "2.16.840.1.113730.1.1" +#define szOID_NETSCAPE_BASE_URL "2.16.840.1.113730.1.2" +#define szOID_NETSCAPE_REVOCATION_URL "2.16.840.1.113730.1.3" +#define szOID_NETSCAPE_CA_REVOCATION_URL "2.16.840.1.113730.1.4" +#define szOID_NETSCAPE_CERT_RENEWAL_URL "2.16.840.1.113730.1.7" +#define szOID_NETSCAPE_CA_POLICY_URL "2.16.840.1.113730.1.8" +#define szOID_NETSCAPE_SSL_SERVER_NAME "2.16.840.1.113730.1.12" +#define szOID_NETSCAPE_COMMENT "2.16.840.1.113730.1.13" + #define CRYPT_ENCODE_DECODE_NONE 0 #define X509_CERT ((LPCSTR)1) #define X509_CERT_TO_BE_SIGNED ((LPCSTR)2)
1
0
0
0
James Hawkins : setupapi: Downgrade an ERR to a WARN.
by Alexandre Julliard
23 Feb '06
23 Feb '06
Module: wine Branch: refs/heads/master Commit: ee324e694a9db27cc1800be74f094ef81339ebfe URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=ee324e694a9db27cc1800be…
Author: James Hawkins <truiken(a)gmail.com> Date: Wed Feb 22 23:39:51 2006 -0600 setupapi: Downgrade an ERR to a WARN. --- dlls/setupapi/dirid.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/setupapi/dirid.c b/dlls/setupapi/dirid.c index 60db095..038c35c 100644 --- a/dlls/setupapi/dirid.c +++ b/dlls/setupapi/dirid.c @@ -175,7 +175,7 @@ const WCHAR *DIRID_get_string( int dirid { for (i = 0; i < nb_user_dirids; i++) if (user_dirids[i].id == dirid) return user_dirids[i].str; - ERR("user id %d not found\n", dirid ); + WARN("user id %d not found\n", dirid ); return NULL; } else if (dirid >= MIN_CSIDL_DIRID)
1
0
0
0
← Newer
1
...
6
7
8
9
10
11
12
...
70
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
Results per page:
10
25
50
100
200