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
October 2008
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
3 participants
1216 discussions
Start a n
N
ew thread
Alistair Leslie-Hughes : mshtml: Supply a default value for get_designMode.
by Alexandre Julliard
30 Oct '08
30 Oct '08
Module: wine Branch: master Commit: 3a0a3453ffd75d132ea2a2563e70d22321a117c3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3a0a3453ffd75d132ea2a2563…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Thu Oct 30 20:46:39 2008 +1100 mshtml: Supply a default value for get_designMode. --- dlls/mshtml/htmldoc.c | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/dlls/mshtml/htmldoc.c b/dlls/mshtml/htmldoc.c index 01d52a2..07d2fc6 100644 --- a/dlls/mshtml/htmldoc.c +++ b/dlls/mshtml/htmldoc.c @@ -440,8 +440,15 @@ static HRESULT WINAPI HTMLDocument_put_designMode(IHTMLDocument2 *iface, BSTR v) static HRESULT WINAPI HTMLDocument_get_designMode(IHTMLDocument2 *iface, BSTR *p) { HTMLDocument *This = HTMLDOC_THIS(iface); - FIXME("(%p)->(%p)\n", This, p); - return E_NOTIMPL; + static WCHAR szOff[] = {'O','f','f',0}; + FIXME("(%p)->(%p) always returning Off\n", This, p); + + if(!p) + return E_INVALIDARG; + + *p = SysAllocString(szOff); + + return S_OK; } static HRESULT WINAPI HTMLDocument_get_selection(IHTMLDocument2 *iface, IHTMLSelectionObject **p)
1
0
0
0
Nicolas Le Cam : shell32/tests: Fix a test on several platforms.
by Alexandre Julliard
30 Oct '08
30 Oct '08
Module: wine Branch: master Commit: 8619ccf251c30ccd7bae812f97008a9ee3de9ebf URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8619ccf251c30ccd7bae812f9…
Author: Nicolas Le Cam <niko.lecam(a)gmail.com> Date: Wed Oct 29 23:05:52 2008 +0100 shell32/tests: Fix a test on several platforms. --- dlls/shell32/tests/shellpath.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/shell32/tests/shellpath.c b/dlls/shell32/tests/shellpath.c index 4d87e8d..e62b695 100644 --- a/dlls/shell32/tests/shellpath.c +++ b/dlls/shell32/tests/shellpath.c @@ -338,7 +338,9 @@ static void testSHGetFolderPathInvalidArgs(void) /* expect 2's a bogus handle, especially since we didn't open it */ hr = pSHGetFolderPathA(NULL, CSIDL_DESKTOP, (HANDLE)2, SHGFP_TYPE_DEFAULT, path); - ok(hr == E_FAIL, + ok(hr == E_FAIL || + hr == E_HANDLE || /* Windows Vista and 2008 */ + broken(hr == S_OK), /* Windows 2000 and Me */ "SHGetFolderPathA(NULL, CSIDL_DESKTOP, 2, SHGFP_TYPE_DEFAULT, path) returned 0x%08x, expected E_FAIL\n", hr); hr = pSHGetFolderPathA(NULL, 0xeeee, NULL, SHGFP_TYPE_DEFAULT, path); ok(hr == E_INVALIDARG,
1
0
0
0
James Hawkins : msi: Allow private properties from the AdminProperties property list.
by Alexandre Julliard
30 Oct '08
30 Oct '08
Module: wine Branch: master Commit: ca71e5aff06899ffe23fd6f8378216e444a3e4b4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ca71e5aff06899ffe23fd6f83…
Author: James Hawkins <jhawkins(a)codeweavers.com> Date: Thu Oct 30 04:03:07 2008 -0500 msi: Allow private properties from the AdminProperties property list. --- dlls/msi/action.c | 10 +++++++--- dlls/msi/msipriv.h | 3 ++- dlls/msi/package.c | 2 +- dlls/msi/tests/install.c | 5 +++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index 707bc75..09a4915 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -288,7 +288,8 @@ static void ui_actioninfo(MSIPACKAGE *package, LPCWSTR action, BOOL start, msiobj_release(&row->hdr); } -UINT msi_parse_command_line( MSIPACKAGE *package, LPCWSTR szCommandLine ) +UINT msi_parse_command_line( MSIPACKAGE *package, LPCWSTR szCommandLine, + BOOL preserve_case ) { LPCWSTR ptr,ptr2; BOOL quote; @@ -323,7 +324,10 @@ UINT msi_parse_command_line( MSIPACKAGE *package, LPCWSTR szCommandLine ) prop = msi_alloc((len+1)*sizeof(WCHAR)); memcpy(prop,ptr,len*sizeof(WCHAR)); prop[len]=0; - struprW(prop); + + if (!preserve_case) + struprW(prop); + ptr2++; len = 0; @@ -728,7 +732,7 @@ UINT MSI_InstallPackage( MSIPACKAGE *package, LPCWSTR szPackagePath, msi_set_sourcedir_props(package, FALSE); } - msi_parse_command_line( package, szCommandLine ); + msi_parse_command_line( package, szCommandLine, FALSE ); msi_apply_transforms( package ); msi_apply_patches( package ); diff --git a/dlls/msi/msipriv.h b/dlls/msi/msipriv.h index f174c47..a283820 100644 --- a/dlls/msi/msipriv.h +++ b/dlls/msi/msipriv.h @@ -683,7 +683,8 @@ extern UINT ACTION_DialogBox( MSIPACKAGE*, LPCWSTR); extern UINT ACTION_ForceReboot(MSIPACKAGE *package); extern UINT MSI_Sequence( MSIPACKAGE *package, LPCWSTR szTable, INT iSequenceMode ); extern UINT MSI_SetFeatureStates( MSIPACKAGE *package ); -extern UINT msi_parse_command_line( MSIPACKAGE *package, LPCWSTR szCommandLine ); +extern UINT msi_parse_command_line( MSIPACKAGE *package, LPCWSTR szCommandLine, + BOOL preserve_case ); /* record internals */ extern UINT MSI_RecordSetIStream( MSIRECORD *, UINT, IStream *); diff --git a/dlls/msi/package.c b/dlls/msi/package.c index cc47236..f6ef199 100644 --- a/dlls/msi/package.c +++ b/dlls/msi/package.c @@ -754,7 +754,7 @@ static UINT msi_load_admin_properties(MSIPACKAGE *package) if (r != ERROR_SUCCESS) return r; - r = msi_parse_command_line(package, (WCHAR *)data); + r = msi_parse_command_line(package, (WCHAR *)data, TRUE); msi_free(data); return r; diff --git a/dlls/msi/tests/install.c b/dlls/msi/tests/install.c index ee10f36..6ae2a51 100644 --- a/dlls/msi/tests/install.c +++ b/dlls/msi/tests/install.c @@ -504,7 +504,7 @@ static const CHAR adm_admin_exec_seq_dat[] = "Action\tCondition\tSequence\n" static const CHAR amp_component_dat[] = "Component\tComponentId\tDirectory_\tAttributes\tCondition\tKeyPath\n" "s72\tS38\ts72\ti2\tS255\tS72\n" "Component\tComponent\n" - "augustus\t\tMSITESTDIR\t0\tMYPROP=2718\taugustus\n"; + "augustus\t\tMSITESTDIR\t0\tMYPROP=2718 and MyProp=42\taugustus\n"; static const CHAR rem_component_dat[] = "Component\tComponentId\tDirectory_\tAttributes\tCondition\tKeyPath\n" "s72\tS38\ts72\ti2\tS255\tS72\n" @@ -4240,7 +4240,8 @@ static void set_admin_property_stream(LPCSTR file) /* AdminProperties */ static const WCHAR stmname[] = {0x41ca,0x4330,0x3e71,0x44b5,0x4233,0x45f5,0x422c,0x4836,0}; - static const WCHAR data[] = {'M','Y','P','R','O','P','=','2','7','1','8',0}; + static const WCHAR data[] = {'M','Y','P','R','O','P','=','2','7','1','8',' ', + 'M','y','P','r','o','p','=','4','2',0}; MultiByteToWideChar(CP_ACP, 0, file, -1, fileW, MAX_PATH);
1
0
0
0
Juan Lang : crypt32: Fix frequency with which chains are checked for cycles .
by Alexandre Julliard
30 Oct '08
30 Oct '08
Module: wine Branch: master Commit: 39a7d40413ce5864a27eccaa47c24f31cdabad38 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=39a7d40413ce5864a27eccaa4…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Wed Oct 29 12:24:31 2008 -0700 crypt32: Fix frequency with which chains are checked for cycles. --- dlls/crypt32/chain.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c index cd70d49..f52ac0c 100644 --- a/dlls/crypt32/chain.c +++ b/dlls/crypt32/chain.c @@ -304,7 +304,7 @@ static BOOL CRYPT_AddCertToSimpleChain(PCertificateChainEngine engine, chain->rgpElement[chain->cElement - 2]->TrustStatus.dwInfoStatus = subjectInfoStatus; /* FIXME: initialize the rest of element */ - if (chain->cElement % engine->CycleDetectionModulus) + if (!(chain->cElement % engine->CycleDetectionModulus)) CRYPT_CheckSimpleChainForCycles(chain); CRYPT_CombineTrustStatus(&chain->TrustStatus, &element->TrustStatus);
1
0
0
0
Juan Lang : crypt32: Fix failing test.
by Alexandre Julliard
30 Oct '08
30 Oct '08
Module: wine Branch: master Commit: 307d7b965ffd8425d112f74e674d4ca5b6fa2380 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=307d7b965ffd8425d112f74e6…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Wed Oct 29 11:32:11 2008 -0700 crypt32: Fix failing test. --- dlls/crypt32/tests/chain.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/crypt32/tests/chain.c b/dlls/crypt32/tests/chain.c index 5bfc58c..7c13878 100644 --- a/dlls/crypt32/tests/chain.c +++ b/dlls/crypt32/tests/chain.c @@ -1402,8 +1402,10 @@ static CONST_DATA_BLOB chain9[] = { { sizeof(chain7_1), chain7_1 }, }; static const CERT_TRUST_STATUS elementStatus9[] = { - { CERT_TRUST_NO_ERROR, CERT_TRUST_HAS_NAME_MATCH_ISSUER }, - { CERT_TRUST_INVALID_BASIC_CONSTRAINTS, CERT_TRUST_HAS_NAME_MATCH_ISSUER }, + { CERT_TRUST_NO_ERROR, + CERT_TRUST_HAS_NAME_MATCH_ISSUER | CERT_TRUST_HAS_PREFERRED_ISSUER }, + { CERT_TRUST_INVALID_BASIC_CONSTRAINTS, + CERT_TRUST_HAS_NAME_MATCH_ISSUER | CERT_TRUST_HAS_PREFERRED_ISSUER }, { CERT_TRUST_INVALID_BASIC_CONSTRAINTS | CERT_TRUST_IS_CYCLIC, CERT_TRUST_HAS_NAME_MATCH_ISSUER }, };
1
0
0
0
Henri Verbeet : d3dx8: Implement ID3DXMatrixStack_Push() and ID3DXMatrixStack_Pop().
by Alexandre Julliard
30 Oct '08
30 Oct '08
Module: wine Branch: master Commit: 32d7bebf7cb85a61b2915fb7c237503245f50358 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=32d7bebf7cb85a61b2915fb7c…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Oct 29 16:34:21 2008 +0100 d3dx8: Implement ID3DXMatrixStack_Push() and ID3DXMatrixStack_Pop(). Based on a patchset by David Adam. --- dlls/d3dx8/math.c | 49 +++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 45 insertions(+), 4 deletions(-) diff --git a/dlls/d3dx8/math.c b/dlls/d3dx8/math.c index eedc115..20d6364 100644 --- a/dlls/d3dx8/math.c +++ b/dlls/d3dx8/math.c @@ -691,15 +691,56 @@ static HRESULT WINAPI ID3DXMatrixStackImpl_MultMatrixLocal(ID3DXMatrixStack *ifa static HRESULT WINAPI ID3DXMatrixStackImpl_Pop(ID3DXMatrixStack *iface) { ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; - FIXME("(%p) : stub\n",This); - return E_NOTIMPL; + + TRACE("iface %p\n", iface); + + /* Popping the last element on the stack returns D3D_OK, but does nothing. */ + if (!This->current) return D3D_OK; + + if (This->current <= This->stack_size / 4 && This->stack_size >= INITIAL_STACK_SIZE * 2) + { + unsigned int new_size; + D3DXMATRIX *new_stack; + + new_size = This->stack_size / 2; + new_stack = HeapReAlloc(GetProcessHeap(), 0, This->stack, new_size * sizeof(D3DXMATRIX)); + if (new_stack) + { + This->stack_size = new_size; + This->stack = new_stack; + } + } + + --This->current; + + return D3D_OK; } static HRESULT WINAPI ID3DXMatrixStackImpl_Push(ID3DXMatrixStack *iface) { ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; - FIXME("(%p) : stub\n",This); - return E_NOTIMPL; + + TRACE("iface %p\n", iface); + + if (This->current == This->stack_size - 1) + { + unsigned int new_size; + D3DXMATRIX *new_stack; + + if (This->stack_size > UINT_MAX / 2) return E_OUTOFMEMORY; + + new_size = This->stack_size * 2; + new_stack = HeapReAlloc(GetProcessHeap(), 0, This->stack, new_size * sizeof(D3DXMATRIX)); + if (!new_stack) return E_OUTOFMEMORY; + + This->stack_size = new_size; + This->stack = new_stack; + } + + ++This->current; + This->stack[This->current] = This->stack[This->current - 1]; + + return D3D_OK; } static HRESULT WINAPI ID3DXMatrixStackImpl_RotateAxis(ID3DXMatrixStack *iface, CONST D3DXVECTOR3 *pv, FLOAT angle)
1
0
0
0
David Adam : d3dx8: Implement ID3DXMatrixStack_GetTop().
by Alexandre Julliard
30 Oct '08
30 Oct '08
Module: wine Branch: master Commit: c5da8d4c3bbd9c078d7b8bcab087c2d1e15fe176 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c5da8d4c3bbd9c078d7b8bcab…
Author: David Adam <david.adam.cnrs(a)gmail.com> Date: Wed Oct 29 16:34:21 2008 +0100 d3dx8: Implement ID3DXMatrixStack_GetTop(). --- dlls/d3dx8/math.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/d3dx8/math.c b/dlls/d3dx8/math.c index 631f0a1..eedc115 100644 --- a/dlls/d3dx8/math.c +++ b/dlls/d3dx8/math.c @@ -654,8 +654,10 @@ static ULONG WINAPI ID3DXMatrixStackImpl_Release(ID3DXMatrixStack* iface) static D3DXMATRIX* WINAPI ID3DXMatrixStackImpl_GetTop(ID3DXMatrixStack *iface) { ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; - FIXME("(%p) : stub\n",This); - return NULL; + + TRACE("iface %p\n", iface); + + return &This->stack[This->current]; } static HRESULT WINAPI ID3DXMatrixStackImpl_LoadIdentity(ID3DXMatrixStack *iface)
1
0
0
0
Henri Verbeet : d3dx8: Initialize the matrix stack in D3DXCreateMatrixStack ().
by Alexandre Julliard
30 Oct '08
30 Oct '08
Module: wine Branch: master Commit: bd6a8870e2528244c3cfd5f1d22b411d56dc9bde URL:
http://source.winehq.org/git/wine.git/?a=commit;h=bd6a8870e2528244c3cfd5f1d…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Oct 29 16:34:21 2008 +0100 d3dx8: Initialize the matrix stack in D3DXCreateMatrixStack(). Based on a patchset by David Adam. --- dlls/d3dx8/d3dx8_private.h | 3 ++- dlls/d3dx8/math.c | 24 +++++++++++++++++++++++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/dlls/d3dx8/d3dx8_private.h b/dlls/d3dx8/d3dx8_private.h index 923f285..01174dc 100644 --- a/dlls/d3dx8/d3dx8_private.h +++ b/dlls/d3dx8/d3dx8_private.h @@ -86,7 +86,8 @@ struct ID3DXMatrixStackImpl LONG ref; /* ID3DXMatrixStack fields */ - int current; + unsigned int current; + unsigned int stack_size; D3DXMATRIX *stack; }; diff --git a/dlls/d3dx8/math.c b/dlls/d3dx8/math.c index 54a17c2..631f0a1 100644 --- a/dlls/d3dx8/math.c +++ b/dlls/d3dx8/math.c @@ -581,10 +581,14 @@ D3DXMATRIX* WINAPI D3DXMatrixTranspose(D3DXMATRIX *pout, CONST D3DXMATRIX *pm) /*_________________D3DXMatrixStack____________________*/ +static const unsigned int INITIAL_STACK_SIZE = 32; + HRESULT WINAPI D3DXCreateMatrixStack(DWORD flags, LPD3DXMATRIXSTACK* ppstack) { ID3DXMatrixStackImpl* object; + TRACE("flags %#x, ppstack %p\n", flags, ppstack); + object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(ID3DXMatrixStackImpl)); if ( object == NULL ) { @@ -593,7 +597,21 @@ HRESULT WINAPI D3DXCreateMatrixStack(DWORD flags, LPD3DXMATRIXSTACK* ppstack) } object->lpVtbl = &ID3DXMatrixStack_Vtbl; object->ref = 1; + + object->stack = HeapAlloc(GetProcessHeap(), 0, INITIAL_STACK_SIZE * sizeof(D3DXMATRIX)); + if (!object->stack) + { + HeapFree(GetProcessHeap(), 0, object); + *ppstack = NULL; + return E_OUTOFMEMORY; + } + object->current = 0; + object->stack_size = INITIAL_STACK_SIZE; + D3DXMatrixIdentity(&object->stack[0]); + + TRACE("Created matrix stack %p\n", object); + *ppstack = (LPD3DXMATRIXSTACK)object; return D3D_OK; } @@ -624,7 +642,11 @@ static ULONG WINAPI ID3DXMatrixStackImpl_Release(ID3DXMatrixStack* iface) { ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; ULONG ref = InterlockedDecrement(&This->ref); - if ( !ref ) HeapFree(GetProcessHeap(), 0, This); + if (!ref) + { + HeapFree(GetProcessHeap(), 0, This->stack); + HeapFree(GetProcessHeap(), 0, This); + } TRACE("(%p) : ReleaseRef to %d\n", This, ref); return ref; }
1
0
0
0
Henri Verbeet : d3dx8: Correct some ID3DXMatrixStack prototypes.
by Alexandre Julliard
30 Oct '08
30 Oct '08
Module: wine Branch: master Commit: 3eac8afba505b3e1f98f1a62606b54e532ab5a3a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3eac8afba505b3e1f98f1a626…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Oct 29 16:34:21 2008 +0100 d3dx8: Correct some ID3DXMatrixStack prototypes. --- dlls/d3dx8/math.c | 10 +++++----- include/d3dx8math.h | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/dlls/d3dx8/math.c b/dlls/d3dx8/math.c index 58f8166..54a17c2 100644 --- a/dlls/d3dx8/math.c +++ b/dlls/d3dx8/math.c @@ -643,21 +643,21 @@ static HRESULT WINAPI ID3DXMatrixStackImpl_LoadIdentity(ID3DXMatrixStack *iface) return E_NOTIMPL; } -static HRESULT WINAPI ID3DXMatrixStackImpl_LoadMatrix(ID3DXMatrixStack *iface, LPD3DXMATRIX pm) +static HRESULT WINAPI ID3DXMatrixStackImpl_LoadMatrix(ID3DXMatrixStack *iface, CONST D3DXMATRIX *pm) { ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; FIXME("(%p) : stub\n",This); return E_NOTIMPL; } -static HRESULT WINAPI ID3DXMatrixStackImpl_MultMatrix(ID3DXMatrixStack *iface, LPD3DXMATRIX pm) +static HRESULT WINAPI ID3DXMatrixStackImpl_MultMatrix(ID3DXMatrixStack *iface, CONST D3DXMATRIX *pm) { ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; FIXME("(%p) : stub\n",This); return E_NOTIMPL; } -static HRESULT WINAPI ID3DXMatrixStackImpl_MultMatrixLocal(ID3DXMatrixStack *iface, LPD3DXMATRIX pm) +static HRESULT WINAPI ID3DXMatrixStackImpl_MultMatrixLocal(ID3DXMatrixStack *iface, CONST D3DXMATRIX *pm) { ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; FIXME("(%p) : stub\n",This); @@ -678,14 +678,14 @@ static HRESULT WINAPI ID3DXMatrixStackImpl_Push(ID3DXMatrixStack *iface) return E_NOTIMPL; } -static HRESULT WINAPI ID3DXMatrixStackImpl_RotateAxis(ID3DXMatrixStack *iface, LPD3DXVECTOR3 pv, FLOAT angle) +static HRESULT WINAPI ID3DXMatrixStackImpl_RotateAxis(ID3DXMatrixStack *iface, CONST D3DXVECTOR3 *pv, FLOAT angle) { ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; FIXME("(%p) : stub\n",This); return E_NOTIMPL; } -static HRESULT WINAPI ID3DXMatrixStackImpl_RotateAxisLocal(ID3DXMatrixStack *iface, LPD3DXVECTOR3 pv, FLOAT angle) +static HRESULT WINAPI ID3DXMatrixStackImpl_RotateAxisLocal(ID3DXMatrixStack *iface, CONST D3DXVECTOR3 *pv, FLOAT angle) { ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; FIXME("(%p) : stub\n",This); diff --git a/include/d3dx8math.h b/include/d3dx8math.h index 2ee783f..88da2b0 100644 --- a/include/d3dx8math.h +++ b/include/d3dx8math.h @@ -359,11 +359,11 @@ DECLARE_INTERFACE_(ID3DXMatrixStack, IUnknown) STDMETHOD(Pop)(THIS) PURE; STDMETHOD(Push)(THIS) PURE; STDMETHOD(LoadIdentity)(THIS) PURE; - STDMETHOD(LoadMatrix)(THIS_ CONST LPD3DXMATRIX) PURE; - STDMETHOD(MultMatrix)(THIS_ CONST LPD3DXMATRIX) PURE; - STDMETHOD(MultMatrixLocal)(THIS_ CONST LPD3DXMATRIX) PURE; - STDMETHOD(RotateAxis)(THIS_ CONST LPD3DXVECTOR3, FLOAT) PURE; - STDMETHOD(RotateAxisLocal)(THIS_ CONST LPD3DXVECTOR3, FLOAT) PURE; + STDMETHOD(LoadMatrix)(THIS_ CONST D3DXMATRIX *) PURE; + STDMETHOD(MultMatrix)(THIS_ CONST D3DXMATRIX *) PURE; + STDMETHOD(MultMatrixLocal)(THIS_ CONST D3DXMATRIX *) PURE; + STDMETHOD(RotateAxis)(THIS_ CONST D3DXVECTOR3 *, FLOAT) PURE; + STDMETHOD(RotateAxisLocal)(THIS_ CONST D3DXVECTOR3 *, FLOAT) PURE; STDMETHOD(RotateYawPitchRoll)(THIS_ FLOAT, FLOAT, FLOAT) PURE; STDMETHOD(RotateYawPitchRollLocal)(THIS_ FLOAT, FLOAT, FLOAT) PURE; STDMETHOD(Scale)(THIS_ FLOAT, FLOAT, FLOAT) PURE;
1
0
0
0
Henri Verbeet : d3dx8: Return E_NOTIMPL from ID3DXMatrixStack stubs.
by Alexandre Julliard
30 Oct '08
30 Oct '08
Module: wine Branch: master Commit: 4df40efe7c03d47a8d742e8766a2cfd20e83d736 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4df40efe7c03d47a8d742e876…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Oct 29 16:34:21 2008 +0100 d3dx8: Return E_NOTIMPL from ID3DXMatrixStack stubs. --- dlls/d3dx8/math.c | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/dlls/d3dx8/math.c b/dlls/d3dx8/math.c index 3bc171f..58f8166 100644 --- a/dlls/d3dx8/math.c +++ b/dlls/d3dx8/math.c @@ -640,98 +640,98 @@ static HRESULT WINAPI ID3DXMatrixStackImpl_LoadIdentity(ID3DXMatrixStack *iface) { ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; FIXME("(%p) : stub\n",This); - return D3D_OK; + return E_NOTIMPL; } static HRESULT WINAPI ID3DXMatrixStackImpl_LoadMatrix(ID3DXMatrixStack *iface, LPD3DXMATRIX pm) { ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; FIXME("(%p) : stub\n",This); - return D3D_OK; + return E_NOTIMPL; } static HRESULT WINAPI ID3DXMatrixStackImpl_MultMatrix(ID3DXMatrixStack *iface, LPD3DXMATRIX pm) { ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; FIXME("(%p) : stub\n",This); - return D3D_OK; + return E_NOTIMPL; } static HRESULT WINAPI ID3DXMatrixStackImpl_MultMatrixLocal(ID3DXMatrixStack *iface, LPD3DXMATRIX pm) { ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; FIXME("(%p) : stub\n",This); - return D3D_OK; + return E_NOTIMPL; } static HRESULT WINAPI ID3DXMatrixStackImpl_Pop(ID3DXMatrixStack *iface) { ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; FIXME("(%p) : stub\n",This); - return D3D_OK; + return E_NOTIMPL; } static HRESULT WINAPI ID3DXMatrixStackImpl_Push(ID3DXMatrixStack *iface) { ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; FIXME("(%p) : stub\n",This); - return D3D_OK; + return E_NOTIMPL; } static HRESULT WINAPI ID3DXMatrixStackImpl_RotateAxis(ID3DXMatrixStack *iface, LPD3DXVECTOR3 pv, FLOAT angle) { ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; FIXME("(%p) : stub\n",This); - return D3D_OK; + return E_NOTIMPL; } static HRESULT WINAPI ID3DXMatrixStackImpl_RotateAxisLocal(ID3DXMatrixStack *iface, LPD3DXVECTOR3 pv, FLOAT angle) { ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; FIXME("(%p) : stub\n",This); - return D3D_OK; + return E_NOTIMPL; } static HRESULT WINAPI ID3DXMatrixStackImpl_RotateYawPitchRoll(ID3DXMatrixStack *iface, FLOAT x, FLOAT y, FLOAT z) { ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; FIXME("(%p) : stub\n",This); - return D3D_OK; + return E_NOTIMPL; } static HRESULT WINAPI ID3DXMatrixStackImpl_RotateYawPitchRollLocal(ID3DXMatrixStack *iface, FLOAT x, FLOAT y, FLOAT z) { ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; FIXME("(%p) : stub\n",This); - return D3D_OK; + return E_NOTIMPL; } static HRESULT WINAPI ID3DXMatrixStackImpl_Scale(ID3DXMatrixStack *iface, FLOAT x, FLOAT y, FLOAT z) { ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; FIXME("(%p) : stub\n",This); - return D3D_OK; + return E_NOTIMPL; } static HRESULT WINAPI ID3DXMatrixStackImpl_ScaleLocal(ID3DXMatrixStack *iface, FLOAT x, FLOAT y, FLOAT z) { ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; FIXME("(%p) : stub\n",This); - return D3D_OK; + return E_NOTIMPL; } static HRESULT WINAPI ID3DXMatrixStackImpl_Translate(ID3DXMatrixStack *iface, FLOAT x, FLOAT y, FLOAT z) { ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; FIXME("(%p) : stub\n",This); - return D3D_OK; + return E_NOTIMPL; } static HRESULT WINAPI ID3DXMatrixStackImpl_TranslateLocal(ID3DXMatrixStack *iface, FLOAT x, FLOAT y, FLOAT z) { ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; FIXME("(%p) : stub\n",This); - return D3D_OK; + return E_NOTIMPL; } static const ID3DXMatrixStackVtbl ID3DXMatrixStack_Vtbl =
1
0
0
0
← Newer
1
2
3
4
5
6
7
8
9
...
122
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
Results per page:
10
25
50
100
200