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
November 2007
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
3 participants
757 discussions
Start a n
N
ew thread
Alexandre Julliard : winex11.drv: Make sure to erase the dragging frame before moving the window.
by Alexandre Julliard
21 Nov '07
21 Nov '07
Module: wine Branch: master Commit: d4e1debee77eb02270e1cde78a3def94353318b1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d4e1debee77eb02270e1cde78…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Nov 21 13:22:42 2007 +0100 winex11.drv: Make sure to erase the dragging frame before moving the window. --- dlls/winex11.drv/winpos.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dlls/winex11.drv/winpos.c b/dlls/winex11.drv/winpos.c index e4ce6f5..c01f702 100644 --- a/dlls/winex11.drv/winpos.c +++ b/dlls/winex11.drv/winpos.c @@ -1454,7 +1454,13 @@ void X11DRV_SysCommandSizeMove( HWND hwnd, WPARAM wParam ) } } else if (moved && !DragFullWindows) + { draw_moving_frame( hdc, &sizingRect, thickframe ); + /* make sure the moving frame is erased before we move the window */ + wine_tsx11_lock(); + XFlush( gdi_display ); + wine_tsx11_unlock(); + } ReleaseDC( parent, hdc );
1
0
0
0
Divan Burger : user32: Change the desktop colour and pattern to match win2k .
by Alexandre Julliard
21 Nov '07
21 Nov '07
Module: wine Branch: master Commit: 113f573b25f136674bfd7324b54ad7109d01142b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=113f573b25f136674bfd7324b…
Author: Divan Burger <divan.burger(a)gmail.com> Date: Wed Nov 21 11:33:53 2007 +0200 user32: Change the desktop colour and pattern to match win2k. --- dlls/user32/sysparams.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/user32/sysparams.c b/dlls/user32/sysparams.c index 60afd2e..d5acd0b 100644 --- a/dlls/user32/sysparams.c +++ b/dlls/user32/sysparams.c @@ -88,7 +88,7 @@ enum spi_index static const char * const DefSysColors[] = { "Scrollbar", "212 208 200", /* COLOR_SCROLLBAR */ - "Background", "0 128 128", /* COLOR_BACKGROUND */ + "Background", "58 110 165", /* COLOR_BACKGROUND */ "ActiveTitle", "0 0 128", /* COLOR_ACTIVECAPTION */ "InactiveTitle", "128 128 128", /* COLOR_INACTIVECAPTION */ "Menu", "212 208 200", /* COLOR_MENU */ @@ -261,8 +261,7 @@ static const WCHAR MessageFontSize[]= {'M','e','s','s','a static const WCHAR System[]= {'S','y','s','t','e','m',0}; static const WCHAR IconTitleSize[]= {'I','c','o','n','T','i','t','l','e','S','i','z','e',0}; static const WCHAR IconTitleFaceName[]= {'I','c','o','n','T','i','t','l','e','F','a','c','e','N','a','m','e',0}; -static const WCHAR defPattern[]= {'1','7','0',' ','8','5',' ','1','7','0',' ','8','5',' ','1','7','0',' ','8','5', - ' ','1','7','0',' ','8','5',0}; +static const WCHAR defPattern[]= {'0',' ','0',' ','0',' ','0',' ','0',' ','0',' ','0',' ','0',0}; static const WCHAR CSu[]= {'%','u',0}; static const WCHAR CSd[]= {'%','d',0};
1
0
0
0
Divan Burger : user32: Fix colours to match exactly with Windows 2000.
by Alexandre Julliard
21 Nov '07
21 Nov '07
Module: wine Branch: master Commit: 91d2b609c3d13ee7a2fcdf5529a8c0ea9d6f7266 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=91d2b609c3d13ee7a2fcdf552…
Author: Divan Burger <divan.burger(a)gmail.com> Date: Wed Nov 21 09:10:11 2007 +0200 user32: Fix colours to match exactly with Windows 2000. --- dlls/user32/sysparams.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/user32/sysparams.c b/dlls/user32/sysparams.c index 3c314f9..60afd2e 100644 --- a/dlls/user32/sysparams.c +++ b/dlls/user32/sysparams.c @@ -108,8 +108,8 @@ static const char * const DefSysColors[] = "ButtonText", "0 0 0", /* COLOR_BTNTEXT */ "InactiveTitleText", "212 208 200", /* COLOR_INACTIVECAPTIONTEXT */ "ButtonHilight", "255 255 255", /* COLOR_BTNHIGHLIGHT */ - "ButtonDkShadow", "0 0 0", /* COLOR_3DDKSHADOW */ - "ButtonLight", "224 224 224", /* COLOR_3DLIGHT */ + "ButtonDkShadow", "64 64 64", /* COLOR_3DDKSHADOW */ + "ButtonLight", "212 208 200", /* COLOR_3DLIGHT */ "InfoText", "0 0 0", /* COLOR_INFOTEXT */ "InfoWindow", "255 255 225", /* COLOR_INFOBK */ "ButtonAlternateFace", "180 180 180", /* COLOR_ALTERNATEBTNFACE */
1
0
0
0
Vijay Kiran Kamuju : rsaenh: Add implementation of Enhanced RSA AES Provider.
by Alexandre Julliard
21 Nov '07
21 Nov '07
Module: wine Branch: master Commit: 1dbaa8c619f8598ec7ce9b79347afd84c49ec1b0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1dbaa8c619f8598ec7ce9b793…
Author: Vijay Kiran Kamuju <infyquest(a)gmail.com> Date: Tue Nov 20 16:58:23 2007 -0600 rsaenh: Add implementation of Enhanced RSA AES Provider. --- dlls/rsaenh/Makefile.in | 1 + dlls/rsaenh/aes.c | 1333 ++++++++++++++++++++++++++++++++++++++++++++ dlls/rsaenh/implglue.c | 29 + dlls/rsaenh/implglue.h | 1 + dlls/rsaenh/rsaenh.c | 94 +++- dlls/rsaenh/tests/rsaenh.c | 22 +- dlls/rsaenh/tomcrypt.h | 9 + 7 files changed, 1454 insertions(+), 35 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=1dbaa8c619f8598ec7ce9…
1
0
0
0
Vijay Kiran Kamuju : rsaenh: Add tests for RSA_AES provider.
by Alexandre Julliard
21 Nov '07
21 Nov '07
Module: wine Branch: master Commit: ea1f8c7ad86e21603244180db10687e1cf3b6ba5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ea1f8c7ad86e21603244180db…
Author: Vijay Kiran Kamuju <infyquest(a)gmail.com> Date: Tue Nov 20 16:56:15 2007 -0600 rsaenh: Add tests for RSA_AES provider. --- dlls/rsaenh/tests/rsaenh.c | 139 ++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 134 insertions(+), 5 deletions(-) diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c index a8c8c4f..38a28bf 100644 --- a/dlls/rsaenh/tests/rsaenh.c +++ b/dlls/rsaenh/tests/rsaenh.c @@ -2,6 +2,8 @@ * Unit tests for rsaenh functions * * Copyright (c) 2004 Michael Jung + * Copyright (c) 2006 Juan Lang + * Copyright (c) 2007 Vijay Kiran Kamuju * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -83,7 +85,7 @@ static void trace_hex(BYTE *pbData, DWORD dwLen) { } */ -static int init_environment(void) +static int init_base_environment(void) { HCRYPTKEY hKey; BOOL result; @@ -100,7 +102,7 @@ static int init_environment(void) ok(GetLastError()==NTE_BAD_KEYSET, "%08x\n", GetLastError()); if (GetLastError()!=NTE_BAD_KEYSET) return 0; result = CryptAcquireContext(&hProv, szContainer, szProvider, PROV_RSA_FULL, - CRYPT_NEWKEYSET); + CRYPT_NEWKEYSET); ok(result, "%08x\n", GetLastError()); if (!result) return 0; result = CryptGenKey(hProv, AT_KEYEXCHANGE, 0, &hKey); @@ -113,7 +115,7 @@ static int init_environment(void) return 1; } -static void clean_up_environment(void) +static void clean_up_base_environment(void) { BOOL result; @@ -123,6 +125,61 @@ static void clean_up_environment(void) CryptAcquireContext(&hProv, szContainer, szProvider, PROV_RSA_FULL, CRYPT_DELETEKEYSET); } +static int init_aes_environment(void) +{ + HCRYPTKEY hKey; + BOOL result; + + pCryptDuplicateHash = (void *)GetProcAddress(GetModuleHandleA("advapi32.dll"), "CryptDuplicateHash"); + + hProv = (HCRYPTPROV)INVALID_HANDLE_VALUE; + + /* we are using NULL as provider name for RSA_AES provider as the provider + * names are different in Windows XP and Vista. Its different as to what + * its defined in the SDK on Windows XP. + * This provider is available on Windows XP, Windows 2003 and Vista. */ + + result = CryptAcquireContext(&hProv, szContainer, NULL, PROV_RSA_AES, CRYPT_VERIFYCONTEXT); + todo_wine { + ok(!result && GetLastError()==NTE_BAD_FLAGS, "%d, %08x\n", result, GetLastError()); + } + + if (!CryptAcquireContext(&hProv, szContainer, NULL, PROV_RSA_AES, 0)) + { + todo_wine { + ok(GetLastError()==NTE_BAD_KEYSET, "%08x\n", GetLastError()); + } + if (GetLastError()!=NTE_BAD_KEYSET) return 0; + result = CryptAcquireContext(&hProv, szContainer, NULL, PROV_RSA_AES, + CRYPT_NEWKEYSET); + todo_wine { + ok(result, "%08x\n", GetLastError()); + } + if (!result) return 0; + result = CryptGenKey(hProv, AT_KEYEXCHANGE, 0, &hKey); + todo_wine { + ok(result, "%08x\n", GetLastError()); + } + if (result) CryptDestroyKey(hKey); + result = CryptGenKey(hProv, AT_SIGNATURE, 0, &hKey); + todo_wine { + ok(result, "%08x\n", GetLastError()); + } + if (result) CryptDestroyKey(hKey); + } + return 1; +} + +static void clean_up_aes_environment(void) +{ + BOOL result; + + result = CryptReleaseContext(hProv, 1); + todo_wine ok(!result && GetLastError()==NTE_BAD_FLAGS, "%08x\n", GetLastError()); + + CryptAcquireContext(&hProv, szContainer, NULL, PROV_RSA_AES, CRYPT_DELETEKEYSET); +} + static void test_prov(void) { BOOL result; @@ -586,6 +643,72 @@ static void test_3des(void) ok(result, "%08x\n", GetLastError()); } +static void test_aes(int keylen) +{ + HCRYPTKEY hKey; + BOOL result; + DWORD dwLen; + unsigned char pbData[16]; + int i; + + switch (keylen) + { + case 256: + result = derive_key(CALG_AES_256, &hKey, 0); + break; + case 192: + result = derive_key(CALG_AES_192, &hKey, 0); + break; + default: + case 128: + result = derive_key(CALG_AES_128, &hKey, 0); + break; + } + if (!result) return; + + for (i=0; i<sizeof(pbData); i++) pbData[i] = (unsigned char)i; + + dwLen = 13; + result = CryptEncrypt(hKey, (HCRYPTHASH)NULL, TRUE, 0, pbData, &dwLen, 16); + todo_wine { + ok(result, "%08x\n", GetLastError()); + } + + result = CryptDecrypt(hKey, (HCRYPTHASH)NULL, TRUE, 0, pbData, &dwLen); + todo_wine { + ok(result, "%08x\n", GetLastError()); + } + + for (i=0; i<4; i++) + { + memcpy(pbData,cTestData[i].origstr,cTestData[i].strlen); + + dwLen = cTestData[i].enclen; + result = CryptEncrypt(hKey, (HCRYPTHASH)NULL, TRUE, 0, pbData, &dwLen, cTestData[i].buflen); + todo_wine { + ok(result, "%08x\n", GetLastError()); + ok(dwLen==cTestData[i].buflen,"length incorrect, got %d, expected %d\n",dwLen,cTestData[i].buflen); + } + + result = CryptDecrypt(hKey, (HCRYPTHASH)NULL, TRUE, 0, pbData, &dwLen); + todo_wine { + ok(result, "%08x\n", GetLastError()); + ok(dwLen==cTestData[i].enclen,"length incorrect, got %d, expected %d\n",dwLen,cTestData[i].enclen); + ok(memcmp(pbData,cTestData[i].decstr,cTestData[1].enclen)==0,"decryption incorrect %d\n",i); + if((dwLen != cTestData[i].enclen) || + memcmp(pbData,cTestData[i].decstr,cTestData[i].enclen)) + { + printBytes("expected",cTestData[i].decstr,cTestData[i].strlen); + printBytes("got",pbData,dwLen); + } + } + } + result = CryptDestroyKey(hKey); + todo_wine { + ok(result, "%08x\n", GetLastError()); + } +} + static void test_rc2(void) { static const BYTE rc2encrypted[16] = { @@ -1881,7 +2004,7 @@ static void test_null_provider(void) START_TEST(rsaenh) { - if (!init_environment()) + if (!init_base_environment()) return; test_prov(); test_gen_random(); @@ -1899,7 +2022,13 @@ START_TEST(rsaenh) test_rsa_encrypt(); test_import_export(); test_enum_container(); - clean_up_environment(); + clean_up_base_environment(); test_schannel_provider(); test_null_provider(); + if (!init_aes_environment()) + return; + test_aes(128); + test_aes(192); + test_aes(256); + clean_up_aes_environment(); }
1
0
0
0
Alistair Leslie-Hughes : msxml: Tests for createTextNode.
by Alexandre Julliard
21 Nov '07
21 Nov '07
Module: wine Branch: master Commit: f35673e9e94f486c0b0a27af0c1eef8bc8b02660 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f35673e9e94f486c0b0a27af0…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Fri Nov 16 09:55:51 2007 +1100 msxml: Tests for createTextNode. --- dlls/msxml3/tests/domdoc.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c index bf272ff..937e2fd 100644 --- a/dlls/msxml3/tests/domdoc.c +++ b/dlls/msxml3/tests/domdoc.c @@ -333,6 +333,7 @@ static void test_domdoc( void ) IXMLDOMParseError *error; IXMLDOMElement *element = NULL; IXMLDOMNode *node; + IXMLDOMText *nodetext = NULL; VARIANT_BOOL b; VARIANT var; BSTR str; @@ -488,6 +489,15 @@ static void test_domdoc( void ) ok( code == 0, "code %ld\n", code ); IXMLDOMParseError_Release( error ); + /* test createTextNode */ + str = SysAllocString( szOpen ); + r = IXMLDOMDocument_createTextNode(doc, str, NULL); + ok( r == E_INVALIDARG, "returns %08x\n", r ); + r = IXMLDOMDocument_createTextNode(doc, str, &nodetext); + ok( r == S_OK, "returns %08x\n", r ); + IXMLDOMText_Release( nodetext ); + SysFreeString( str ); + r = IXMLDOMDocument_Release( doc ); ok( r == 0, "document ref count incorrect\n");
1
0
0
0
Alistair Leslie-Hughes : msxml: Implement createTextNode.
by Alexandre Julliard
21 Nov '07
21 Nov '07
Module: wine Branch: master Commit: 43d92f4d76827e7dc0535b8d7e5665f205afab26 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=43d92f4d76827e7dc0535b8d7…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Fri Nov 16 09:55:49 2007 +1100 msxml: Implement createTextNode. --- dlls/msxml3/domdoc.c | 25 +++++++++++++++++++++++-- 1 files changed, 23 insertions(+), 2 deletions(-) diff --git a/dlls/msxml3/domdoc.c b/dlls/msxml3/domdoc.c index 9a1dba7..b4b8962 100644 --- a/dlls/msxml3/domdoc.c +++ b/dlls/msxml3/domdoc.c @@ -744,8 +744,29 @@ static HRESULT WINAPI domdoc_createTextNode( BSTR data, IXMLDOMText** text ) { - FIXME("\n"); - return E_NOTIMPL; + domdoc *This = impl_from_IXMLDOMDocument2( iface ); + xmlNodePtr xmlnode; + xmlChar *xml_content; + + TRACE("%p->(%s %p)\n", iface, debugstr_w(data), text); + + if(!text) + return E_INVALIDARG; + + *text = NULL; + + xml_content = xmlChar_from_wchar((WCHAR*)data); + xmlnode = xmlNewText(xml_content); + HeapFree(GetProcessHeap(), 0, xml_content); + + if(!xmlnode) + return E_FAIL; + + xmlnode->doc = get_doc( This ); + + *text = (IXMLDOMText*)create_text(xmlnode); + + return S_OK; }
1
0
0
0
Alistair Leslie-Hughes : msxml: Always return a string in get_text.
by Alexandre Julliard
21 Nov '07
21 Nov '07
Module: wine Branch: master Commit: c443674d13117d3aec147f14b920ec0b1ae56325 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c443674d13117d3aec147f14b…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Tue Nov 20 21:31:43 2007 +1100 msxml: Always return a string in get_text. --- dlls/msxml3/node.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c index 298deff..e52718e 100644 --- a/dlls/msxml3/node.c +++ b/dlls/msxml3/node.c @@ -564,7 +564,10 @@ static HRESULT WINAPI xmlnode_get_text( default: FIXME("Unhandled node type %d\n", This->node->type); } - + + /* Always return a string. */ + if (!str) str = SysAllocStringLen( NULL, 0 ); + TRACE("%p %s\n", This, debugstr_w(str) ); *text = str;
1
0
0
0
Alistair Leslie-Hughes : msxml: Added test for get_text.
by Alexandre Julliard
21 Nov '07
21 Nov '07
Module: wine Branch: master Commit: 9845a9ced4841f7bd4674a53cc58432c3e180e6f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9845a9ced4841f7bd4674a53c…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Tue Nov 20 21:23:35 2007 +1100 msxml: Added test for get_text. --- dlls/msxml3/tests/domdoc.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c index 60d7acf..bf272ff 100644 --- a/dlls/msxml3/tests/domdoc.c +++ b/dlls/msxml3/tests/domdoc.c @@ -1206,6 +1206,10 @@ static void test_get_text(void) ok( r == S_OK, "ret %08x\n", r ); IXMLDOMNodeList_Release( node_list ); + /* Invalid output parameter*/ + r = IXMLDOMNode_get_text( node, NULL ); + ok( r == E_INVALIDARG, "ret %08x\n", r ); + r = IXMLDOMNode_get_text( node, &str ); ok( r == S_OK, "ret %08x\n", r ); todo_wine {
1
0
0
0
Jacek Caban : hlink: Added HlinkCreateExtensionServices tests.
by Alexandre Julliard
21 Nov '07
21 Nov '07
Module: wine Branch: master Commit: 54d5fd079bfa8b140e2118456a69632d07eb2857 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=54d5fd079bfa8b140e2118456…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Wed Nov 21 02:14:45 2007 +0100 hlink: Added HlinkCreateExtensionServices tests. --- dlls/hlink/tests/hlink.c | 53 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 53 insertions(+), 0 deletions(-) diff --git a/dlls/hlink/tests/hlink.c b/dlls/hlink/tests/hlink.c index 2eb63dd..4a59f63 100644 --- a/dlls/hlink/tests/hlink.c +++ b/dlls/hlink/tests/hlink.c @@ -2,6 +2,7 @@ * Implementation of hyperlinking (hlink.dll) * * Copyright 2006 Mike McCormack + * Copyright 2007 Jacek Caban for CodeWeavers * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -342,6 +343,57 @@ static void test_special_reference(void) ok(ref == NULL, "ref=%p\n", ref); } +static void test_HlinkCreateExtensionServices(void) +{ + IAuthenticate *authenticate; + LPWSTR password, username; + HWND hwnd; + HRESULT hres; + + static const WCHAR usernameW[] = {'u','s','e','r',0}; + static const WCHAR passwordW[] = {'p','a','s','s',0}; + + hres = HlinkCreateExtensionServices(NULL, NULL, NULL, NULL, + NULL, &IID_IAuthenticate, (void**)&authenticate); + ok(hres == S_OK, "HlinkCreateExtensionServices failed: %08x\n", hres); + ok(authenticate != NULL, "HlinkCreateExtensionServices returned NULL\n"); + + password = username = (void*)0xdeadbeef; + hwnd = (void*)0xdeadbeef; + hres = IAuthenticate_Authenticate(authenticate, &hwnd, &username, &password); + ok(hres == S_OK, "Authenticate failed: %08x\n", hres); + ok(!hwnd, "hwnd != NULL\n"); + ok(!username, "username != NULL\n"); + ok(!password, "password != NULL\n"); + + IAuthenticate_Release(authenticate); + + + hres = HlinkCreateExtensionServices(NULL, (HWND)0xfefefefe, usernameW, passwordW, + NULL, &IID_IAuthenticate, (void**)&authenticate); + ok(hres == S_OK, "HlinkCreateExtensionServices failed: %08x\n", hres); + ok(authenticate != NULL, "HlinkCreateExtensionServices returned NULL\n"); + + password = username = NULL; + hwnd = NULL; + hres = IAuthenticate_Authenticate(authenticate, &hwnd, &username, &password); + ok(hres == S_OK, "Authenticate failed: %08x\n", hres); + ok(hwnd == (HWND)0xfefefefe, "hwnd=%p\n", hwnd); + ok(!lstrcmpW(username, usernameW), "unexpected username\n"); + ok(!lstrcmpW(password, passwordW), "unexpected password\n"); + CoTaskMemFree(username); + CoTaskMemFree(password); + + password = username = (void*)0xdeadbeef; + hwnd = (void*)0xdeadbeef; + hres = IAuthenticate_Authenticate(authenticate, &hwnd, NULL, &password); + ok(hres == E_INVALIDARG, "Authenticate failed: %08x\n", hres); + ok(password == (void*)0xdeadbeef, "password = %p\n", password); + ok(hwnd == (void*)0xdeadbeef, "hwnd = %p\n", hwnd); + + IAuthenticate_Release(authenticate); +} + START_TEST(hlink) { CoInitialize(NULL); @@ -350,6 +402,7 @@ START_TEST(hlink) test_reference(); test_persist(); test_special_reference(); + test_HlinkCreateExtensionServices(); CoUninitialize(); }
1
0
0
0
← Newer
1
...
13
14
15
16
17
18
19
...
76
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
Results per page:
10
25
50
100
200