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
May 2013
----- 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
498 discussions
Start a n
N
ew thread
Christian Costa : d3dxof: Cleanup separators handling and allow multi-semicolons + single comma separator .
by Alexandre Julliard
22 May '13
22 May '13
Module: wine Branch: master Commit: e7c3b03531a9642cb8cce81322906c0281fa5928 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e7c3b03531a9642cb8cce8132…
Author: Christian Costa <titan.costa(a)gmail.com> Date: Tue May 21 20:02:03 2013 +0200 d3dxof: Cleanup separators handling and allow multi-semicolons + single comma separator. --- dlls/d3dxof/parsing.c | 42 ++++++++++++++++-------------------------- dlls/d3dxof/tests/d3dxof.c | 22 +++++++++++----------- 2 files changed, 27 insertions(+), 37 deletions(-) diff --git a/dlls/d3dxof/parsing.c b/dlls/d3dxof/parsing.c index 37cf2e1..2faf7a2 100644 --- a/dlls/d3dxof/parsing.c +++ b/dlls/d3dxof/parsing.c @@ -1141,6 +1141,7 @@ static BOOL parse_object_members_list(parse_buffer * buf) { ULONG k; ULONG nb_elems = 1; + BOOL basic_type = TRUE; buf->pxo->members[i].name = pt->members[i].name; buf->pxo->members[i].start = buf->cur_pos_data; @@ -1157,26 +1158,12 @@ static BOOL parse_object_members_list(parse_buffer * buf) for (k = 0; k < nb_elems; k++) { - if (buf->txt && k) - { - token = check_TOKEN(buf); - if (token == TOKEN_COMMA) - { - get_TOKEN(buf); - } - else - { - /* Allow comma omission */ - if (!((token == TOKEN_FLOAT) || (token == TOKEN_INTEGER))) - return FALSE; - } - } - if (pt->members[i].type == TOKEN_NAME) { ULONG j; TRACE("Found sub-object %s\n", buf->pdxf->xtemplates[pt->members[i].idx_template].name); + basic_type = FALSE; buf->level++; /* To do template lookup */ for (j = 0; j < buf->pdxf->nb_xtemplates; j++) @@ -1270,23 +1257,26 @@ static BOOL parse_object_members_list(parse_buffer * buf) } } else - { + { FIXME("Unexpected token %d\n", token); return FALSE; } } - } - - /* Empty arrays can have the semicolon at the end or not so remove it if any and skip next check */ - if (!nb_elems && (check_TOKEN(buf) == TOKEN_SEMICOLON)) - get_TOKEN(buf); - if (nb_elems && buf->txt && (check_TOKEN(buf) != TOKEN_CBRACE) && (check_TOKEN(buf) != TOKEN_NAME)) - { - token = get_TOKEN(buf); - if ((token != TOKEN_SEMICOLON) && (token != TOKEN_COMMA)) - return FALSE; + if (basic_type) + { + /* Handle separator only for basic types */ + token = check_TOKEN(buf); + if ((token != TOKEN_COMMA) && (token != TOKEN_SEMICOLON)) + return FALSE; + /* Allow multi-semicolons + single comma separator */ + while (check_TOKEN(buf) == TOKEN_SEMICOLON) + get_TOKEN(buf); + if (check_TOKEN(buf) == TOKEN_COMMA) + get_TOKEN(buf); + } } + buf->pxo->members[i].size = buf->cur_pos_data - buf->pxo->members[i].start; } diff --git a/dlls/d3dxof/tests/d3dxof.c b/dlls/d3dxof/tests/d3dxof.c index 52012d7..ecd4ba5 100644 --- a/dlls/d3dxof/tests/d3dxof.c +++ b/dlls/d3dxof/tests/d3dxof.c @@ -865,24 +865,24 @@ static void test_syntax_semicolon_comma(void) /* Test semicolon separators in text mode */ ret = test_buffer_object(dxfile, object_syntax_semicolon_txt, sizeof(object_syntax_semicolon_txt) - 1); - todo_wine ok(ret == DXFILE_OK, "test_buffer_object failed with %#x\n", ret); + ok(ret == DXFILE_OK, "test_buffer_object failed with %#x\n", ret); /* Test semicolon separators in binary mode */ ret = test_buffer_object(dxfile, object_syntax_semicolon_bin, sizeof(object_syntax_semicolon_bin)); - todo_wine ok(ret == DXFILE_OK, "test_buffer_object failed with %#x\n", ret); + ok(ret == DXFILE_OK, "test_buffer_object failed with %#x\n", ret); /* Test comma separators in text mode */ ret = test_buffer_object(dxfile, object_syntax_comma_txt, sizeof(object_syntax_comma_txt) - 1); ok(ret == DXFILE_OK, "test_buffer_object failed with %#x\n", ret); /* Test comma separators in binary mode */ ret = test_buffer_object(dxfile, object_syntax_comma_bin, sizeof(object_syntax_comma_bin)); - todo_wine ok(ret == DXFILE_OK, "test_buffer_object failed with %#x\n", ret); + ok(ret == DXFILE_OK, "test_buffer_object failed with %#x\n", ret); /* Test multi-semicolons separators in text mode */ ret = test_buffer_object(dxfile, object_syntax_multi_semicolons_txt, sizeof(object_syntax_multi_semicolons_txt) - 1); - todo_wine ok(ret == DXFILE_OK, "test_buffer_object failed with %#x\n", ret); + ok(ret == DXFILE_OK, "test_buffer_object failed with %#x\n", ret); /* Test multi-semicolons separators in binary mode */ ret = test_buffer_object(dxfile, object_syntax_multi_semicolons_bin, sizeof(object_syntax_multi_semicolons_bin)); - todo_wine ok(ret == DXFILE_OK, "test_buffer_object failed with %#x\n", ret); + ok(ret == DXFILE_OK, "test_buffer_object failed with %#x\n", ret); /* Test multi-commas separators in text mode */ ret = test_buffer_object(dxfile, object_syntax_multi_commas_txt, sizeof(object_syntax_multi_semicolons_txt) - 1); @@ -893,10 +893,10 @@ static void test_syntax_semicolon_comma(void) /* Test multi-semicolons + single comma separators in text mode */ ret = test_buffer_object(dxfile, object_syntax_multi_semicolons_and_comma_txt, sizeof(object_syntax_multi_semicolons_and_comma_txt) - 1); - todo_wine ok(ret == DXFILE_OK, "test_buffer_object failed with %#x\n", ret); + ok(ret == DXFILE_OK, "test_buffer_object failed with %#x\n", ret); /* Test multi-semicolons + single comma separators in binary mode */ ret = test_buffer_object(dxfile, object_syntax_multi_semicolons_and_comma_bin, sizeof(object_syntax_multi_semicolons_and_comma_bin)); - todo_wine ok(ret == DXFILE_OK, "test_buffer_object failed with %#x\n", ret); + ok(ret == DXFILE_OK, "test_buffer_object failed with %#x\n", ret); /* Test comma + semicolon separators in text mode */ ret = test_buffer_object(dxfile, object_syntax_comma_and_semicolon_txt, sizeof(object_syntax_comma_and_semicolon_txt) - 1); @@ -907,14 +907,14 @@ static void test_syntax_semicolon_comma(void) /* Test no ending separator in text mode */ ret = test_buffer_object(dxfile, object_syntax_no_ending_separator_txt, sizeof(object_syntax_no_ending_separator_txt) - 1); - todo_wine ok(ret == DXFILEERR_PARSEERROR, "test_buffer_object returned %#x, expected %#x\n", ret, DXFILEERR_PARSEERROR); + ok(ret == DXFILEERR_PARSEERROR, "test_buffer_object returned %#x, expected %#x\n", ret, DXFILEERR_PARSEERROR); /* Test no ending separator in binary mode */ ret = test_buffer_object(dxfile, object_syntax_no_ending_separator_bin, sizeof(object_syntax_no_ending_separator_bin)); ok(ret == DXFILEERR_PARSEERROR, "test_buffer_object returned %#x, expected %#x\n", ret, DXFILEERR_PARSEERROR); /* Test no array separator in text mode */ ret = test_buffer_object(dxfile, object_syntax_array_no_separator_txt, sizeof(object_syntax_array_no_separator_txt) - 1); - todo_wine ok(ret == DXFILEERR_PARSEERROR, "test_buffer_object returned %#x, expected %#x\n", ret, DXFILEERR_PARSEERROR); + ok(ret == DXFILEERR_PARSEERROR, "test_buffer_object returned %#x, expected %#x\n", ret, DXFILEERR_PARSEERROR); /* Test no array separator in binary mode */ ret = test_buffer_object(dxfile, object_syntax_array_no_separator_bin, sizeof(object_syntax_array_no_separator_bin)); ok(ret == DXFILEERR_PARSEERROR, "test_buffer_object returned %#x, expected %#x\n", ret, DXFILEERR_PARSEERROR); @@ -925,11 +925,11 @@ static void test_syntax_semicolon_comma(void) /* Test object with mixed integer list and integers + single comma separators in binary mode */ ret = test_buffer_object(dxfile, object_syntax_mixed_integer_list_bin, sizeof(object_syntax_mixed_integer_list_bin)); - ok(ret == DXFILE_OK, "test_buffer_object failed with %#x\n", ret); + todo_wine ok(ret == DXFILE_OK, "test_buffer_object failed with %#x\n", ret); /* Test integer list followed by a semicolon in binary mode */ ret = test_buffer_object(dxfile, object_syntax_integer_list_semicolon_bin, sizeof(object_syntax_integer_list_semicolon_bin)); - todo_wine ok(ret == DXFILEERR_PARSEERROR, "test_buffer_object returned %#x, expected %#x\n", ret, DXFILEERR_PARSEERROR); + ok(ret == DXFILEERR_PARSEERROR, "test_buffer_object returned %#x, expected %#x\n", ret, DXFILEERR_PARSEERROR); /* Test integer list followed by a comma in binary mode */ ret = test_buffer_object(dxfile, object_syntax_integer_list_comma_bin, sizeof(object_syntax_integer_list_comma_bin));
1
0
0
0
Hans Leidekker : wbemprox: Avoid storing rows that don' t match the query condition.
by Alexandre Julliard
22 May '13
22 May '13
Module: wine Branch: master Commit: 90e913c42fd4c82b7344e1ffefe5892c6d642d58 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=90e913c42fd4c82b7344e1ffe…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Wed May 22 10:10:16 2013 +0200 wbemprox: Avoid storing rows that don't match the query condition. --- dlls/wbemprox/builtin.c | 164 +++++++++++++++++++++++++++----------- dlls/wbemprox/table.c | 35 ++++---- dlls/wbemprox/wbemprox_private.h | 1 + 3 files changed, 135 insertions(+), 65 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=90e913c42fd4c82b7344e…
1
0
0
0
Hans Leidekker : wbemprox: Return a status from table fillers and add an optional condition parameter .
by Alexandre Julliard
22 May '13
22 May '13
Module: wine Branch: master Commit: aca407bfe799becf29e6cc5f615dcf990ed6d606 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=aca407bfe799becf29e6cc5f6…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Wed May 22 10:09:26 2013 +0200 wbemprox: Return a status from table fillers and add an optional condition parameter. --- dlls/wbemprox/builtin.c | 66 +++++++++++++++--------- dlls/wbemprox/query.c | 7 +-- dlls/wbemprox/table.c | 3 +- dlls/wbemprox/wbemprox_private.h | 104 ++++++++++++++++++++----------------- 4 files changed, 100 insertions(+), 80 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=aca407bfe799becf29e6c…
1
0
0
0
Hans Leidekker : wbemprox: Refill tables with dynamic content before each query.
by Alexandre Julliard
22 May '13
22 May '13
Module: wine Branch: master Commit: 8f69a44b1c7e8fa6efc9d5e74ccf8af385675abd URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8f69a44b1c7e8fa6efc9d5e74…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Wed May 22 10:08:17 2013 +0200 wbemprox: Refill tables with dynamic content before each query. --- dlls/wbemprox/query.c | 6 +++++- dlls/wbemprox/table.c | 2 +- dlls/wbemprox/wbemprox_private.h | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dlls/wbemprox/query.c b/dlls/wbemprox/query.c index 8ac42cc..fa03fcf 100644 --- a/dlls/wbemprox/query.c +++ b/dlls/wbemprox/query.c @@ -246,7 +246,11 @@ static HRESULT execute_view( struct view *view ) UINT i, j = 0, len; if (!view->table) return S_OK; - if (view->table->fill && !view->table->data) view->table->fill( view->table ); + if (view->table->fill) + { + clear_table( view->table ); + view->table->fill( view->table ); + } if (!view->table->num_rows) return S_OK; len = min( view->table->num_rows, 16 ); diff --git a/dlls/wbemprox/table.c b/dlls/wbemprox/table.c index 126dc0a..70ea98e 100644 --- a/dlls/wbemprox/table.c +++ b/dlls/wbemprox/table.c @@ -263,7 +263,7 @@ HRESULT get_method( const struct table *table, const WCHAR *name, class_method * } -static void clear_table( struct table *table ) +void clear_table( struct table *table ) { UINT i, j, type; LONGLONG val; diff --git a/dlls/wbemprox/wbemprox_private.h b/dlls/wbemprox/wbemprox_private.h index efdde76..a4d034d 100644 --- a/dlls/wbemprox/wbemprox_private.h +++ b/dlls/wbemprox/wbemprox_private.h @@ -171,6 +171,7 @@ struct table *create_table( const WCHAR *, UINT, const struct column *, UINT, BYTE *, void (*)(struct table *)) DECLSPEC_HIDDEN; BOOL add_table( struct table * ) DECLSPEC_HIDDEN; void free_columns( struct column *, UINT ) DECLSPEC_HIDDEN; +void clear_table( struct table * ) DECLSPEC_HIDDEN; void free_table( struct table * ) DECLSPEC_HIDDEN; UINT get_type_size( CIMTYPE ) DECLSPEC_HIDDEN; HRESULT get_column_index( const struct table *, const WCHAR *, UINT * ) DECLSPEC_HIDDEN;
1
0
0
0
Hans Leidekker : wbemprox: Fill tables at latest possible moment.
by Alexandre Julliard
22 May '13
22 May '13
Module: wine Branch: master Commit: 6253d49e152101282d04dea6ef66c8525f3489b8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6253d49e152101282d04dea6e…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Wed May 22 10:07:26 2013 +0200 wbemprox: Fill tables at latest possible moment. --- dlls/wbemprox/query.c | 4 +++- dlls/wbemprox/table.c | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/wbemprox/query.c b/dlls/wbemprox/query.c index 1850368..8ac42cc 100644 --- a/dlls/wbemprox/query.c +++ b/dlls/wbemprox/query.c @@ -245,7 +245,9 @@ static HRESULT execute_view( struct view *view ) { UINT i, j = 0, len; - if (!view->table || !view->table->num_rows) return S_OK; + if (!view->table) return S_OK; + if (view->table->fill && !view->table->data) view->table->fill( view->table ); + if (!view->table->num_rows) return S_OK; len = min( view->table->num_rows, 16 ); if (!(view->result = heap_alloc( len * sizeof(UINT) ))) return E_OUTOFMEMORY; diff --git a/dlls/wbemprox/table.c b/dlls/wbemprox/table.c index c114e53..126dc0a 100644 --- a/dlls/wbemprox/table.c +++ b/dlls/wbemprox/table.c @@ -336,7 +336,6 @@ struct table *grab_table( const WCHAR *name ) { if (!strcmpiW( table->name, name )) { - if (table->fill && !table->data) table->fill( table ); TRACE("returning %p\n", table); return addref_table( table ); }
1
0
0
0
Hans Leidekker : wbemprox: Implement Win32_Process.Name.
by Alexandre Julliard
22 May '13
22 May '13
Module: wine Branch: master Commit: d030b819c1f2971d45e9b110cf67b2ad89194f8b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d030b819c1f2971d45e9b110c…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Wed May 22 10:06:35 2013 +0200 wbemprox: Implement Win32_Process.Name. --- dlls/wbemprox/builtin.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c index e5a4e37..a0dac2e 100644 --- a/dlls/wbemprox/builtin.c +++ b/dlls/wbemprox/builtin.c @@ -43,8 +43,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(wbemprox); -static const WCHAR class_logicaldisk2W[] = - {'C','I','M','_','L','o','g','i','c','a','l','D','i','s','k',0}; static const WCHAR class_baseboardW[] = {'W','i','n','3','2','_','B','a','s','e','B','o','a','r','d',0}; static const WCHAR class_biosW[] = @@ -59,6 +57,8 @@ static const WCHAR class_diskpartitionW[] = {'W','i','n','3','2','_','D','i','s','k','P','a','r','t','i','t','i','o','n',0}; static const WCHAR class_logicaldiskW[] = {'W','i','n','3','2','_','L','o','g','i','c','a','l','D','i','s','k',0}; +static const WCHAR class_logicaldisk2W[] = + {'C','I','M','_','L','o','g','i','c','a','l','D','i','s','k',0}; static const WCHAR class_networkadapterW[] = {'W','i','n','3','2','_','N','e','t','w','o','r','k','A','d','a','p','t','e','r',0}; static const WCHAR class_osW[] = @@ -328,6 +328,7 @@ static const struct column col_process[] = { prop_commandlineW, CIM_STRING|COL_FLAG_DYNAMIC }, { prop_descriptionW, CIM_STRING|COL_FLAG_DYNAMIC }, { prop_handleW, CIM_STRING|COL_FLAG_DYNAMIC|COL_FLAG_KEY }, + { prop_nameW, CIM_STRING|COL_FLAG_DYNAMIC }, { prop_pprocessidW, CIM_UINT32, VT_I4 }, { prop_processidW, CIM_UINT32, VT_I4 }, { prop_threadcountW, CIM_UINT32, VT_I4 }, @@ -558,6 +559,7 @@ struct record_process const WCHAR *commandline; const WCHAR *description; const WCHAR *handle; + const WCHAR *name; UINT32 pprocess_id; UINT32 process_id; UINT32 thread_count; @@ -1040,6 +1042,7 @@ static void fill_process( struct table *table ) rec->description = heap_strdupW( entry.szExeFile ); sprintfW( handle, fmtW, entry.th32ProcessID ); rec->handle = heap_strdupW( handle ); + rec->name = heap_strdupW( entry.szExeFile ); rec->process_id = entry.th32ProcessID; rec->pprocess_id = entry.th32ParentProcessID; rec->thread_count = entry.cntThreads; @@ -1449,8 +1452,8 @@ static struct table builtin_classes[] = { class_compsysW, SIZEOF(col_compsys), col_compsys, 0, NULL, fill_compsys }, { class_diskdriveW, SIZEOF(col_diskdrive), col_diskdrive, SIZEOF(data_diskdrive), (BYTE *)data_diskdrive }, { class_diskpartitionW, SIZEOF(col_diskpartition), col_diskpartition, 0, NULL, fill_diskpartition }, - { class_logicaldisk2W, SIZEOF(col_logicaldisk), col_logicaldisk, 0, NULL, fill_logicaldisk }, { class_logicaldiskW, SIZEOF(col_logicaldisk), col_logicaldisk, 0, NULL, fill_logicaldisk }, + { class_logicaldisk2W, SIZEOF(col_logicaldisk), col_logicaldisk, 0, NULL, fill_logicaldisk }, { class_networkadapterW, SIZEOF(col_networkadapter), col_networkadapter, 0, NULL, fill_networkadapter }, { class_osW, SIZEOF(col_os), col_os, 0, NULL, fill_os }, { class_paramsW, SIZEOF(col_param), col_param, SIZEOF(data_param), (BYTE *)data_param },
1
0
0
0
Alistair Leslie-Hughes : include: Add DB_E_CONCURRENCYVIOLATION define.
by Alexandre Julliard
22 May '13
22 May '13
Module: wine Branch: master Commit: 1bf2cf3cd8909f32ae322ef35432eee17d1daf6e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1bf2cf3cd8909f32ae322ef35…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Mon May 20 10:57:11 2013 +1000 include: Add DB_E_CONCURRENCYVIOLATION define. --- include/oledberr.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/oledberr.h b/include/oledberr.h index c2033b6..b91b429 100644 --- a/include/oledberr.h +++ b/include/oledberr.h @@ -33,6 +33,8 @@ #define DB_E_BADCOMPAREOP 0x80040e27 #define DB_E_BADSTATUSVALUE 0x80040e28 +#define DB_E_CONCURRENCYVIOLATION 0x80040e38 + #define DB_E_DATAOVERFLOW 0x80040e57 #define DB_E_MISMATCHEDPROVIDER 0x80040e75
1
0
0
0
Alistair Leslie-Hughes : oledb32: Source status DBSTATUS_S_ISNULL applies to all conversions.
by Alexandre Julliard
22 May '13
22 May '13
Module: wine Branch: master Commit: 7dfa56886f9e64ec719e61ca761b113413042d2f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7dfa56886f9e64ec719e61ca7…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Tue May 21 13:43:42 2013 +1000 oledb32: Source status DBSTATUS_S_ISNULL applies to all conversions. --- dlls/oledb32/convert.c | 14 +++++++------- dlls/oledb32/tests/convert.c | 8 ++++++++ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/dlls/oledb32/convert.c b/dlls/oledb32/convert.c index 4bf2b85..ab188ee 100644 --- a/dlls/oledb32/convert.c +++ b/dlls/oledb32/convert.c @@ -184,6 +184,13 @@ static HRESULT WINAPI convert_DataConvert(IDataConvert* iface, return DB_E_UNSUPPORTEDCONVERSION; } + if(src_status == DBSTATUS_S_ISNULL) + { + *dst_status = DBSTATUS_S_ISNULL; + *dst_len = 0; + return S_OK; + } + if(src_type == DBTYPE_STR) { BSTR b; @@ -805,13 +812,6 @@ static HRESULT WINAPI convert_DataConvert(IDataConvert* iface, { VARIANT *v = dst; - if(src_status == DBSTATUS_S_ISNULL) - { - *dst_status = DBSTATUS_S_ISNULL; - *dst_len = 0; - return S_OK; - } - switch(src_type) { case DBTYPE_BOOL: diff --git a/dlls/oledb32/tests/convert.c b/dlls/oledb32/tests/convert.c index 305433a..92d3a64 100644 --- a/dlls/oledb32/tests/convert.c +++ b/dlls/oledb32/tests/convert.c @@ -884,6 +884,14 @@ todo_wine ok(dst_status == DBSTATUS_S_OK, "got %08x\n", dst_status); ok(dst_len == sizeof(i4), "got %ld\n", dst_len); ok(i4 == 10, "got %08x\n", i4); + + /* src_status = DBSTATUS_S_ISNULL */ + i4 = 0x12345678; + hr = IDataConvert_DataConvert(convert, DBTYPE_I4, DBTYPE_I4, 0, &dst_len, src, &i4, sizeof(i4), DBSTATUS_S_ISNULL, &dst_status, 0, 0, 0); + ok(hr == S_OK, "got %08x\n", hr); + ok(dst_status == DBSTATUS_S_ISNULL, "got %08x\n", dst_status); + ok(dst_len == 0, "got %ld\n", dst_len); + } static void test_converttoi8(void)
1
0
0
0
Alistair Leslie-Hughes : oledb32: Implement DataConvert DBTYPE_VARIANT( V_DATE)->DBTYPE_DBDATE.
by Alexandre Julliard
22 May '13
22 May '13
Module: wine Branch: master Commit: 24e56beec0cee65b22a674115ab11598d0c482f2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=24e56beec0cee65b22a674115…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Mon May 20 16:29:22 2013 +1000 oledb32: Implement DataConvert DBTYPE_VARIANT(V_DATE)->DBTYPE_DBDATE. --- dlls/oledb32/convert.c | 22 +++++++++++++++++++--- dlls/oledb32/tests/convert.c | 10 ++++++++++ 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/dlls/oledb32/convert.c b/dlls/oledb32/convert.c index fe7ba8c..4bf2b85 100644 --- a/dlls/oledb32/convert.c +++ b/dlls/oledb32/convert.c @@ -421,6 +421,21 @@ static HRESULT WINAPI convert_DataConvert(IDataConvert* iface, switch (src_type) { case DBTYPE_DBDATE: memcpy(d, src, sizeof(DBDATE)); hr = S_OK; break; + case DBTYPE_VARIANT: + if( V_VT((VARIANT*)src) == VT_DATE) + { + SYSTEMTIME st; + hr = (VariantTimeToSystemTime( V_DATE((VARIANT*)src), &st) ? S_OK : E_FAIL); + d->year = st.wYear; + d->month = st.wMonth; + d->day = st.wDay; + } + else + { + FIXME("Unimplemented variant type %d -> DBDATE\n", V_VT((VARIANT*)src)); + return E_NOTIMPL; + } + break; default: FIXME("Unimplemented conversion %04x -> DBDATE\n", src_type); return E_NOTIMPL; } break; @@ -446,7 +461,6 @@ static HRESULT WINAPI convert_DataConvert(IDataConvert* iface, break; } case DBTYPE_VARIANT: - { if( V_VT((VARIANT*)src) == VT_DATE) { SYSTEMTIME st; @@ -458,11 +472,13 @@ static HRESULT WINAPI convert_DataConvert(IDataConvert* iface, d->minute = st.wMinute; d->second = st.wSecond; d->fraction = st.wMilliseconds * 1000000; - break; } else + { FIXME("Unimplemented variant type %d -> DBTIMESTAMP\n", V_VT((VARIANT*)src)); - } + return E_NOTIMPL; + } + break; default: FIXME("Unimplemented conversion %04x -> DBTIMESTAMP\n", src_type); return E_NOTIMPL; } break; diff --git a/dlls/oledb32/tests/convert.c b/dlls/oledb32/tests/convert.c index 68df732..305433a 100644 --- a/dlls/oledb32/tests/convert.c +++ b/dlls/oledb32/tests/convert.c @@ -2462,6 +2462,7 @@ static void test_converttodbdate(void) DBDATE ts = {2013, 5, 14}; DBDATE dst; DBSTATUS dst_status; + VARIANT var; dst_len = 0; hr = IDataConvert_DataConvert(convert, DBTYPE_DBDATE, DBTYPE_DBDATE, sizeof(ts), &dst_len, &ts, &dst, 2, 0, &dst_status, 0, 0, 0); @@ -2470,6 +2471,15 @@ static void test_converttodbdate(void) ok(dst_len == sizeof(DBDATE), "got %ld\n", dst_len); ok(!memcmp(&ts, &dst, sizeof(DBDATE) ), "bytes differ\n"); + VariantInit(&var); + V_VT(&var) = VT_DATE; + V_DATE(&var) = 41408.086250; + dst_len = 0; + hr = IDataConvert_DataConvert(convert, DBTYPE_VARIANT, DBTYPE_DBDATE, sizeof(var), &dst_len, &var, &dst, 2, 0, &dst_status, 0, 0, 0); + ok(hr == S_OK, "got %08x\n", hr); + ok(dst_status == DBSTATUS_S_OK, "got %08x\n", dst_status); + ok(dst_len == sizeof(DBDATE), "got %ld\n", dst_len); + ok(!memcmp(&ts, &dst, sizeof(DBDATE) ), "bytes differ\n"); }
1
0
0
0
Frédéric Delanoy : vbscript: Fix typo.
by Alexandre Julliard
22 May '13
22 May '13
Module: wine Branch: master Commit: 4bd398120424a9e84f6defaa4bf743586999f809 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4bd398120424a9e84f6defaa4…
Author: Frédéric Delanoy <frederic.delanoy(a)gmail.com> Date: Tue May 21 22:53:46 2013 +0200 vbscript: Fix typo. --- dlls/vbscript/global.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/vbscript/global.c b/dlls/vbscript/global.c index fbd8601..c142d10 100644 --- a/dlls/vbscript/global.c +++ b/dlls/vbscript/global.c @@ -429,7 +429,7 @@ static HRESULT Global_CBool(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VAR val = V_R8(arg) > 0.0 || V_R8(arg) < 0.0; break; default: - ERR("Not a numeric vaule: %s\n", debugstr_variant(arg)); + ERR("Not a numeric value: %s\n", debugstr_variant(arg)); return E_FAIL; }
1
0
0
0
← Newer
1
...
14
15
16
17
18
19
20
...
50
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
Results per page:
10
25
50
100
200