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
July
June
May
April
March
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
August 2012
----- 2025 -----
July 2025
June 2025
May 2025
April 2025
March 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
2 participants
541 discussions
Start a n
N
ew thread
Rico Schüller : d3dx9: Fix RegisterCount calculation.
by Alexandre Julliard
27 Aug '12
27 Aug '12
Module: wine Branch: master Commit: 053e5b59ec5d546b5fa2fd315caccadb98eb8cf8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=053e5b59ec5d546b5fa2fd315…
Author: Rico Schüller <kgbricola(a)web.de> Date: Sat Aug 25 16:28:34 2012 +0200 d3dx9: Fix RegisterCount calculation. --- dlls/d3dx9_36/shader.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/dlls/d3dx9_36/shader.c b/dlls/d3dx9_36/shader.c index e30292f..162909b 100644 --- a/dlls/d3dx9_36/shader.c +++ b/dlls/d3dx9_36/shader.c @@ -1616,8 +1616,6 @@ static HRESULT parse_ctab_constant_type(const char *ctab, DWORD typeoffset, stru if (count) { - WORD size_element = 0; - constant->constants = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*constant->constants) * count); if (!constant->constants) { @@ -1634,8 +1632,7 @@ static HRESULT parse_ctab_constant_type(const char *ctab, DWORD typeoffset, stru if (hr != D3D_OK) goto error; - if (i == 0) size_element = constant->constants[i].desc.RegisterCount; - size += size_element; + size += constant->constants[i].desc.RegisterCount; } } else
1
0
0
0
Rico Schüller : d3dx9: Implement ID3DXConstantTable:: GetConstantElement().
by Alexandre Julliard
27 Aug '12
27 Aug '12
Module: wine Branch: master Commit: 4d59b503de9d4bc464e10fe1a62d594e307bc375 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4d59b503de9d4bc464e10fe1a…
Author: Rico Schüller <kgbricola(a)web.de> Date: Sat Aug 25 16:28:30 2012 +0200 d3dx9: Implement ID3DXConstantTable::GetConstantElement(). --- dlls/d3dx9_36/shader.c | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/dlls/d3dx9_36/shader.c b/dlls/d3dx9_36/shader.c index ec5a924..e30292f 100644 --- a/dlls/d3dx9_36/shader.c +++ b/dlls/d3dx9_36/shader.c @@ -1005,9 +1005,18 @@ static D3DXHANDLE WINAPI ID3DXConstantTableImpl_GetConstantByName(ID3DXConstantT static D3DXHANDLE WINAPI ID3DXConstantTableImpl_GetConstantElement(ID3DXConstantTable *iface, D3DXHANDLE constant, UINT index) { struct ID3DXConstantTableImpl *This = impl_from_ID3DXConstantTable(iface); + struct ctab_constant *c = get_valid_constant(This, constant); + + TRACE("(%p)->(%p, %d)\n", This, constant, index); - FIXME("(%p)->(%p, %d): stub\n", This, constant, index); + if (c && index < c->desc.Elements) + { + if (c->constants) c = &c->constants[index]; + TRACE("Returning constant %p\n", c); + return handle_from_constant(c); + } + WARN("Invalid argument specified\n"); return NULL; }
1
0
0
0
Rico Schüller : d3dx9: Improve ID3DXConstantTable:: GetConstantDesc().
by Alexandre Julliard
27 Aug '12
27 Aug '12
Module: wine Branch: master Commit: fa7422bc4ee4f9724a7b2327b1e428c5fdb4833b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fa7422bc4ee4f9724a7b2327b…
Author: Rico Schüller <kgbricola(a)web.de> Date: Sat Aug 25 16:28:27 2012 +0200 d3dx9: Improve ID3DXConstantTable::GetConstantDesc(). --- dlls/d3dx9_36/shader.c | 21 ++++++--------------- 1 files changed, 6 insertions(+), 15 deletions(-) diff --git a/dlls/d3dx9_36/shader.c b/dlls/d3dx9_36/shader.c index db48dd8..ec5a924 100644 --- a/dlls/d3dx9_36/shader.c +++ b/dlls/d3dx9_36/shader.c @@ -923,27 +923,18 @@ static HRESULT WINAPI ID3DXConstantTableImpl_GetConstantDesc(ID3DXConstantTable D3DXCONSTANT_DESC *desc, UINT *count) { struct ID3DXConstantTableImpl *This = impl_from_ID3DXConstantTable(iface); - struct ctab_constant *constant_info; + struct ctab_constant *c = get_valid_constant(This, constant); TRACE("(%p)->(%p, %p, %p)\n", This, constant, desc, count); - if (!constant) - return D3DERR_INVALIDCALL; - - /* Applications can pass the name of the constant in place of the handle */ - if (!is_valid_constant(This, constant)) + if (!c) { - constant = ID3DXConstantTable_GetConstantByName(iface, NULL, constant); - if (!constant) - return D3DERR_INVALIDCALL; + WARN("Invalid argument specified\n"); + return D3DERR_INVALIDCALL; } - constant_info = constant_from_handle(constant); - - if (desc) - *desc = constant_info->desc; - if (count) - *count = 1; + if (desc) *desc = c->desc; + if (count) *count = 1; return D3D_OK; }
1
0
0
0
Rico Schüller : d3dx9: Improve ID3DXConstantTable:: GetConstant().
by Alexandre Julliard
27 Aug '12
27 Aug '12
Module: wine Branch: master Commit: ea4f402164cde73a1029eca67c83b82babf44327 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ea4f402164cde73a1029eca67…
Author: Rico Schüller <kgbricola(a)web.de> Date: Sat Aug 25 16:28:22 2012 +0200 d3dx9: Improve ID3DXConstantTable::GetConstant(). --- dlls/d3dx9_36/shader.c | 25 +++++++++++++++++++------ 1 files changed, 19 insertions(+), 6 deletions(-) diff --git a/dlls/d3dx9_36/shader.c b/dlls/d3dx9_36/shader.c index e6e0e26..db48dd8 100644 --- a/dlls/d3dx9_36/shader.c +++ b/dlls/d3dx9_36/shader.c @@ -970,19 +970,32 @@ static UINT WINAPI ID3DXConstantTableImpl_GetSamplerIndex(ID3DXConstantTable *if static D3DXHANDLE WINAPI ID3DXConstantTableImpl_GetConstant(ID3DXConstantTable *iface, D3DXHANDLE constant, UINT index) { struct ID3DXConstantTableImpl *This = impl_from_ID3DXConstantTable(iface); + struct ctab_constant *c; TRACE("(%p)->(%p, %d)\n", This, constant, index); if (constant) { - FIXME("Only top level constants supported\n"); - return NULL; + c = get_valid_constant(This, constant); + if (c && index < c->desc.StructMembers) + { + c = &c->constants[index]; + TRACE("Returning constant %p\n", c); + return handle_from_constant(c); + } + } + else + { + if (index < This->desc.Constants) + { + c = &This->constants[index]; + TRACE("Returning constant %p\n", c); + return handle_from_constant(c); + } } - if (index >= This->desc.Constants) - return NULL; - - return handle_from_constant(&This->constants[index]); + WARN("Index out of range\n"); + return NULL; } static D3DXHANDLE WINAPI ID3DXConstantTableImpl_GetConstantByName(ID3DXConstantTable *iface, D3DXHANDLE constant, LPCSTR name)
1
0
0
0
Rico Schüller : d3dx9: Improve ID3DXConstantTable:: GetConstantByName().
by Alexandre Julliard
27 Aug '12
27 Aug '12
Module: wine Branch: master Commit: 22049867974a4db9a9d79368641de433aa6c5fa3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=22049867974a4db9a9d793686…
Author: Rico Schüller <kgbricola(a)web.de> Date: Sat Aug 25 16:28:12 2012 +0200 d3dx9: Improve ID3DXConstantTable::GetConstantByName(). --- dlls/d3dx9_36/shader.c | 119 ++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 105 insertions(+), 14 deletions(-) diff --git a/dlls/d3dx9_36/shader.c b/dlls/d3dx9_36/shader.c index c761aef..e6e0e26 100644 --- a/dlls/d3dx9_36/shader.c +++ b/dlls/d3dx9_36/shader.c @@ -690,6 +690,98 @@ static inline D3DXHANDLE handle_from_constant(struct ctab_constant *constant) return (D3DXHANDLE)constant; } +static struct ctab_constant *get_constant_by_name(struct ID3DXConstantTableImpl *, struct ctab_constant *, LPCSTR); + +static struct ctab_constant *get_constant_element_by_name(struct ctab_constant *constant, LPCSTR name) +{ + UINT element; + LPCSTR part; + + TRACE("constant %p, name %s\n", constant, debugstr_a(name)); + + if (!name || !*name) return NULL; + + element = atoi(name); + part = strchr(name, ']') + 1; + + if (constant->desc.Elements > element) + { + struct ctab_constant *c = constant->constants ? &constant->constants[element] : constant; + + switch (*part++) + { + case '.': + return get_constant_by_name(NULL, c, part); + + case '[': + return get_constant_element_by_name(c, part); + + case '\0': + TRACE("Returning parameter %p\n", c); + return c; + + default: + FIXME("Unhandled case \"%c\"\n", *--part); + break; + } + } + + TRACE("Constant not found\n"); + return NULL; +} + +static struct ctab_constant *get_constant_by_name(struct ID3DXConstantTableImpl *table, + struct ctab_constant *constant, LPCSTR name) +{ + UINT i, count, length; + struct ctab_constant *handles; + LPCSTR part; + + TRACE("table %p, constant %p, name %s\n", table, constant, debugstr_a(name)); + + if (!name || !*name) return NULL; + + if (!constant) + { + count = table->desc.Constants; + handles = table->constants; + } + else + { + count = constant->desc.StructMembers; + handles = constant->constants; + } + + length = strcspn( name, "[." ); + part = name + length; + + for (i = 0; i < count; i++) + { + if (strlen(handles[i].desc.Name) == length && !strncmp(handles[i].desc.Name, name, length)) + { + switch (*part++) + { + case '.': + return get_constant_by_name(NULL, &handles[i], part); + + case '[': + return get_constant_element_by_name(&handles[i], part); + + case '\0': + TRACE("Returning parameter %p\n", &handles[i]); + return &handles[i]; + + default: + FIXME("Unhandled case \"%c\"\n", *--part); + break; + } + } + } + + TRACE("Constant not found\n"); + return NULL; +} + static struct ctab_constant *is_valid_sub_constant(struct ctab_constant *parent, struct ctab_constant *constant) { UINT i, count; @@ -731,6 +823,15 @@ static inline struct ctab_constant *is_valid_constant(struct ID3DXConstantTableI return NULL; } +static inline struct ctab_constant *get_valid_constant(struct ID3DXConstantTableImpl *table, D3DXHANDLE handle) +{ + struct ctab_constant *constant = is_valid_constant(table, handle); + + if (!constant) constant = get_constant_by_name(table, NULL, handle); + + return constant; +} + static inline void set_float_shader_constant(struct ID3DXConstantTableImpl *table, IDirect3DDevice9 *device, UINT register_index, const FLOAT *data, UINT count) { @@ -887,24 +988,14 @@ static D3DXHANDLE WINAPI ID3DXConstantTableImpl_GetConstant(ID3DXConstantTable * static D3DXHANDLE WINAPI ID3DXConstantTableImpl_GetConstantByName(ID3DXConstantTable *iface, D3DXHANDLE constant, LPCSTR name) { struct ID3DXConstantTableImpl *This = impl_from_ID3DXConstantTable(iface); - UINT i; + struct ctab_constant *c = get_valid_constant(This, constant); TRACE("(%p)->(%p, %s)\n", This, constant, name); - if (!name) - return NULL; + c = get_constant_by_name(This, c, name); + TRACE("Returning constant %p\n", c); - if (constant) - { - FIXME("Only top level constants supported\n"); - return NULL; - } - - for (i = 0; i < This->desc.Constants; i++) - if (!strcmp(This->constants[i].desc.Name, name)) - return handle_from_constant(&This->constants[i]); - - return NULL; + return handle_from_constant(c); } static D3DXHANDLE WINAPI ID3DXConstantTableImpl_GetConstantElement(ID3DXConstantTable *iface, D3DXHANDLE constant, UINT index)
1
0
0
0
André Hentschel : winedbg: Add register data processing operators to Thumb2 disassembler.
by Alexandre Julliard
27 Aug '12
27 Aug '12
Module: wine Branch: master Commit: 7e132ac1a6acae42e1f2b959be92d830a2527abb URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7e132ac1a6acae42e1f2b959b…
Author: André Hentschel <nerv(a)dawncrow.de> Date: Sun Aug 26 18:41:57 2012 +0200 winedbg: Add register data processing operators to Thumb2 disassembler. --- programs/winedbg/be_arm.c | 48 ++++++++++++++++++++++++++++++--------------- 1 files changed, 32 insertions(+), 16 deletions(-) diff --git a/programs/winedbg/be_arm.c b/programs/winedbg/be_arm.c index 4d29014..6da8c9f 100644 --- a/programs/winedbg/be_arm.c +++ b/programs/winedbg/be_arm.c @@ -84,6 +84,10 @@ static char const tbl_sregops_t[][5] = { "strh", "ldsb", "ldrh", "ldsh" }; +static char const tbl_miscops_t2[][6] = { + "rev", "rev16", "rbit", "revsh" +}; + static char const tbl_width_t2[][2] = { "b", "h", "", "?" }; @@ -655,22 +659,33 @@ static UINT thumb2_disasm_misc(UINT inst, ADDRESS64 *addr) if (op1 == 1) { - switch (op2) - { - case 0: - dbg_printf("\n\trev\t"); - break; - case 1: - dbg_printf("\n\trev16\t"); - break; - case 2: - dbg_printf("\n\trbit\t"); - break; - case 3: - dbg_printf("\n\trevsh\t"); - break; - } - dbg_printf("%s, %s", tbl_regs[get_nibble(inst, 2)], tbl_regs[get_nibble(inst, 0)]); + dbg_printf("\n\t%s\t%s, %s", tbl_miscops_t2[op2], tbl_regs[get_nibble(inst, 2)], + tbl_regs[get_nibble(inst, 0)]); + return 0; + } + + return inst; +} + +static UINT thumb2_disasm_dataprocessingreg(UINT inst, ADDRESS64 *addr) +{ + WORD op1 = (inst >> 20) & 0x07; + WORD op2 = (inst >> 4) & 0x0f; + + if (!op2) + { + dbg_printf("\n\t%s%s\t%s, %s, %s", tbl_shifts[op1 >> 1], (op1 & 1)?"s":"", + tbl_regs[get_nibble(inst, 2)], tbl_regs[get_nibble(inst, 4)], + tbl_regs[get_nibble(inst, 0)]); + return 0; + } + + if ((op2 & 0x0C) == 0x08 && get_nibble(inst, 4) == 0x0f) + { + dbg_printf("\n\t%sxt%s\t%s, %s", (op1 & 1)?"u":"s", (op1 & 4)?"b":"h", + tbl_regs[get_nibble(inst, 2)], tbl_regs[get_nibble(inst, 0)]); + if (op2 & 0x03) + dbg_printf(", ROR #%u", (op2 & 3) * 8); return 0; } @@ -933,6 +948,7 @@ static const struct inst_thumb16 tbl_thumb16[] = { static const struct inst_arm tbl_thumb32[] = { { 0xf800f800, 0xf000f800, thumb2_disasm_branchlinked }, { 0xffc0f0c0, 0xfa80f080, thumb2_disasm_misc }, + { 0xff80f000, 0xfa00f000, thumb2_disasm_dataprocessingreg }, { 0xff8000c0, 0xfb000000, thumb2_disasm_mul }, { 0xff8000f0, 0xfb800000, thumb2_disasm_longmuldiv }, { 0xff8000f0, 0xfb8000f0, thumb2_disasm_longmuldiv },
1
0
0
0
André Hentschel : winedbg: Add store operators to Thumb2 disassembler.
by Alexandre Julliard
27 Aug '12
27 Aug '12
Module: wine Branch: master Commit: c5fbebd3a65052010e22fcf990e017d462895631 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c5fbebd3a65052010e22fcf99…
Author: André Hentschel <nerv(a)dawncrow.de> Date: Sun Aug 26 18:30:29 2012 +0200 winedbg: Add store operators to Thumb2 disassembler. --- programs/winedbg/be_arm.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 45 insertions(+), 0 deletions(-) diff --git a/programs/winedbg/be_arm.c b/programs/winedbg/be_arm.c index 26d4fbb..4d29014 100644 --- a/programs/winedbg/be_arm.c +++ b/programs/winedbg/be_arm.c @@ -84,6 +84,10 @@ static char const tbl_sregops_t[][5] = { "strh", "ldsb", "ldrh", "ldsh" }; +static char const tbl_width_t2[][2] = { + "b", "h", "", "?" +}; + static UINT db_get_inst(void* addr, int size) { UINT result = 0; @@ -760,6 +764,46 @@ static UINT thumb2_disasm_longmuldiv(UINT inst, ADDRESS64 *addr) return inst; } +static UINT thumb2_disasm_str(UINT inst, ADDRESS64 *addr) +{ + WORD op1 = (inst >> 21) & 0x07; + WORD op2 = (inst >> 6) & 0x3f; + + if ((op1 & 0x03) == 3) return inst; + + if (!(op1 & 0x04) && inst & 0x0800) + { + int offset; + dbg_printf("\n\tstr%s\t%s, [%s", tbl_width_t2[op1 & 0x03], tbl_regs[get_nibble(inst, 3)], + tbl_regs[get_nibble(inst, 4)]); + + offset = inst & 0xff; + if (!(inst & 0x0200)) offset *= -1; + + if (!(inst & 0x0400) && (inst & 0x0100)) dbg_printf("], #%i", offset); + else if (inst & 0x0400) dbg_printf(", #%i]%s", offset, (inst & 0x0100)?"!":""); + else return inst; + return 0; + } + + if (!(op1 & 0x04) && !op2) + { + dbg_printf("\n\tstr%s\t%s, [%s, %s, LSL #%u]", tbl_width_t2[op1 & 0x03], + tbl_regs[get_nibble(inst, 3)], tbl_regs[get_nibble(inst, 4)], + tbl_regs[get_nibble(inst, 0)], (inst >> 4) & 0x3); + return 0; + } + + if (op1 & 0x04) + { + dbg_printf("\n\tstr%s\t%s, [%s, #%u]", tbl_width_t2[op1 & 0x03], + tbl_regs[get_nibble(inst, 3)], tbl_regs[get_nibble(inst, 4)], inst & 0x0fff); + return 0; + } + + return inst; +} + static UINT thumb2_disasm_ldrword(UINT inst, ADDRESS64 *addr) { WORD op1 = (inst >> 23) & 0x01; @@ -892,6 +936,7 @@ static const struct inst_arm tbl_thumb32[] = { { 0xff8000c0, 0xfb000000, thumb2_disasm_mul }, { 0xff8000f0, 0xfb800000, thumb2_disasm_longmuldiv }, { 0xff8000f0, 0xfb8000f0, thumb2_disasm_longmuldiv }, + { 0xff100000, 0xf8000000, thumb2_disasm_str }, { 0xff700000, 0xf8500000, thumb2_disasm_ldrword }, { 0xef000010, 0xee000010, thumb2_disasm_coprocmov1 }, { 0x00000000, 0x00000000, NULL }
1
0
0
0
Nikolay Sivov : msxml3: Implement xmldecl-version property for a reader.
by Alexandre Julliard
27 Aug '12
27 Aug '12
Module: wine Branch: master Commit: 2a8552a925566e4f3c4062a5b6829ddb2bd4097c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2a8552a925566e4f3c4062a5b…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Mon Aug 27 09:39:43 2012 +0400 msxml3: Implement xmldecl-version property for a reader. --- dlls/msxml3/saxreader.c | 20 ++++++++++++++++ dlls/msxml3/tests/saxreader.c | 49 +++++++++++++++++++++++++++++++++++++++- 2 files changed, 67 insertions(+), 2 deletions(-) diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c index d10b822..9ebdc0f 100644 --- a/dlls/msxml3/saxreader.c +++ b/dlls/msxml3/saxreader.c @@ -209,6 +209,7 @@ typedef struct BOOL isParsing; struct bstrpool pool; saxreader_feature features; + BSTR xmldecl_version; MSXML_VERSION version; } saxreader; @@ -334,6 +335,9 @@ static inline int saxreader_has_handler(const saxlocator *locator, enum saxhandl static const WCHAR PropertyCharsetW[] = { 'c','h','a','r','s','e','t',0 }; +static const WCHAR PropertyXmlDeclVersionW[] = { + 'x','m','l','d','e','c','l','-','v','e','r','s','i','o','n',0 +}; static const WCHAR PropertyDeclHandlerW[] = { 'h','t','t','p',':','/','/','x','m','l','.','o','r','g','/', 's','a','x','/','p','r','o','p','e','r','t','i','e','s','/', @@ -1311,6 +1315,13 @@ static void libxmlStartDocument(void *ctx) This->column++; } + /* store version value, declaration has to contain version attribute */ + if (This->pParserCtxt->standalone != -1) + { + SysFreeString(This->saxreader->xmldecl_version); + This->saxreader->xmldecl_version = bstr_from_xmlChar(This->pParserCtxt->version); + } + if (saxreader_has_handler(This, SAXContentHandler)) { if(This->vbInterface) @@ -2654,6 +2665,13 @@ static HRESULT internal_getProperty(const saxreader* This, const WCHAR *prop, VA return S_OK; } + if (!memcmp(PropertyXmlDeclVersionW, prop, sizeof(PropertyXmlDeclVersionW))) + { + V_VT(value) = VT_BSTR; + V_BSTR(value) = SysAllocString(This->xmldecl_version); + return S_OK; + } + FIXME("(%p)->(%s) unsupported property\n", This, debugstr_w(prop)); return E_NOTIMPL; @@ -2725,6 +2743,7 @@ static ULONG WINAPI saxxmlreader_Release( IUnknown_Release(iface->vbhandler); } + SysFreeString(This->xmldecl_version); free_bstr_pool(&This->pool); release_dispex(&This->dispex); @@ -3214,6 +3233,7 @@ HRESULT SAXXMLReader_create(MSXML_VERSION version, IUnknown *outer, LPVOID *ppOb reader->ref = 1; memset(reader->saxhandlers, 0, sizeof(reader->saxhandlers)); reader->isParsing = FALSE; + reader->xmldecl_version = NULL; reader->pool.pool = NULL; reader->pool.index = 0; reader->pool.len = 0; diff --git a/dlls/msxml3/tests/saxreader.c b/dlls/msxml3/tests/saxreader.c index 9216f3a..bcf7529 100644 --- a/dlls/msxml3/tests/saxreader.c +++ b/dlls/msxml3/tests/saxreader.c @@ -557,7 +557,7 @@ static const CHAR szUtf8XML[] = static const char utf8xml2[] = "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n"; -static const CHAR testXML[] = +static const char testXML[] = "<?xml version=\"1.0\" ?>\n" "<BankAccount>\n" " <Number>1234</Number>\n" @@ -2247,6 +2247,7 @@ static void test_saxreader_properties(void) const struct saxreader_props_test_t *ptr = props_test_data; ISAXXMLReader *reader; HRESULT hr; + VARIANT v; hr = CoCreateInstance(&CLSID_SAXXMLReader, NULL, CLSCTX_INPROC_SERVER, &IID_ISAXXMLReader, (void**)&reader); @@ -2257,7 +2258,6 @@ static void test_saxreader_properties(void) while (ptr->prop_name) { - VARIANT v; LONG ref; init_saxlexicalhandler(&lexicalhandler, S_OK); @@ -2356,9 +2356,54 @@ static void test_saxreader_properties(void) ok(V_UNKNOWN(&v) != NULL, "got %p\n", V_UNKNOWN(&v)); ptr++; + free_bstrs(); } ISAXXMLReader_Release(reader); + + if (!is_clsid_supported(&CLSID_SAXXMLReader40, reader_support_data)) + return; + + hr = CoCreateInstance(&CLSID_SAXXMLReader40, NULL, CLSCTX_INPROC_SERVER, + &IID_ISAXXMLReader, (void**)&reader); + EXPECT_HR(hr, S_OK); + + /* xmldecl-version property */ + V_VT(&v) = VT_EMPTY; + V_BSTR(&v) = (void*)0xdeadbeef; + hr = ISAXXMLReader_getProperty(reader, _bstr_("xmldecl-version"), &v); + EXPECT_HR(hr, S_OK); + ok(V_VT(&v) == VT_BSTR, "got %d\n", V_VT(&v)); + ok(V_BSTR(&v) == NULL, "got %s\n", wine_dbgstr_w(V_BSTR(&v))); + + /* stream without declaration */ + V_VT(&v) = VT_BSTR; + V_BSTR(&v) = _bstr_("<element></element>"); + hr = ISAXXMLReader_parse(reader, v); + EXPECT_HR(hr, S_OK); + + V_VT(&v) = VT_EMPTY; + V_BSTR(&v) = (void*)0xdeadbeef; + hr = ISAXXMLReader_getProperty(reader, _bstr_("xmldecl-version"), &v); + EXPECT_HR(hr, S_OK); + ok(V_VT(&v) == VT_BSTR, "got %d\n", V_VT(&v)); + ok(V_BSTR(&v) == NULL, "got %s\n", wine_dbgstr_w(V_BSTR(&v))); + + /* stream with declaration */ + V_VT(&v) = VT_BSTR; + V_BSTR(&v) = _bstr_("<?xml version=\"1.0\"?><element></element>"); + hr = ISAXXMLReader_parse(reader, v); + EXPECT_HR(hr, S_OK); + + V_VT(&v) = VT_EMPTY; + V_BSTR(&v) = (void*)0xdeadbeef; + hr = ISAXXMLReader_getProperty(reader, _bstr_("xmldecl-version"), &v); + EXPECT_HR(hr, S_OK); + ok(V_VT(&v) == VT_BSTR, "got %d\n", V_VT(&v)); + ok(!lstrcmpW(V_BSTR(&v), _bstr_("1.0")), "got %s\n", wine_dbgstr_w(V_BSTR(&v))); + VariantClear(&v); + + ISAXXMLReader_Release(reader); free_bstrs(); }
1
0
0
0
Nikolay Sivov : wmi: Implement SystemName property for service class.
by Alexandre Julliard
27 Aug '12
27 Aug '12
Module: wine Branch: master Commit: 240d1e4f18746c5b839c7e5c833bbcc039a83a52 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=240d1e4f18746c5b839c7e5c8…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Mon Aug 27 08:29:21 2012 +0400 wmi: Implement SystemName property for service class. --- dlls/wbemprox/builtin.c | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c index f20a279..8f2335b 100644 --- a/dlls/wbemprox/builtin.c +++ b/dlls/wbemprox/builtin.c @@ -153,6 +153,8 @@ static const WCHAR prop_stateW[] = {'S','t','a','t','e',0}; static const WCHAR prop_systemdirectoryW[] = {'S','y','s','t','e','m','D','i','r','e','c','t','o','r','y',0}; +static const WCHAR prop_systemnameW[] = + {'S','y','s','t','e','m','N','a','m','e',0}; static const WCHAR prop_tagW[] = {'T','a','g',0}; static const WCHAR prop_threadcountW[] = @@ -262,7 +264,8 @@ static const struct column col_service[] = { prop_processidW, CIM_UINT32 }, { prop_servicetypeW, CIM_STRING }, { prop_startmodeW, CIM_STRING }, - { prop_stateW, CIM_STRING } + { prop_stateW, CIM_STRING }, + { prop_systemnameW, CIM_STRING|COL_FLAG_DYNAMIC } }; static const struct column col_stdregprov[] = { @@ -400,6 +403,7 @@ struct record_service const WCHAR *servicetype; const WCHAR *startmode; const WCHAR *state; + const WCHAR *systemname; }; struct record_stdregprov { @@ -868,6 +872,8 @@ static void fill_service( struct table *table ) SC_HANDLE manager; ENUM_SERVICE_STATUS_PROCESSW *tmp, *services = NULL; SERVICE_STATUS_PROCESS *status; + WCHAR sysnameW[MAX_COMPUTERNAME_LENGTH + 1]; + DWORD len = sizeof(sysnameW) / sizeof(sysnameW[0]); UINT i, num_rows = 0, offset = 0, size = 256, needed, count; BOOL ret; @@ -890,6 +896,8 @@ static void fill_service( struct table *table ) } if (!(table->data = heap_alloc( sizeof(*rec) * count ))) goto done; + GetComputerNameW( sysnameW, &len ); + for (i = 0; i < count; i++) { QUERY_SERVICE_CONFIGW *config; @@ -920,6 +928,7 @@ static void fill_service( struct table *table ) rec->servicetype = get_service_type( status->dwServiceType ); rec->startmode = get_service_startmode( startmode ); rec->state = get_service_state( status->dwCurrentState ); + rec->systemname = heap_strdupW( sysnameW ); offset += sizeof(*rec); num_rows++; }
1
0
0
0
Nikolay Sivov : wmi: Implement StartMode property for service class.
by Alexandre Julliard
27 Aug '12
27 Aug '12
Module: wine Branch: master Commit: 773cf1e5995a7598cb43495b1358268284193620 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=773cf1e5995a7598cb43495b1…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Sun Aug 26 21:29:29 2012 +0400 wmi: Implement StartMode property for service class. --- dlls/wbemprox/builtin.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 45 insertions(+), 0 deletions(-) diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c index ce18b92..f20a279 100644 --- a/dlls/wbemprox/builtin.c +++ b/dlls/wbemprox/builtin.c @@ -143,6 +143,8 @@ static const WCHAR prop_serialnumberW[] = {'S','e','r','i','a','l','N','u','m','b','e','r',0}; static const WCHAR prop_servicetypeW[] = {'S','e','r','v','i','c','e','T','y','p','e',0}; +static const WCHAR prop_startmodeW[] = + {'S','t','a','r','t','M','o','d','e',0}; static const WCHAR prop_sizeW[] = {'S','i','z','e',0}; static const WCHAR prop_speedW[] = @@ -259,6 +261,7 @@ static const struct column col_service[] = { prop_nameW, CIM_STRING|COL_FLAG_DYNAMIC|COL_FLAG_KEY }, { prop_processidW, CIM_UINT32 }, { prop_servicetypeW, CIM_STRING }, + { prop_startmodeW, CIM_STRING }, { prop_stateW, CIM_STRING } }; static const struct column col_stdregprov[] = @@ -395,6 +398,7 @@ struct record_service const WCHAR *name; UINT32 process_id; const WCHAR *servicetype; + const WCHAR *startmode; const WCHAR *state; }; struct record_stdregprov @@ -836,6 +840,28 @@ static const WCHAR *get_service_state( DWORD state ) } } +static const WCHAR *get_service_startmode( DWORD mode ) +{ + static const WCHAR bootW[] = {'B','o','o','t',0}; + static const WCHAR systemW[] = {'S','y','s','t','e','m',0}; + static const WCHAR autoW[] = {'A','u','t','o',0}; + static const WCHAR manualW[] = {'M','a','n','u','a','l',0}; + static const WCHAR disabledW[] = {'D','i','s','a','b','l','e','d',0}; + static const WCHAR unknownW[] = {'U','n','k','n','o','w','n',0}; + + switch (mode) + { + case SERVICE_BOOT_START: return bootW; + case SERVICE_SYSTEM_START: return systemW; + case SERVICE_AUTO_START: return autoW; + case SERVICE_DEMAND_START: return manualW; + case SERVICE_DISABLED: return disabledW; + default: + ERR("unknown mode 0x%x\n", mode); + return unknownW; + } +} + static void fill_service( struct table *table ) { struct record_service *rec; @@ -866,6 +892,24 @@ static void fill_service( struct table *table ) for (i = 0; i < count; i++) { + QUERY_SERVICE_CONFIGW *config; + SC_HANDLE service; + DWORD startmode; + DWORD size; + + service = OpenServiceW(manager, services[i].lpServiceName, GENERIC_READ); + QueryServiceConfigW(service, NULL, 0, &size); + config = heap_alloc(size); + if (QueryServiceConfigW(service, config, size, &size)) + startmode = config->dwStartType; + else + { + ERR("failed to get %s service config data\n", debugstr_w(services[i].lpServiceName)); + startmode = SERVICE_DISABLED; + } + CloseServiceHandle(service); + heap_free(config); + status = &services[i].ServiceStatusProcess; rec = (struct record_service *)(table->data + offset); rec->accept_pause = (status->dwControlsAccepted & SERVICE_ACCEPT_PAUSE_CONTINUE) ? -1 : 0; @@ -874,6 +918,7 @@ static void fill_service( struct table *table ) rec->name = heap_strdupW( services[i].lpServiceName ); rec->process_id = status->dwProcessId; rec->servicetype = get_service_type( status->dwServiceType ); + rec->startmode = get_service_startmode( startmode ); rec->state = get_service_state( status->dwCurrentState ); offset += sizeof(*rec); num_rows++;
1
0
0
0
← Newer
1
...
7
8
9
10
11
12
13
...
55
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
Results per page:
10
25
50
100
200