winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
July 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
1114 discussions
Start a n
N
ew thread
Andrew Talbot : advapi32: Remove unused variable.
by Alexandre Julliard
28 Jul '08
28 Jul '08
Module: wine Branch: master Commit: 4a03558e8f6442b589111d6f2e31e0cdbd874b1b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4a03558e8f6442b589111d6f2…
Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Sat Jul 26 21:46:39 2008 +0100 advapi32: Remove unused variable. --- dlls/advapi32/cred.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/dlls/advapi32/cred.c b/dlls/advapi32/cred.c index 50a27c0..6600912 100644 --- a/dlls/advapi32/cred.c +++ b/dlls/advapi32/cred.c @@ -49,7 +49,6 @@ static const WCHAR wszEncryptionKeyValue[] = {'E','n','c','r','y','p','t','i','o static const WCHAR wszFlagsValue[] = {'F','l','a','g','s',0}; static const WCHAR wszTypeValue[] = {'T','y','p','e',0}; -static const WCHAR wszTargetNameValue[] = {'T','a','r','g','e','t','N','a','m','e',0}; static const WCHAR wszCommentValue[] = {'C','o','m','m','e','n','t',0}; static const WCHAR wszLastWrittenValue[] = {'L','a','s','t','W','r','i','t','t','e','n',0}; static const WCHAR wszPersistValue[] = {'P','e','r','s','i','s','t',0};
1
0
0
0
François Dorin : ole32: Fix return value for DefaultHandler_SetExtent.
by Alexandre Julliard
28 Jul '08
28 Jul '08
Module: wine Branch: master Commit: db941f43b658744551cd402d0fdb6191e6310d5a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=db941f43b658744551cd402d0…
Author: François Dorin <f.dorin(a)free.fr> Date: Sat Jul 26 15:09:33 2008 +0200 ole32: Fix return value for DefaultHandler_SetExtent. --- dlls/ole32/defaulthandler.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ole32/defaulthandler.c b/dlls/ole32/defaulthandler.c index dda2d4b..afacc51 100644 --- a/dlls/ole32/defaulthandler.c +++ b/dlls/ole32/defaulthandler.c @@ -715,7 +715,7 @@ static HRESULT WINAPI DefaultHandler_SetExtent( dwDrawAspect, psizel->cx, psizel->cy); if (object_is_running(This)) - IOleObject_SetExtent(This->pOleDelegate, dwDrawAspect, psizel); + return IOleObject_SetExtent(This->pOleDelegate, dwDrawAspect, psizel); return OLE_E_NOTRUNNING; }
1
0
0
0
Alexandre Julliard : wine.inf; Don' t overwrite path and temp dir environment variables on upgrades.
by Alexandre Julliard
28 Jul '08
28 Jul '08
Module: wine Branch: master Commit: 3ae17fa003e9c9e1eb182bfe5e998c148788e218 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3ae17fa003e9c9e1eb182bfe5…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Jul 28 12:05:09 2008 +0200 wine.inf; Don't overwrite path and temp dir environment variables on upgrades. --- tools/wine.inf.in | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/wine.inf.in b/tools/wine.inf.in index da5020d..e8e4df6 100644 --- a/tools/wine.inf.in +++ b/tools/wine.inf.in @@ -274,12 +274,12 @@ HKLM,Software\Microsoft\DirectPlay\Service Providers\Serial Connection For Direc HKLM,System\CurrentControlSet\Control\Session Manager\Environment,"APPDATA",,"%16410%" HKLM,System\CurrentControlSet\Control\Session Manager\Environment,"ComSpec",0x00020000,"%11%\cmd.exe" HKLM,System\CurrentControlSet\Control\Session Manager\Environment,"LOCALAPPDATA",,"%16412%" -HKLM,System\CurrentControlSet\Control\Session Manager\Environment,"PATH",0x00020000,"%11%;%10%" +HKLM,System\CurrentControlSet\Control\Session Manager\Environment,"PATH",0x00020002,"%11%;%10%" HKLM,System\CurrentControlSet\Control\Session Manager\Environment,"ProgramFiles",,"%16422%" HKLM,System\CurrentControlSet\Control\Session Manager\Environment,"SystemDrive",2,"c:" HKLM,System\CurrentControlSet\Control\Session Manager\Environment,"SYSTEMROOT",,"%10%" -HKLM,System\CurrentControlSet\Control\Session Manager\Environment,"TEMP",0x00020000,"%10%\temp" -HKLM,System\CurrentControlSet\Control\Session Manager\Environment,"TMP",0x00020000,"%10%\temp" +HKLM,System\CurrentControlSet\Control\Session Manager\Environment,"TEMP",0x00020002,"%10%\temp" +HKLM,System\CurrentControlSet\Control\Session Manager\Environment,"TMP",0x00020002,"%10%\temp" HKLM,System\CurrentControlSet\Control\Session Manager\Environment,"windir",0x00020000,"%10%" HKLM,System\CurrentControlSet\Control\Session Manager\Environment,"winsysdir",,"%11%"
1
0
0
0
Alexandre Julliard : configure: Don't use cups-config --libs, it returns garbage.
by Alexandre Julliard
28 Jul '08
28 Jul '08
Module: wine Branch: master Commit: a991a568b4972fa85252f4d90f563c7bc33696f9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a991a568b4972fa85252f4d90…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Jul 28 12:04:46 2008 +0200 configure: Don't use cups-config --libs, it returns garbage. --- configure | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 0de81c0..840367f 100755 --- a/configure +++ b/configure @@ -15017,7 +15017,7 @@ if test "x$with_cups" != "xno" then ac_save_CPPFLAGS="$CPPFLAGS" ac_cups_cflags=`cups-config --cflags 2>/dev/null` - ac_cups_libs="`cups-config --ldflags 2>/dev/null` `cups-config --libs 2>/dev/null`" + ac_cups_libs=`cups-config --ldflags 2>/dev/null` CPPFLAGS="$CPPFLAGS $ac_cups_cflags" for ac_header in cups/cups.h diff --git a/configure.ac b/configure.ac index 9b29e57..3ac2c96 100644 --- a/configure.ac +++ b/configure.ac @@ -1125,7 +1125,7 @@ if test "x$with_cups" != "xno" then ac_save_CPPFLAGS="$CPPFLAGS" ac_cups_cflags=`cups-config --cflags 2>/dev/null` - ac_cups_libs="`cups-config --ldflags 2>/dev/null` `cups-config --libs 2>/dev/null`" + ac_cups_libs=`cups-config --ldflags 2>/dev/null` CPPFLAGS="$CPPFLAGS $ac_cups_cflags" AC_CHECK_HEADERS(cups/cups.h, [WINE_CHECK_SONAME(cups,cupsGetDefault,
1
0
0
0
Stefan Dösinger : wined3d: Add fog and tex types to the ffp fragment description.
by Alexandre Julliard
28 Jul '08
28 Jul '08
Module: wine Branch: master Commit: 294f1b4aad1678da7957bae5470c9cb8ec9cd9fc URL:
http://source.winehq.org/git/wine.git/?a=commit;h=294f1b4aad1678da7957bae54…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Fri Jul 11 21:18:06 2008 -0500 wined3d: Add fog and tex types to the ffp fragment description. --- dlls/wined3d/ati_fragment_shader.c | 12 ++-- dlls/wined3d/utils.c | 135 +++++++++++++++++++++++------------- dlls/wined3d/wined3d_private.h | 17 ++++- 3 files changed, 108 insertions(+), 56 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=294f1b4aad1678da7957b…
1
0
0
0
Stefan Dösinger : wined3d: Do not enable GL_TEXTURE_SHADER_NV unconditionally.
by Alexandre Julliard
28 Jul '08
28 Jul '08
Module: wine Branch: master Commit: 40cfec2582f074a1524b906898b9263130518fd7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=40cfec2582f074a1524b90689…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Thu Jul 24 10:05:25 2008 -0500 wined3d: Do not enable GL_TEXTURE_SHADER_NV unconditionally. --- dlls/wined3d/context.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index ca81f3a..bb354f6 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -538,9 +538,6 @@ WineD3DContext *CreateContext(IWineD3DDeviceImpl *This, IWineD3DSurfaceImpl *tar checkGLcall("glEnable(GL_WEIGHT_SUM_UNITY_ARB)"); } if(GL_SUPPORT(NV_TEXTURE_SHADER2)) { - glEnable(GL_TEXTURE_SHADER_NV); - checkGLcall("glEnable(GL_TEXTURE_SHADER_NV)"); - /* Set up the previous texture input for all shader units. This applies to bump mapping, and in d3d * the previous texture where to source the offset from is always unit - 1. */
1
0
0
0
Detlef Riekenberg : crypt32/tests: Fix test on win9x ( CreateFileW not implemented).
by Alexandre Julliard
28 Jul '08
28 Jul '08
Module: wine Branch: master Commit: a6715f856e431ab6df9a7eea6b539ae19193fb09 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a6715f856e431ab6df9a7eea6…
Author: Detlef Riekenberg <wine.dev(a)web.de> Date: Sun Jul 27 22:04:32 2008 +0200 crypt32/tests: Fix test on win9x (CreateFileW not implemented). --- dlls/crypt32/tests/sip.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/crypt32/tests/sip.c b/dlls/crypt32/tests/sip.c index b01229c..d5d2a50 100644 --- a/dlls/crypt32/tests/sip.c +++ b/dlls/crypt32/tests/sip.c @@ -267,7 +267,9 @@ static void test_SIPRetrieveSubjectGUID(void) DeleteFileA(tempfile); /* Create a .cab file */ - file = CreateFileW(tempfileW, GENERIC_WRITE, 0, NULL, CREATE_NEW, 0, NULL); + SetLastError(0xdeadbeef); + file = CreateFileA(tempfile, GENERIC_WRITE, 0, NULL, CREATE_NEW, 0, NULL); + ok(file != INVALID_HANDLE_VALUE, "failed with %u\n", GetLastError()); WriteFile(file, cabFileData, sizeof(cabFileData), &written, NULL); CloseHandle(file); @@ -278,8 +280,9 @@ static void test_SIPRetrieveSubjectGUID(void) GetLastError(), GetLastError() ); ok ( !memcmp(&subject, &cabGUID, sizeof(GUID)), "Expected GUID %s for cabinet file, not %s\n", show_guid(&cabGUID, guid1), show_guid(&subject, guid2)); + /* Clean up */ - DeleteFileW(tempfileW); + DeleteFileA(tempfile); } static void test_SIPLoad(void)
1
0
0
0
Detlef Riekenberg : kernel32/tests: Fix a crash on win9x ( lpDefault is truncated inplace).
by Alexandre Julliard
28 Jul '08
28 Jul '08
Module: wine Branch: master Commit: 5437f4ce9ce9c6bb61e425c93e6497ea58d8d2bd URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5437f4ce9ce9c6bb61e425c93…
Author: Detlef Riekenberg <wine.dev(a)web.de> Date: Sun Jul 27 15:29:31 2008 +0200 kernel32/tests: Fix a crash on win9x (lpDefault is truncated inplace). --- dlls/kernel32/tests/profile.c | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/dlls/kernel32/tests/profile.c b/dlls/kernel32/tests/profile.c index 91ff982..46dfe72 100644 --- a/dlls/kernel32/tests/profile.c +++ b/dlls/kernel32/tests/profile.c @@ -363,6 +363,7 @@ static void test_GetPrivateProfileString(void) { DWORD ret; CHAR buf[MAX_PATH]; + CHAR def_val[MAX_PATH]; CHAR path[MAX_PATH]; CHAR windir[MAX_PATH]; LPSTR tempfile; @@ -416,14 +417,18 @@ static void test_GetPrivateProfileString(void) /* lpAppName is empty, lpDefault has trailing blank characters */ lstrcpyA(buf, "kumquat"); - ret = GetPrivateProfileStringA("", "name1", "default ", + /* lpDefault must be writeable (trailing blanks are removed inplace in win9x) */ + lstrcpyA(def_val, "default "); + ret = GetPrivateProfileStringA("", "name1", def_val, buf, MAX_PATH, filename); ok(ret == 7, "Expected 7, got %d\n", ret); ok(!lstrcmpA(buf, "default"), "Expected \"default\", got \"%s\"\n", buf); /* lpAppName is empty, many blank characters in lpDefault */ lstrcpyA(buf, "kumquat"); - ret = GetPrivateProfileStringA("", "name1", "one two ", + /* lpDefault must be writeable (trailing blanks are removed inplace in win9x) */ + lstrcpyA(def_val, "one two "); + ret = GetPrivateProfileStringA("", "name1", def_val, buf, MAX_PATH, filename); ok(ret == 7, "Expected 7, got %d\n", ret); ok(!lstrcmpA(buf, "one two"), "Expected \"one two\", got \"%s\"\n", buf); @@ -473,7 +478,9 @@ static void test_GetPrivateProfileString(void) /* lpKeyName is empty, lpDefault has trailing blank characters */ lstrcpyA(buf, "kumquat"); - ret = GetPrivateProfileStringA("section1", "", "default ", + /* lpDefault must be writeable (trailing blanks are removed inplace in win9x) */ + lstrcpyA(def_val, "default "); + ret = GetPrivateProfileStringA("section1", "", def_val, buf, MAX_PATH, filename); ok(ret == 7, "Expected 7, got %d\n", ret); ok(!lstrcmpA(buf, "default"), "Expected \"default\", got \"%s\"\n", buf);
1
0
0
0
Piotr Caban : msxml3: Added stub implementation of ISAXAttributes.
by Alexandre Julliard
28 Jul '08
28 Jul '08
Module: wine Branch: master Commit: 5816c3808e72e528355d1c501681763442680140 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5816c3808e72e528355d1c501…
Author: Piotr Caban <piotr.caban(a)gmail.com> Date: Sun Jul 27 19:55:05 2008 +0200 msxml3: Added stub implementation of ISAXAttributes. --- dlls/msxml3/saxreader.c | 280 ++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 279 insertions(+), 1 deletions(-) diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c index ce27496..8ec1e46 100644 --- a/dlls/msxml3/saxreader.c +++ b/dlls/msxml3/saxreader.c @@ -69,6 +69,12 @@ typedef struct _saxlocator int column; } saxlocator; +typedef struct _saxattributes +{ + const struct ISAXAttributesVtbl *lpSAXAttributesVtbl; + LONG ref; +} saxattributes; + static inline saxreader *impl_from_IVBSAXXMLReader( IVBSAXXMLReader *iface ) { return (saxreader *)((char*)iface - FIELD_OFFSET(saxreader, lpVtbl)); @@ -84,6 +90,11 @@ static inline saxlocator *impl_from_ISAXLocator( ISAXLocator *iface ) return (saxlocator *)((char*)iface - FIELD_OFFSET(saxlocator, lpSAXLocatorVtbl)); } +static inline saxattributes *impl_from_ISAXAttributes( ISAXAttributes *iface ) +{ + return (saxattributes *)((char*)iface - FIELD_OFFSET(saxattributes, lpSAXAttributesVtbl)); +} + static void format_error_message_from_id(saxlocator *This, HRESULT hr) { @@ -134,6 +145,268 @@ static void update_position(saxlocator *This, xmlChar *end) } } +/*** ISAXAttributes interface ***/ +/*** IUnknown methods ***/ +static HRESULT WINAPI isaxattributes_QueryInterface( + ISAXAttributes* iface, + REFIID riid, + void **ppvObject) +{ + saxattributes *This = impl_from_ISAXAttributes(iface); + + TRACE("%p %s %p\n", This, debugstr_guid(riid), ppvObject); + + *ppvObject = NULL; + + if (IsEqualGUID(riid, &IID_IUnknown) || + IsEqualGUID(riid, &IID_ISAXAttributes)) + { + *ppvObject = iface; + } + else + { + FIXME("interface %s not implemented\n", debugstr_guid(riid)); + return E_NOINTERFACE; + } + + ISAXAttributes_AddRef(iface); + + return S_OK; +} + +static ULONG WINAPI isaxattributes_AddRef(ISAXAttributes* iface) +{ + saxattributes *This = impl_from_ISAXAttributes(iface); + TRACE("%p\n", This); + return InterlockedIncrement(&This->ref); +} + +static ULONG WINAPI isaxattributes_Release(ISAXAttributes* iface) +{ + saxattributes *This = impl_from_ISAXAttributes(iface); + LONG ref; + + TRACE("%p\n", This); + + ref = InterlockedDecrement(&This->ref); + if (ref==0) + { + HeapFree(GetProcessHeap(), 0, This); + } + + return ref; +} + +/*** ISAXAttributes methods ***/ +static HRESULT WINAPI isaxattributes_getLength( + ISAXAttributes* iface, + int *length) +{ + saxattributes *This = impl_from_ISAXAttributes( iface ); + + FIXME("(%p) stub\n", This); + return E_NOTIMPL; +} + +static HRESULT WINAPI isaxattributes_getURI( + ISAXAttributes* iface, + int nIndex, + const WCHAR **pUrl, + int *pUriSize) +{ + saxattributes *This = impl_from_ISAXAttributes( iface ); + + FIXME("(%p)->(%d) stub\n", This, nIndex); + return E_NOTIMPL; +} + +static HRESULT WINAPI isaxattributes_getLocalName( + ISAXAttributes* iface, + int nIndex, + const WCHAR **pLocalName, + int *pLocalNameLength) +{ + saxattributes *This = impl_from_ISAXAttributes( iface ); + + FIXME("(%p)->(%d) stub\n", This, nIndex); + return E_NOTIMPL; +} + +static HRESULT WINAPI isaxattributes_getQName( + ISAXAttributes* iface, + int nIndex, + const WCHAR **pQName, + int *pQNameLength) +{ + saxattributes *This = impl_from_ISAXAttributes( iface ); + + FIXME("(%p)->(%d) stub\n", This, nIndex); + return E_NOTIMPL; +} + +static HRESULT WINAPI isaxattributes_getName( + ISAXAttributes* iface, + int nIndex, + const WCHAR **pUri, + int *pUriLength, + const WCHAR **pLocalName, + int *pLocalNameSize, + const WCHAR **pQName, + int *pQNameLength) +{ + saxattributes *This = impl_from_ISAXAttributes( iface ); + + FIXME("(%p)->(%d) stub\n", This, nIndex); + return E_NOTIMPL; +} + +static HRESULT WINAPI isaxattributes_getIndexFromName( + ISAXAttributes* iface, + const WCHAR *pUri, + int cUriLength, + const WCHAR *pLocalName, + int cocalNameLength, + int *index) +{ + saxattributes *This = impl_from_ISAXAttributes( iface ); + + FIXME("(%p)->(%s, %d, %s, %d) stub\n", This, debugstr_w(pUri), cUriLength, + debugstr_w(pLocalName), cocalNameLength); + return E_NOTIMPL; +} + +static HRESULT WINAPI isaxattributes_getIndexFromQName( + ISAXAttributes* iface, + const WCHAR *pQName, + int nQNameLength, + int *index) +{ + saxattributes *This = impl_from_ISAXAttributes( iface ); + + FIXME("(%p)->(%s, %d) stub\n", This, debugstr_w(pQName), nQNameLength); + return E_NOTIMPL; +} + +static HRESULT WINAPI isaxattributes_getType( + ISAXAttributes* iface, + int nIndex, + const WCHAR **pType, + int *pTypeLength) +{ + saxattributes *This = impl_from_ISAXAttributes( iface ); + + FIXME("(%p)->(%d) stub\n", This, nIndex); + return E_NOTIMPL; +} + +static HRESULT WINAPI isaxattributes_getTypeFromName( + ISAXAttributes* iface, + const WCHAR *pUri, + int nUri, + const WCHAR *pLocalName, + int nLocalName, + const WCHAR **pType, + int *nType) +{ + saxattributes *This = impl_from_ISAXAttributes( iface ); + + FIXME("(%p)->(%s, %d, %s, %d) stub\n", This, debugstr_w(pUri), nUri, + debugstr_w(pLocalName), nLocalName); + return E_NOTIMPL; +} + +static HRESULT WINAPI isaxattributes_getTypeFromQName( + ISAXAttributes* iface, + const WCHAR *pQName, + int nQName, + const WCHAR **pType, + int *nType) +{ + saxattributes *This = impl_from_ISAXAttributes( iface ); + + FIXME("(%p)->(%s, %d) stub\n", This, debugstr_w(pQName), nQName); + return E_NOTIMPL; +} + +static HRESULT WINAPI isaxattributes_getValue( + ISAXAttributes* iface, + int nIndex, + const WCHAR **pValue, + int *nValue) +{ + saxattributes *This = impl_from_ISAXAttributes( iface ); + + FIXME("(%p)->(%d) stub\n", This, nIndex); + return E_NOTIMPL; +} + +static HRESULT WINAPI isaxattributes_getValueFromName( + ISAXAttributes* iface, + const WCHAR *pUri, + int nUri, + const WCHAR *pLocalName, + int nLocalName, + const WCHAR **pValue, + int *nValue) +{ + saxattributes *This = impl_from_ISAXAttributes( iface ); + + FIXME("(%p)->(%s, %d, %s, %d) stub\n", This, debugstr_w(pUri), nUri, + debugstr_w(pLocalName), nLocalName); + return E_NOTIMPL; +} + +static HRESULT WINAPI isaxattributes_getValueFromQName( + ISAXAttributes* iface, + const WCHAR *pQName, + int nQName, + const WCHAR **pValue, + int *nValue) +{ + saxattributes *This = impl_from_ISAXAttributes( iface ); + + FIXME("(%p)->(%s, %d) stub\n", This, debugstr_w(pQName), nQName); + return E_NOTIMPL; +} + +static const struct ISAXAttributesVtbl isaxattributes_vtbl = +{ + isaxattributes_QueryInterface, + isaxattributes_AddRef, + isaxattributes_Release, + isaxattributes_getLength, + isaxattributes_getURI, + isaxattributes_getLocalName, + isaxattributes_getQName, + isaxattributes_getName, + isaxattributes_getIndexFromName, + isaxattributes_getIndexFromQName, + isaxattributes_getType, + isaxattributes_getTypeFromName, + isaxattributes_getTypeFromQName, + isaxattributes_getValue, + isaxattributes_getValueFromName, + isaxattributes_getValueFromQName +}; + +static HRESULT SAXAttributes_create(IUnknown *pUnkOuter, LPVOID *ppObj) +{ + saxattributes *attributes; + + attributes = HeapAlloc(GetProcessHeap(), 0, sizeof(*attributes)); + if(!attributes) + return E_OUTOFMEMORY; + + attributes->lpSAXAttributesVtbl = &isaxattributes_vtbl; + attributes->ref = 1; + + *ppObj = attributes; + + TRACE("returning %p\n", *ppObj); + + return S_OK; +} + /*** LibXML callbacks ***/ static void libxmlStartDocument(void *ctx) { @@ -182,6 +455,7 @@ static void libxmlStartElementNS( BSTR NamespaceUri, LocalName, QName; saxlocator *This = ctx; HRESULT hr; + ISAXAttributes *attr; FIXME("Arguments processing not yet implemented.\n"); @@ -193,17 +467,21 @@ static void libxmlStartElementNS( LocalName = bstr_from_xmlChar(localname); QName = bstr_from_xmlChar(localname); + SAXAttributes_create(NULL, (void*)&attr); + hr = ISAXContentHandler_startElement( This->saxreader->contentHandler, NamespaceUri, SysStringLen(NamespaceUri), LocalName, SysStringLen(LocalName), QName, SysStringLen(QName), - NULL); + attr); SysFreeString(NamespaceUri); SysFreeString(LocalName); SysFreeString(QName); + ISAXAttributes_Release(attr); + if(hr != S_OK) format_error_message_from_id(This, hr); }
1
0
0
0
Piotr Caban : msxml3/tests: Added test for ISAXXMLReader_parseURL.
by Alexandre Julliard
28 Jul '08
28 Jul '08
Module: wine Branch: master Commit: 742eb4ba08bdfb8286fb1fedca10846578eeb8f3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=742eb4ba08bdfb8286fb1fedc…
Author: Piotr Caban <piotr.caban(a)gmail.com> Date: Sun Jul 27 19:54:55 2008 +0200 msxml3/tests: Added test for ISAXXMLReader_parseURL. --- dlls/msxml3/tests/saxreader.c | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/dlls/msxml3/tests/saxreader.c b/dlls/msxml3/tests/saxreader.c index dd69e0f..0ff0fdf 100644 --- a/dlls/msxml3/tests/saxreader.c +++ b/dlls/msxml3/tests/saxreader.c @@ -476,6 +476,9 @@ static void test_saxreader(void) ULARGE_INTEGER liSize; LARGE_INTEGER liPos; ULONG bytesWritten; + HANDLE file; + + static const WCHAR testXmlW[] = {'t','e','s','t','.','x','m','l',0}; hr = CoCreateInstance(&CLSID_SAXXMLReader, NULL, CLSCTX_INPROC_SERVER, &IID_ISAXXMLReader, (LPVOID*)&reader); @@ -561,6 +564,18 @@ static void test_saxreader(void) ok(hr == S_OK, "Expected S_OK, got %08x\n", hr); test_expect_call(CH_ENDTEST); + file = CreateFileW(testXmlW, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); + ok(file != INVALID_HANDLE_VALUE, "Could not create file: %u\n", GetLastError()); + WriteFile(file, szTestXML, sizeof(szTestXML)-1, &bytesWritten, NULL); + CloseHandle(file); + + expectCall = contentHandlerTest1; + hr = ISAXXMLReader_parseURL(reader, testXmlW); + ok(hr == S_OK, "Expected S_OK, got %08x\n", hr); + test_expect_call(CH_ENDTEST); + + DeleteFileW(testXmlW); + ISAXXMLReader_Release(reader); }
1
0
0
0
← Newer
1
...
10
11
12
13
14
15
16
...
112
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
Results per page:
10
25
50
100
200