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
March 2009
----- 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
834 discussions
Start a n
N
ew thread
Alexandre Julliard : iphlpapi: Reimplement GetIpForwardTable to avoid parsing the same information three times .
by Alexandre Julliard
02 Mar '09
02 Mar '09
Module: wine Branch: master Commit: 3ce9eb0f85618ba22700927b4196a06a152a009c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3ce9eb0f85618ba22700927b4…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Mar 2 12:49:09 2009 +0100 iphlpapi: Reimplement GetIpForwardTable to avoid parsing the same information three times. --- dlls/iphlpapi/iphlpapi_main.c | 45 +++----- dlls/iphlpapi/ipstats.c | 247 +++++++++++++++++----------------------- 2 files changed, 119 insertions(+), 173 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=3ce9eb0f85618ba227009…
1
0
0
0
Alexandre Julliard : iphlpapi: Reimplement GetIpNetTable to avoid parsing the same information three times .
by Alexandre Julliard
02 Mar '09
02 Mar '09
Module: wine Branch: master Commit: add9e025c2456e6e109ebcb0d3360b02f8b3e8cf URL:
http://source.winehq.org/git/wine.git/?a=commit;h=add9e025c2456e6e109ebcb0d…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Mar 2 12:45:58 2009 +0100 iphlpapi: Reimplement GetIpNetTable to avoid parsing the same information three times. --- dlls/iphlpapi/iphlpapi_main.c | 37 ++----- dlls/iphlpapi/ipstats.c | 232 ++++++++++++++++++++--------------------- 2 files changed, 122 insertions(+), 147 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=add9e025c2456e6e109eb…
1
0
0
0
Alexandre Julliard : iphlpapi: Reimplement GetTcpTable to avoid parsing the same information three times.
by Alexandre Julliard
02 Mar '09
02 Mar '09
Module: wine Branch: master Commit: 53d522bc545ca2d2bca012e5a4a70398144e63c0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=53d522bc545ca2d2bca012e5a…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Mar 2 12:45:12 2009 +0100 iphlpapi: Reimplement GetTcpTable to avoid parsing the same information three times. --- dlls/iphlpapi/iphlpapi_main.c | 52 ++++----- dlls/iphlpapi/ipstats.c | 273 ++++++++++++++++++----------------------- dlls/iphlpapi/ipstats.h | 3 +- 3 files changed, 145 insertions(+), 183 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=53d522bc545ca2d2bca01…
1
0
0
0
Alexandre Julliard : iphlpapi: Reimplement GetUdpTable to avoid parsing the same information three times.
by Alexandre Julliard
02 Mar '09
02 Mar '09
Module: wine Branch: master Commit: d069e498e17ae8daea44bf284deb0492c301d219 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d069e498e17ae8daea44bf284…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Mar 2 12:43:33 2009 +0100 iphlpapi: Reimplement GetUdpTable to avoid parsing the same information three times. --- dlls/iphlpapi/iphlpapi_main.c | 39 ++++---------- dlls/iphlpapi/ipstats.c | 118 ++++++++++++++++++++--------------------- 2 files changed, 68 insertions(+), 89 deletions(-) diff --git a/dlls/iphlpapi/iphlpapi_main.c b/dlls/iphlpapi/iphlpapi_main.c index f580ca8..c9ced14 100644 --- a/dlls/iphlpapi/iphlpapi_main.c +++ b/dlls/iphlpapi/iphlpapi_main.c @@ -1685,31 +1685,17 @@ DWORD WINAPI GetUdpStatistics(PMIB_UDPSTATS pStats) */ DWORD WINAPI GetUdpTable(PMIB_UDPTABLE pUdpTable, PDWORD pdwSize, BOOL bOrder) { - DWORD ret; + DWORD ret; + PMIB_UDPTABLE table; - TRACE("pUdpTable %p, pdwSize %p, bOrder %d\n", pUdpTable, pdwSize, - (DWORD)bOrder); - if (!pdwSize) - ret = ERROR_INVALID_PARAMETER; - else { - DWORD numEntries = getNumUdpEntries(); - DWORD size = sizeof(MIB_UDPTABLE); + TRACE("pUdpTable %p, pdwSize %p, bOrder %d\n", pUdpTable, pdwSize, bOrder); - if (numEntries > 1) - size += (numEntries - 1) * sizeof(MIB_UDPROW); - if (!pUdpTable || *pdwSize < size) { - *pdwSize = size; - ret = ERROR_INSUFFICIENT_BUFFER; - } - else { - PMIB_UDPTABLE table; + if (!pdwSize) return ERROR_INVALID_PARAMETER; - ret = getUdpTable(&table, GetProcessHeap(), 0); - if (!ret) { - size = sizeof(MIB_UDPTABLE); - if (table->dwNumEntries > 1) - size += (table->dwNumEntries - 1) * sizeof(MIB_UDPROW); - if (*pdwSize < size) { + ret = getUdpTable(&table, GetProcessHeap(), 0); + if (!ret) { + DWORD size = FIELD_OFFSET( MIB_UDPTABLE, table[table->dwNumEntries] ); + if (!pUdpTable || *pdwSize < size) { *pdwSize = size; ret = ERROR_INSUFFICIENT_BUFFER; } @@ -1719,16 +1705,11 @@ DWORD WINAPI GetUdpTable(PMIB_UDPTABLE pUdpTable, PDWORD pdwSize, BOOL bOrder) if (bOrder) qsort(pUdpTable->table, pUdpTable->dwNumEntries, sizeof(MIB_UDPROW), UdpTableSorter); - ret = NO_ERROR; } HeapFree(GetProcessHeap(), 0, table); - } - else - ret = ERROR_OUTOFMEMORY; } - } - TRACE("returning %d\n", ret); - return ret; + TRACE("returning %d\n", ret); + return ret; } diff --git a/dlls/iphlpapi/ipstats.c b/dlls/iphlpapi/ipstats.c index ada1430..57398bb 100644 --- a/dlls/iphlpapi/ipstats.c +++ b/dlls/iphlpapi/ipstats.c @@ -1,5 +1,7 @@ -/* Copyright (C) 2003,2006 Juan Lang +/* + * Copyright (C) 2003,2006 Juan Lang * Copyright (C) 2007 TransGaming Technologies Inc. + * Copyright (C) 2009 Alexandre Julliard * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -14,9 +16,6 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA - * - * This file implements statistics getting using the /proc filesystem exported - * by Linux, and maybe other OSes. */ #include "config.h" @@ -1480,72 +1479,71 @@ DWORD getNumUdpEntries(void) #endif } -DWORD getUdpTable(PMIB_UDPTABLE *ppUdpTable, HANDLE heap, DWORD flags) +static MIB_UDPTABLE *append_udp_row( HANDLE heap, DWORD flags, MIB_UDPTABLE *table, + DWORD *count, const MIB_UDPROW *row ) { - DWORD ret; + if (table->dwNumEntries >= *count) + { + MIB_UDPTABLE *new_table; + DWORD new_count = table->dwNumEntries * 2; -#if defined(HAVE_SYS_SYSCTL_H) && defined(NET_RT_DUMP) - ERR ("unimplemented!\n"); - return ERROR_NOT_SUPPORTED; -#endif + if (!(new_table = HeapReAlloc( heap, flags, table, FIELD_OFFSET(MIB_UDPTABLE, table[new_count] )))) + { + HeapFree( heap, 0, table ); + return NULL; + } + *count = new_count; + table = new_table; + } + memcpy( &table->table[table->dwNumEntries++], row, sizeof(*row) ); + return table; +} - if (!ppUdpTable) - ret = ERROR_INVALID_PARAMETER; - else { - DWORD numEntries = getNumUdpEntries(); - DWORD size = sizeof(MIB_UDPTABLE); - PMIB_UDPTABLE table; +DWORD getUdpTable(PMIB_UDPTABLE *ppUdpTable, HANDLE heap, DWORD flags) +{ + MIB_UDPTABLE *table; + MIB_UDPROW row; + DWORD ret = NO_ERROR, count = 16; - if (numEntries > 1) - size += (numEntries - 1) * sizeof(MIB_UDPROW); - table = HeapAlloc(heap, flags, size); - if (table) { - FILE *fp; + if (!ppUdpTable) return ERROR_INVALID_PARAMETER; - ret = NO_ERROR; - *ppUdpTable = table; - table->dwNumEntries = 0; - /* get from /proc/net/udp, no error if can't */ - fp = fopen("/proc/net/udp", "r"); - if (fp) { - char buf[512] = { 0 }, *ptr; + if (!(table = HeapAlloc( heap, flags, FIELD_OFFSET(MIB_UDPTABLE, table[count] )))) + return ERROR_OUTOFMEMORY; - /* skip header line */ - ptr = fgets(buf, sizeof(buf), fp); - while (ptr && table->dwNumEntries < numEntries) { - memset(&table->table[table->dwNumEntries], 0, sizeof(MIB_UDPROW)); - ptr = fgets(buf, sizeof(buf), fp); - if (ptr) { - char *endPtr; + table->dwNumEntries = 0; - if (ptr && *ptr) { - strtoul(ptr, &endPtr, 16); /* skip */ - ptr = endPtr; - } - if (ptr && *ptr) { - ptr++; - table->table[table->dwNumEntries].dwLocalAddr = strtoul(ptr, - &endPtr, 16); - ptr = endPtr; - } - if (ptr && *ptr) { - ptr++; - table->table[table->dwNumEntries].dwLocalPort = strtoul(ptr, - &endPtr, 16); - ptr = endPtr; +#ifdef __linux__ + { + FILE *fp; + + if ((fp = fopen("/proc/net/udp", "r"))) + { + char buf[512], *ptr; + DWORD dummy; + + /* skip header line */ + ptr = fgets(buf, sizeof(buf), fp); + while ((ptr = fgets(buf, sizeof(buf), fp))) + { + if (sscanf( ptr, "%u: %x:%x", &dummy, &row.dwLocalAddr, &row.dwLocalPort ) != 3) + continue; + row.dwLocalPort = htons( row.dwLocalPort ); + if (!(table = append_udp_row( heap, flags, table, &count, &row ))) + break; } - table->dwNumEntries++; - } + fclose(fp); } - fclose(fp); - } - else - ret = ERROR_NOT_SUPPORTED; + else ret = ERROR_NOT_SUPPORTED; } - else - ret = ERROR_OUTOFMEMORY; - } - return ret; +#else + FIXME( "not implemented\n" ); + ret = ERROR_NOT_SUPPORTED; +#endif + + if (!table) return ERROR_OUTOFMEMORY; + if (!ret) *ppUdpTable = table; + else HeapFree( heap, flags, table ); + return ret; }
1
0
0
0
Hwang YunSong(=?UTF-8?Q?=ED=99=A9=EC=9C=A4=EC=84=B1?=) : wordpad: Updated Korean resource.
by Alexandre Julliard
02 Mar '09
02 Mar '09
Module: wine Branch: master Commit: 9b309b0142144839f51f4de86cd0ed378fb2c680 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9b309b0142144839f51f4de86…
Author: Hwang YunSong(황윤성) <hys545(a)dreamwiz.com> Date: Mon Mar 2 16:42:56 2009 +0900 wordpad: Updated Korean resource. --- programs/wordpad/Ko.rc | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/programs/wordpad/Ko.rc b/programs/wordpad/Ko.rc index 79885f5..7bfaf00 100644 --- a/programs/wordpad/Ko.rc +++ b/programs/wordpad/Ko.rc @@ -242,4 +242,5 @@ BEGIN STRING_OPEN_FAILED, "������ �� �� �����ϴ�." STRING_OPEN_ACCESS_DENIED, "������ �� ������ �����ϴ�." STRING_PRINTING_NOT_IMPLEMENTED, "�μ�� �������� �ʽ��ϴ�" + STRING_MAX_TAB_STOPS, " �������� 32�� �̻� �߰� �� �� �����ϴ�." END
1
0
0
0
Hwang YunSong(=?UTF-8?Q?=ED=99=A9=EC=9C=A4=EC=84=B1?=) : setupapi: Updated Korean resource.
by Alexandre Julliard
02 Mar '09
02 Mar '09
Module: wine Branch: master Commit: ff878b0c373b5ae8efe2306e322c2518e39fb19d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ff878b0c373b5ae8efe2306e3…
Author: Hwang YunSong(황윤성) <hys545(a)dreamwiz.com> Date: Mon Mar 2 16:42:16 2009 +0900 setupapi: Updated Korean resource. --- dlls/setupapi/Ko.rc | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/dlls/setupapi/Ko.rc b/dlls/setupapi/Ko.rc index 9c1fad3..dfd75a9 100644 --- a/dlls/setupapi/Ko.rc +++ b/dlls/setupapi/Ko.rc @@ -20,6 +20,14 @@ LANGUAGE LANG_KOREAN, SUBLANG_DEFAULT +STRINGTABLE DISCARDABLE +{ + IDS_PROMPTDISK "�� ���� '%s' �� %s���� �ʿ�� �մϴ�" + IDS_UNKNOWN "�˼� ����" + IDS_COPYFROM "������ ������ ��ġ�� ��:" + IDS_INFO "������ ��ġ�� ��θ� �Է��ϰ�, Ȯ���� Ŭ���Ͻʽÿ�." +} + COPYFILEDLGORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 20, 20, 208, 105 STYLE DS_MODALFRAME | DS_SETFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION CAPTION "���� ������..." @@ -32,3 +40,17 @@ BEGIN LTEXT "", DESTSTRORD, 7, 41, 194, 22, WS_CHILD | WS_VISIBLE | WS_GROUP CONTROL "", PROGRESSORD, "setupx_progress", 7, 63, 194, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP END + +IDPROMPTFORDISK DIALOG MOVEABLE DISCARDABLE 0, 0, 250, 120 +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU +CAPTION "�ʿ��� ���ϵ�" +FONT 8, "MS Shell Dlg" +BEGIN + LTEXT "���ۻ��� ��ġ ��ũ�� �����ϰ�, \ �Ʒ��� ���õ� ����̺갡 �ùٸ��� Ȯ���Ͻÿ� ", IDC_FILENEEDED, 10, 10, 175, 22, WS_CHILD | WS_VISIBLE | WS_GROUP + LTEXT "", IDC_INFO, 10, 50, 175, 22, WS_CHILD | WS_VISIBLE | WS_GROUP + LTEXT "���ۻ��� ���ϵ� ������ ��:", IDC_COPYFROM, 10, 90, 175, 11, WS_CHILD | WS_VISIBLE | WS_GROUP + CONTROL "", IDC_PATH, "COMBOBOX", WS_TABSTOP | WS_GROUP | WS_VSCROLL | WS_VISIBLE | CBS_DISABLENOSCROLL | CBS_AUTOHSCROLL | CBS_DROPDOWN, 10, 100, 175, 14 + PUSHBUTTON "Ȯ��", IDOK, 195, 10, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP + PUSHBUTTON "���", IDCANCEL, 195, 30, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP + PUSHBUTTON "ã��...", IDC_RUNDLG_BROWSE, 195, 100, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP +END
1
0
0
0
Henri Verbeet : d3d10: Implement ID3D10EffectTechnique::GetPassByIndex().
by Alexandre Julliard
02 Mar '09
02 Mar '09
Module: wine Branch: master Commit: f5f87b89be22dc1637fae3245f1250368d0ed763 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f5f87b89be22dc1637fae3245…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Mar 2 08:52:49 2009 +0100 d3d10: Implement ID3D10EffectTechnique::GetPassByIndex(). --- dlls/d3d10/effect.c | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/dlls/d3d10/effect.c b/dlls/d3d10/effect.c index 88cf8bb..61b4a6f 100644 --- a/dlls/d3d10/effect.c +++ b/dlls/d3d10/effect.c @@ -682,9 +682,22 @@ static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_technique_Ge static struct ID3D10EffectPass * STDMETHODCALLTYPE d3d10_effect_technique_GetPassByIndex(ID3D10EffectTechnique *iface, UINT index) { - FIXME("iface %p, index %u stub!\n", iface, index); + struct d3d10_effect_technique *This = (struct d3d10_effect_technique *)iface; + struct d3d10_effect_pass *p; - return NULL; + TRACE("iface %p, index %u\n", iface, index); + + if (index >= This->pass_count) + { + WARN("Invalid index specified\n"); + return NULL; + } + + p = &This->passes[index]; + + TRACE("Returning pass %p, \"%s\"\n", p, p->name); + + return (ID3D10EffectPass *)p; } static struct ID3D10EffectPass * STDMETHODCALLTYPE d3d10_effect_technique_GetPassByName(ID3D10EffectTechnique *iface,
1
0
0
0
Henri Verbeet : d3d10: Implement ID3D10EffectTechnique::GetPassByName().
by Alexandre Julliard
02 Mar '09
02 Mar '09
Module: wine Branch: master Commit: 5d5ae0c42127adbd868c238455b043619902b371 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5d5ae0c42127adbd868c23845…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Mar 2 08:52:49 2009 +0100 d3d10: Implement ID3D10EffectTechnique::GetPassByName(). --- dlls/d3d10/d3d10_private.h | 3 + dlls/d3d10/effect.c | 107 +++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 108 insertions(+), 2 deletions(-) diff --git a/dlls/d3d10/d3d10_private.h b/dlls/d3d10/d3d10_private.h index a832c83..956d5ae 100644 --- a/dlls/d3d10/d3d10_private.h +++ b/dlls/d3d10/d3d10_private.h @@ -44,8 +44,11 @@ struct d3d10_effect_variable DWORD idx_offset; }; +/* ID3D10EffectPass */ struct d3d10_effect_pass { + const struct ID3D10EffectPassVtbl *vtbl; + char *name; DWORD start; DWORD variable_count; diff --git a/dlls/d3d10/effect.c b/dlls/d3d10/effect.c index 96eb2f3..88cf8bb 100644 --- a/dlls/d3d10/effect.c +++ b/dlls/d3d10/effect.c @@ -31,6 +31,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d10); #define TAG_FX10 MAKE_TAG('F', 'X', '1', '0') static const struct ID3D10EffectTechniqueVtbl d3d10_effect_technique_vtbl; +static const struct ID3D10EffectPassVtbl d3d10_effect_pass_vtbl; static inline void read_dword(const char **ptr, DWORD *d) { @@ -158,7 +159,11 @@ static HRESULT parse_fx10_technique_index(struct d3d10_effect_technique *t, cons for (i = 0; i < t->pass_count; ++i) { - hr = parse_fx10_pass_index(&t->passes[i], ptr); + struct d3d10_effect_pass *p = &t->passes[i]; + + p->vtbl = &d3d10_effect_pass_vtbl; + + hr = parse_fx10_pass_index(p, ptr); if (FAILED(hr)) break; } @@ -685,7 +690,20 @@ static struct ID3D10EffectPass * STDMETHODCALLTYPE d3d10_effect_technique_GetPas static struct ID3D10EffectPass * STDMETHODCALLTYPE d3d10_effect_technique_GetPassByName(ID3D10EffectTechnique *iface, LPCSTR name) { - FIXME("iface %p, name \"%s\" stub!\n", iface, name); + struct d3d10_effect_technique *This = (struct d3d10_effect_technique *)iface; + unsigned int i; + + TRACE("iface %p, name \"%s\"\n", iface, name); + + for (i = 0; i < This->pass_count; ++i) + { + struct d3d10_effect_pass *p = &This->passes[i]; + if (!strcmp(p->name, name)) + { + TRACE("Returning pass %p\n", p); + return (ID3D10EffectPass *)p; + } + } return NULL; } @@ -709,3 +727,88 @@ static const struct ID3D10EffectTechniqueVtbl d3d10_effect_technique_vtbl = d3d10_effect_technique_GetPassByName, d3d10_effect_technique_ComputeStateBlockMask, }; + +/* ID3D10EffectPass methods */ + +static BOOL STDMETHODCALLTYPE d3d10_effect_pass_IsValid(ID3D10EffectPass *iface) +{ + FIXME("iface %p stub!\n", iface); + + return FALSE; +} + +static HRESULT STDMETHODCALLTYPE d3d10_effect_pass_GetDesc(ID3D10EffectPass *iface, D3D10_PASS_DESC *desc) +{ + FIXME("iface %p, desc %p stub!\n", iface, desc); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE d3d10_effect_pass_GetVertexShaderDesc(ID3D10EffectPass *iface, + D3D10_PASS_SHADER_DESC *desc) +{ + FIXME("iface %p, desc %p stub!\n", iface, desc); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE d3d10_effect_pass_GetGeometryShaderDesc(ID3D10EffectPass *iface, + D3D10_PASS_SHADER_DESC *desc) +{ + FIXME("iface %p, desc %p stub!\n", iface, desc); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE d3d10_effect_pass_GetPixelShaderDesc(ID3D10EffectPass *iface, + D3D10_PASS_SHADER_DESC *desc) +{ + FIXME("iface %p, desc %p stub!\n", iface, desc); + + return E_NOTIMPL; +} + +static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_pass_GetAnnotationByIndex(ID3D10EffectPass *iface, + UINT index) +{ + FIXME("iface %p, index %u stub!\n", iface, index); + + return NULL; +} + +static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_pass_GetAnnotationByName(ID3D10EffectPass *iface, + LPCSTR name) +{ + FIXME("iface %p, name \"%s\" stub!\n", iface, name); + + return NULL; +} + +static HRESULT STDMETHODCALLTYPE d3d10_effect_pass_Apply(ID3D10EffectPass *iface, UINT flags) +{ + FIXME("iface %p, flags %#x stub!\n", iface, flags); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE d3d10_effect_pass_ComputeStateBlockMask(ID3D10EffectPass *iface, + D3D10_STATE_BLOCK_MASK *mask) +{ + FIXME("iface %p, mask %p stub!\n", iface, mask); + + return E_NOTIMPL; +} + +static const struct ID3D10EffectPassVtbl d3d10_effect_pass_vtbl = +{ + /* ID3D10EffectPass methods */ + d3d10_effect_pass_IsValid, + d3d10_effect_pass_GetDesc, + d3d10_effect_pass_GetVertexShaderDesc, + d3d10_effect_pass_GetGeometryShaderDesc, + d3d10_effect_pass_GetPixelShaderDesc, + d3d10_effect_pass_GetAnnotationByIndex, + d3d10_effect_pass_GetAnnotationByName, + d3d10_effect_pass_Apply, + d3d10_effect_pass_ComputeStateBlockMask, +};
1
0
0
0
Henri Verbeet : d3d10: Implement ID3D10Effect::GetTechniqueByIndex().
by Alexandre Julliard
02 Mar '09
02 Mar '09
Module: wine Branch: master Commit: aea8f66202db8e08dacc6d13e6b7960ab2298668 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=aea8f66202db8e08dacc6d13e…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Mar 2 08:52:49 2009 +0100 d3d10: Implement ID3D10Effect::GetTechniqueByIndex(). --- dlls/d3d10/effect.c | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/dlls/d3d10/effect.c b/dlls/d3d10/effect.c index 9f1b77e..96eb2f3 100644 --- a/dlls/d3d10/effect.c +++ b/dlls/d3d10/effect.c @@ -566,9 +566,22 @@ static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_GetVariableB static struct ID3D10EffectTechnique * STDMETHODCALLTYPE d3d10_effect_GetTechniqueByIndex(ID3D10Effect *iface, UINT index) { - FIXME("iface %p, index %u stub!\n", iface, index); + struct d3d10_effect *This = (struct d3d10_effect *)iface; + struct d3d10_effect_technique *t; - return NULL; + TRACE("iface %p, index %u\n", iface, index); + + if (index >= This->technique_count) + { + WARN("Invalid index specified\n"); + return NULL; + } + + t = &This->techniques[index]; + + TRACE("Returning technique %p, \"%s\"\n", t, t->name); + + return (ID3D10EffectTechnique *)t; } static struct ID3D10EffectTechnique * STDMETHODCALLTYPE d3d10_effect_GetTechniqueByName(ID3D10Effect *iface,
1
0
0
0
Henri Verbeet : d3d10: Implement ID3D10Effect::GetTechniqueByName().
by Alexandre Julliard
02 Mar '09
02 Mar '09
Module: wine Branch: master Commit: 5e59028a4eb0e1f3c7ae1895659a876e11287bac URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5e59028a4eb0e1f3c7ae18956…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Mar 2 08:52:49 2009 +0100 d3d10: Implement ID3D10Effect::GetTechniqueByName(). --- dlls/d3d10/d3d10_private.h | 3 + dlls/d3d10/effect.c | 89 +++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 91 insertions(+), 1 deletions(-) diff --git a/dlls/d3d10/d3d10_private.h b/dlls/d3d10/d3d10_private.h index 02e0eec..a832c83 100644 --- a/dlls/d3d10/d3d10_private.h +++ b/dlls/d3d10/d3d10_private.h @@ -52,8 +52,11 @@ struct d3d10_effect_pass struct d3d10_effect_variable *variables; }; +/* ID3D10EffectTechnique */ struct d3d10_effect_technique { + const struct ID3D10EffectTechniqueVtbl *vtbl; + char *name; DWORD start; DWORD pass_count; diff --git a/dlls/d3d10/effect.c b/dlls/d3d10/effect.c index 4e725e3..9f1b77e 100644 --- a/dlls/d3d10/effect.c +++ b/dlls/d3d10/effect.c @@ -30,6 +30,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d10); #define TAG_DXBC MAKE_TAG('D', 'X', 'B', 'C') #define TAG_FX10 MAKE_TAG('F', 'X', '1', '0') +static const struct ID3D10EffectTechniqueVtbl d3d10_effect_technique_vtbl; + static inline void read_dword(const char **ptr, DWORD *d) { memcpy(d, *ptr, sizeof(*d)); @@ -322,6 +324,9 @@ static HRESULT parse_fx10_body(struct d3d10_effect *e, const char *data, DWORD d for (i = 0; i < e->technique_count; ++i) { struct d3d10_effect_technique *t = &e->techniques[i]; + + t->vtbl = &d3d10_effect_technique_vtbl; + hr = parse_fx10_technique_index(t, &ptr); if (FAILED(hr)) break; @@ -569,7 +574,20 @@ static struct ID3D10EffectTechnique * STDMETHODCALLTYPE d3d10_effect_GetTechniqu static struct ID3D10EffectTechnique * STDMETHODCALLTYPE d3d10_effect_GetTechniqueByName(ID3D10Effect *iface, LPCSTR name) { - FIXME("iface %p, name \"%s\" stub!\n", iface, name); + struct d3d10_effect *This = (struct d3d10_effect *)iface; + unsigned int i; + + TRACE("iface %p, name \"%s\"\n", iface, name); + + for (i = 0; i < This->technique_count; ++i) + { + struct d3d10_effect_technique *t = &This->techniques[i]; + if (!strcmp(t->name, name)) + { + TRACE("Returning technique %p\n", t); + return (ID3D10EffectTechnique *)t; + } + } return NULL; } @@ -609,3 +627,72 @@ const struct ID3D10EffectVtbl d3d10_effect_vtbl = d3d10_effect_Optimize, d3d10_effect_IsOptimized, }; + +/* ID3D10EffectTechnique methods */ + +static BOOL STDMETHODCALLTYPE d3d10_effect_technique_IsValid(ID3D10EffectTechnique *iface) +{ + FIXME("iface %p stub!\n", iface); + + return FALSE; +} + +static HRESULT STDMETHODCALLTYPE d3d10_effect_technique_GetDesc(ID3D10EffectTechnique *iface, + D3D10_TECHNIQUE_DESC *desc) +{ + FIXME("iface %p, desc %p stub!\n", iface, desc); + + return E_NOTIMPL; +} + +static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_technique_GetAnnotationByIndex( + ID3D10EffectTechnique *iface, UINT index) +{ + FIXME("iface %p, index %u stub!\n", iface, index); + + return NULL; +} + +static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_technique_GetAnnotationByName( + ID3D10EffectTechnique *iface, LPCSTR name) +{ + FIXME("iface %p, name \"%s\" stub!\n", iface, name); + + return NULL; +} + +static struct ID3D10EffectPass * STDMETHODCALLTYPE d3d10_effect_technique_GetPassByIndex(ID3D10EffectTechnique *iface, + UINT index) +{ + FIXME("iface %p, index %u stub!\n", iface, index); + + return NULL; +} + +static struct ID3D10EffectPass * STDMETHODCALLTYPE d3d10_effect_technique_GetPassByName(ID3D10EffectTechnique *iface, + LPCSTR name) +{ + FIXME("iface %p, name \"%s\" stub!\n", iface, name); + + return NULL; +} + +static HRESULT STDMETHODCALLTYPE d3d10_effect_technique_ComputeStateBlockMask(ID3D10EffectTechnique *iface, + D3D10_STATE_BLOCK_MASK *mask) +{ + FIXME("iface %p,mask %p stub!\n", iface, mask); + + return E_NOTIMPL; +} + +static const struct ID3D10EffectTechniqueVtbl d3d10_effect_technique_vtbl = +{ + /* ID3D10EffectTechnique methods */ + d3d10_effect_technique_IsValid, + d3d10_effect_technique_GetDesc, + d3d10_effect_technique_GetAnnotationByIndex, + d3d10_effect_technique_GetAnnotationByName, + d3d10_effect_technique_GetPassByIndex, + d3d10_effect_technique_GetPassByName, + d3d10_effect_technique_ComputeStateBlockMask, +};
1
0
0
0
← Newer
1
...
77
78
79
80
81
82
83
84
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
Results per page:
10
25
50
100
200