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
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 2009
----- 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
4 participants
1042 discussions
Start a n
N
ew thread
Francois Gouget : d3drm/tests: Fix compilation on systems that don' t support nameless unions.
by Alexandre Julliard
31 Aug '09
31 Aug '09
Module: wine Branch: master Commit: 1fab15a72f8dd01b4c283f9525fc2d78a57c41ac URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1fab15a72f8dd01b4c283f952…
Author: Francois Gouget <fgouget(a)free.fr> Date: Mon Aug 31 11:52:50 2009 +0200 d3drm/tests: Fix compilation on systems that don't support nameless unions. --- dlls/d3drm/tests/vector.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/d3drm/tests/vector.c b/dlls/d3drm/tests/vector.c index b063d21..fbc8cc1 100644 --- a/dlls/d3drm/tests/vector.c +++ b/dlls/d3drm/tests/vector.c @@ -141,7 +141,7 @@ static void VectorTest(void) U1(e).x=6.0f; U2(e).y=6.0f; U3(e).z=1.0f; expect_vec(e,r); - U1(self).x=9.0f; U1(self).y=18.0f; U3(self).z=27.0f; + U1(self).x=9.0f; U2(self).y=18.0f; U3(self).z=27.0f; pD3DRMVectorAdd(&self,&self,&u); U1(e).x=11.0f; U2(e).y=20.0f; U3(e).z=28.0f; expect_vec(e,self); @@ -151,7 +151,7 @@ static void VectorTest(void) U1(e).x=-2.0f; U2(e).y=-2.0f; U3(e).z=1.0f; expect_vec(e,r); - U1(self).x=9.0f; U1(self).y=18.0f; U3(self).z=27.0f; + U1(self).x=9.0f; U2(self).y=18.0f; U3(self).z=27.0f; pD3DRMVectorSubtract(&self,&self,&u); U1(e).x=7.0f; U2(e).y=16.0f; U3(e).z=26.0f; expect_vec(e,self); @@ -161,7 +161,7 @@ static void VectorTest(void) U1(e).x=-4.0f; U2(e).y=4.0f; U3(e).z=0.0f; expect_vec(e,r); - U1(self).x=9.0f; U1(self).y=18.0f; U3(self).z=27.0f; + U1(self).x=9.0f; U2(self).y=18.0f; U3(self).z=27.0f; pD3DRMVectorCrossProduct(&self,&self,&u); U1(e).x=-36.0f; U2(e).y=45.0f; U3(e).z=-18.0f; expect_vec(e,self); @@ -218,7 +218,7 @@ static void VectorTest(void) U1(e).x=10.0f; U2(e).y=10.0f; U3(e).z=0.0f; expect_vec(e,r); - U1(self).x=9.0f; U1(self).y=18.0f; U3(self).z=27.0f; + U1(self).x=9.0f; U2(self).y=18.0f; U3(self).z=27.0f; pD3DRMVectorScale(&self,&self,2); U1(e).x=18.0f; U2(e).y=36.0f; U3(e).z=54.0f; expect_vec(e,self);
1
0
0
0
Francois Gouget : ddraw/tests: Fix compilation on systems that don' t support nameless unions.
by Alexandre Julliard
31 Aug '09
31 Aug '09
Module: wine Branch: master Commit: e168876d8fb6d9381a64a575bb4ab9c660fdfeb0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e168876d8fb6d9381a64a575b…
Author: Francois Gouget <fgouget(a)free.fr> Date: Mon Aug 31 11:52:36 2009 +0200 ddraw/tests: Fix compilation on systems that don't support nameless unions. --- dlls/ddraw/tests/d3d.c | 72 ++++++++++++++++++++++++------------------------ 1 files changed, 36 insertions(+), 36 deletions(-) diff --git a/dlls/ddraw/tests/d3d.c b/dlls/ddraw/tests/d3d.c index f4cd07b..2d7d8d0 100644 --- a/dlls/ddraw/tests/d3d.c +++ b/dlls/ddraw/tests/d3d.c @@ -2815,9 +2815,9 @@ static void ComputeSphereVisibility(void) IDirect3DDevice7_SetTransform(lpD3DDevice, D3DTRANSFORMSTATE_VIEW , &view); IDirect3DDevice7_SetTransform(lpD3DDevice, D3DTRANSFORMSTATE_PROJECTION, &proj); - center[0].x=11.461533; - center[0].y=-4.761727; - center[0].z=-1.171646; + U1(center[0]).x=11.461533; + U2(center[0]).y=-4.761727; + U3(center[0]).z=-1.171646; radius[0]=38.252632; @@ -2826,11 +2826,11 @@ static void ComputeSphereVisibility(void) ok(rc == D3D_OK, "Expected D3D_OK, received %x\n", rc); ok(result[0] == 0x3f, "Expected 0x3f, got %x\n", result[0]); - center[0].x=-3.515620; center[0].y=-1.560661; center[0].z=-12.464638; + U1(center[0]).x=-3.515620; U2(center[0]).y=-1.560661; U3(center[0]).z=-12.464638; radius[0]=4.354097; - center[1].x=14.290396; center[1].y=-2.981143; center[1].z=-24.311312; + U1(center[1]).x=14.290396; U2(center[1]).y=-2.981143; U3(center[1]).z=-24.311312; radius[1]=12.500704; - center[2].x=1.461626; center[2].y=-6.093709, center[2].z=-13.901010; + U1(center[2]).x=1.461626; U2(center[2]).y=-6.093709; U3(center[2]).z=-13.901010; radius[2]=17.251318; rc = IDirect3DDevice7_ComputeSphereVisibility(lpD3DDevice, center, radius, 3, 0, result); @@ -2852,9 +2852,9 @@ static void ComputeSphereVisibility(void) proj._31=0.0; proj._32=0.0; proj._33=10.0, proj._34=0.0; proj._41=0.0; proj._42=0.0; proj._43=0.0; proj._44=1.0; - center[0].x=0.0; - center[0].y=0.0; - center[0].z=0.05; + U1(center[0]).x=0.0; + U2(center[0]).y=0.0; + U3(center[0]).z=0.05; radius[0]=0.04; @@ -2873,9 +2873,9 @@ static void ComputeSphereVisibility(void) IDirect3DDevice7_SetTransform(lpD3DDevice, D3DTRANSFORMSTATE_PROJECTION, &proj); - center[0].x=0.0; - center[0].y=0.0; - center[0].z=0.5; + U1(center[0]).x=0.0; + U2(center[0]).y=0.0; + U3(center[0]).z=0.5; radius[0]=0.5; @@ -2884,9 +2884,9 @@ static void ComputeSphereVisibility(void) ok(rc == D3D_OK, "Expected D3D_OK, received %x\n", rc); ok(result[0] == 0x0, "Expected 0x0, got %x\n", result[0]); - center[0].x=0.0; - center[0].y=0.0; - center[0].z=0.0; + U1(center[0]).x=0.0; + U2(center[0]).y=0.0; + U3(center[0]).z=0.0; radius[0]=0.0; @@ -2895,9 +2895,9 @@ static void ComputeSphereVisibility(void) ok(rc == D3D_OK, "Expected D3D_OK, received %x\n", rc); ok(result[0] == 0x0, "Expected 0x0, got %x\n", result[0]); - center[0].x=-1.0; - center[0].y=-1.0; - center[0].z=0.50; + U1(center[0]).x=-1.0; + U2(center[0]).y=-1.0; + U3(center[0]).z=0.50; radius[0]=0.25; @@ -2906,9 +2906,9 @@ static void ComputeSphereVisibility(void) ok(rc == D3D_OK, "Expected D3D_OK, received %x\n", rc); ok(result[0] == 0x9, "Expected 0x9, got %x\n", result[0]); - center[0].x=-20.0; - center[0].y=0.0; - center[0].z=0.50; + U1(center[0]).x=-20.0; + U2(center[0]).y=0.0; + U3(center[0]).z=0.50; radius[0]=3.0; @@ -2917,9 +2917,9 @@ static void ComputeSphereVisibility(void) ok(rc == D3D_OK, "Expected D3D_OK, received %x\n", rc); ok(result[0] == 0x103d, "Expected 0x103d, got %x\n", result[0]); - center[0].x=20.0; - center[0].y=0.0; - center[0].z=0.50; + U1(center[0]).x=20.0; + U2(center[0]).y=0.0; + U3(center[0]).z=0.50; radius[0]=3.0f; @@ -2928,9 +2928,9 @@ static void ComputeSphereVisibility(void) ok(rc == D3D_OK, "Expected D3D_OK, received %x\n", rc); ok(result[0] == 0x203e, "Expected 0x203e, got %x\n", result[0]); - center[0].x=0.0; - center[0].y=-20.0; - center[0].z=0.50; + U1(center[0]).x=0.0; + U2(center[0]).y=-20.0; + U3(center[0]).z=0.50; radius[0]=3.0; @@ -2939,9 +2939,9 @@ static void ComputeSphereVisibility(void) ok(rc == D3D_OK, "Expected D3D_OK, received %x\n", rc); ok(result[0] == 0x803b, "Expected 0x803b, got %x\n", result[0]); - center[0].x=0.0; - center[0].y=20.0; - center[0].z=0.5; + U1(center[0]).x=0.0; + U2(center[0]).y=20.0; + U3(center[0]).z=0.5; radius[0]=3.0; @@ -2950,9 +2950,9 @@ static void ComputeSphereVisibility(void) ok(rc == D3D_OK, "Expected D3D_OK, received %x\n", rc); ok(result[0] == 0x4037, "Expected 0x4037, got %x\n", result[0]); - center[0].x=0.0; - center[0].y=0.0; - center[0].z=-20; + U1(center[0]).x=0.0; + U2(center[0]).y=0.0; + U3(center[0]).z=-20; radius[0]=3.0; @@ -2961,9 +2961,9 @@ static void ComputeSphereVisibility(void) ok(rc == D3D_OK, "Expected D3D_OK, received %x\n", rc); ok(result[0] == 0x1001f, "Expected 0x1001f, got %x\n", result[0]); - center[0].x=0.0; - center[0].y=0.0; - center[0].z=20.0; + U1(center[0]).x=0.0; + U2(center[0]).y=0.0; + U3(center[0]).z=20.0; radius[0]=3.0;
1
0
0
0
Francois Gouget : rpcrt4/tests: Fix compilation on systems that don' t support nameless unions.
by Alexandre Julliard
31 Aug '09
31 Aug '09
Module: wine Branch: master Commit: ee7902b283ac6535f906a4e041a1fb04d8376bab URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ee7902b283ac6535f906a4e04…
Author: Francois Gouget <fgouget(a)free.fr> Date: Mon Aug 31 11:52:17 2009 +0200 rpcrt4/tests: Fix compilation on systems that don't support nameless unions. Also omit the nameless union macros from the error messages for clarity. --- dlls/rpcrt4/tests/ndr_marshall.c | 126 +++++++++++++++++++------------------- 1 files changed, 63 insertions(+), 63 deletions(-) diff --git a/dlls/rpcrt4/tests/ndr_marshall.c b/dlls/rpcrt4/tests/ndr_marshall.c index 2aa8146..f4ef592 100644 --- a/dlls/rpcrt4/tests/ndr_marshall.c +++ b/dlls/rpcrt4/tests/ndr_marshall.c @@ -2063,21 +2063,21 @@ static void test_NdrGetUserMarshalInfo(void) ok( umi.InformationLevel == 1, "umi.InformationLevel was %u instead of 1\n", umi.InformationLevel); - ok( U(umi.Level1).Buffer == buffer + 15, - "U(umi.Level1).Buffer was %p instead of %p\n", - U(umi.Level1).Buffer, buffer); - ok( U(umi.Level1).BufferSize == 1, - "U(umi.Level1).BufferSize was %u instead of 1\n", - U(umi.Level1).BufferSize); - ok( U(umi.Level1).pfnAllocate == my_alloc, - "U(umi.Level1).pfnAllocate was %p instead of %p\n", - U(umi.Level1).pfnAllocate, my_alloc); - ok( U(umi.Level1).pfnFree == my_free, - "U(umi.Level1).pfnFree was %p instead of %p\n", - U(umi.Level1).pfnFree, my_free); - ok( U(umi.Level1).pRpcChannelBuffer == rpc_channel_buffer, - "U(umi.Level1).pRpcChannelBuffer was %p instead of %p\n", - U(umi.Level1).pRpcChannelBuffer, rpc_channel_buffer); + ok( U1(umi).Level1.Buffer == buffer + 15, + "umi.Level1.Buffer was %p instead of %p\n", + U1(umi).Level1.Buffer, buffer); + ok( U1(umi).Level1.BufferSize == 1, + "umi.Level1.BufferSize was %u instead of 1\n", + U1(umi).Level1.BufferSize); + ok( U1(umi).Level1.pfnAllocate == my_alloc, + "umi.Level1.pfnAllocate was %p instead of %p\n", + U1(umi).Level1.pfnAllocate, my_alloc); + ok( U1(umi).Level1.pfnFree == my_free, + "umi.Level1.pfnFree was %p instead of %p\n", + U1(umi).Level1.pfnFree, my_free); + ok( U1(umi).Level1.pRpcChannelBuffer == rpc_channel_buffer, + "umi.Level1.pRpcChannelBuffer was %p instead of %p\n", + U1(umi).Level1.pRpcChannelBuffer, rpc_channel_buffer); /* buffer size */ @@ -2097,21 +2097,21 @@ static void test_NdrGetUserMarshalInfo(void) ok( umi.InformationLevel == 1, "umi.InformationLevel was %u instead of 1\n", umi.InformationLevel); - ok( U(umi.Level1).Buffer == NULL, - "U(umi.Level1).Buffer was %p instead of NULL\n", - U(umi.Level1).Buffer); - ok( U(umi.Level1).BufferSize == 0, - "U(umi.Level1).BufferSize was %u instead of 0\n", - U(umi.Level1).BufferSize); - ok( U(umi.Level1).pfnAllocate == my_alloc, - "U(umi.Level1).pfnAllocate was %p instead of %p\n", - U(umi.Level1).pfnAllocate, my_alloc); - ok( U(umi.Level1).pfnFree == my_free, - "U(umi.Level1).pfnFree was %p instead of %p\n", - U(umi.Level1).pfnFree, my_free); - ok( U(umi.Level1).pRpcChannelBuffer == rpc_channel_buffer, - "U(umi.Level1).pRpcChannelBuffer was %p instead of %p\n", - U(umi.Level1).pRpcChannelBuffer, rpc_channel_buffer); + ok( U1(umi).Level1.Buffer == NULL, + "umi.Level1.Buffer was %p instead of NULL\n", + U1(umi).Level1.Buffer); + ok( U1(umi).Level1.BufferSize == 0, + "umi.Level1.BufferSize was %u instead of 0\n", + U1(umi).Level1.BufferSize); + ok( U1(umi).Level1.pfnAllocate == my_alloc, + "umi.Level1.pfnAllocate was %p instead of %p\n", + U1(umi).Level1.pfnAllocate, my_alloc); + ok( U1(umi).Level1.pfnFree == my_free, + "umi.Level1.pfnFree was %p instead of %p\n", + U1(umi).Level1.pfnFree, my_free); + ok( U1(umi).Level1.pRpcChannelBuffer == rpc_channel_buffer, + "umi.Level1.pRpcChannelBuffer was %p instead of %p\n", + U1(umi).Level1.pRpcChannelBuffer, rpc_channel_buffer); /* marshall */ @@ -2131,21 +2131,21 @@ static void test_NdrGetUserMarshalInfo(void) ok( umi.InformationLevel == 1, "umi.InformationLevel was %u instead of 1\n", umi.InformationLevel); - ok( U(umi.Level1).Buffer == buffer + 15, - "U(umi.Level1).Buffer was %p instead of %p\n", - U(umi.Level1).Buffer, buffer); - ok( U(umi.Level1).BufferSize == 1, - "U(umi.Level1).BufferSize was %u instead of 1\n", - U(umi.Level1).BufferSize); - ok( U(umi.Level1).pfnAllocate == my_alloc, - "U(umi.Level1).pfnAllocate was %p instead of %p\n", - U(umi.Level1).pfnAllocate, my_alloc); - ok( U(umi.Level1).pfnFree == my_free, - "U(umi.Level1).pfnFree was %p instead of %p\n", - U(umi.Level1).pfnFree, my_free); - ok( U(umi.Level1).pRpcChannelBuffer == rpc_channel_buffer, - "U(umi.Level1).pRpcChannelBuffer was %p instead of %p\n", - U(umi.Level1).pRpcChannelBuffer, rpc_channel_buffer); + ok( U1(umi).Level1.Buffer == buffer + 15, + "umi.Level1.Buffer was %p instead of %p\n", + U1(umi).Level1.Buffer, buffer); + ok( U1(umi).Level1.BufferSize == 1, + "umi.Level1.BufferSize was %u instead of 1\n", + U1(umi).Level1.BufferSize); + ok( U1(umi).Level1.pfnAllocate == my_alloc, + "umi.Level1.pfnAllocate was %p instead of %p\n", + U1(umi).Level1.pfnAllocate, my_alloc); + ok( U1(umi).Level1.pfnFree == my_free, + "umi.Level1.pfnFree was %p instead of %p\n", + U1(umi).Level1.pfnFree, my_free); + ok( U1(umi).Level1.pRpcChannelBuffer == rpc_channel_buffer, + "umi.Level1.pRpcChannelBuffer was %p instead of %p\n", + U1(umi).Level1.pRpcChannelBuffer, rpc_channel_buffer); /* free */ @@ -2165,21 +2165,21 @@ static void test_NdrGetUserMarshalInfo(void) ok( umi.InformationLevel == 1, "umi.InformationLevel was %u instead of 1\n", umi.InformationLevel); - ok( U(umi.Level1).Buffer == NULL, - "U(umi.Level1).Buffer was %p instead of NULL\n", - U(umi.Level1).Buffer); - ok( U(umi.Level1).BufferSize == 0, - "U(umi.Level1).BufferSize was %u instead of 0\n", - U(umi.Level1).BufferSize); - ok( U(umi.Level1).pfnAllocate == my_alloc, - "U(umi.Level1).pfnAllocate was %p instead of %p\n", - U(umi.Level1).pfnAllocate, my_alloc); - ok( U(umi.Level1).pfnFree == my_free, - "U(umi.Level1).pfnFree was %p instead of %p\n", - U(umi.Level1).pfnFree, my_free); - ok( U(umi.Level1).pRpcChannelBuffer == rpc_channel_buffer, - "U(umi.Level1).pRpcChannelBuffer was %p instead of %p\n", - U(umi.Level1).pRpcChannelBuffer, rpc_channel_buffer); + ok( U1(umi).Level1.Buffer == NULL, + "umi.Level1.Buffer was %p instead of NULL\n", + U1(umi).Level1.Buffer); + ok( U1(umi).Level1.BufferSize == 0, + "umi.Level1.BufferSize was %u instead of 0\n", + U1(umi).Level1.BufferSize); + ok( U1(umi).Level1.pfnAllocate == my_alloc, + "umi.Level1.pfnAllocate was %p instead of %p\n", + U1(umi).Level1.pfnAllocate, my_alloc); + ok( U1(umi).Level1.pfnFree == my_free, + "umi.Level1.pfnFree was %p instead of %p\n", + U1(umi).Level1.pfnFree, my_free); + ok( U1(umi).Level1.pRpcChannelBuffer == rpc_channel_buffer, + "umi.Level1.pRpcChannelBuffer was %p instead of %p\n", + U1(umi).Level1.pRpcChannelBuffer, rpc_channel_buffer); /* boundary test */ @@ -2194,9 +2194,9 @@ static void test_NdrGetUserMarshalInfo(void) status = pNdrGetUserMarshalInfo(&umcb.Flags, 1, &umi); ok(status == RPC_S_OK, "NdrGetUserMarshalInfo failed with error %d\n", status); - ok( U(umi.Level1).BufferSize == 0, - "U(umi.Level1).BufferSize was %u instead of 0\n", - U(umi.Level1).BufferSize); + ok( U1(umi).Level1.BufferSize == 0, + "umi.Level1.BufferSize was %u instead of 0\n", + U1(umi).Level1.BufferSize); /* error conditions */
1
0
0
0
Francois Gouget : windowscodecs/tests: Fix compilation on systems that don' t support nameless unions.
by Alexandre Julliard
31 Aug '09
31 Aug '09
Module: wine Branch: master Commit: b83774593581a98cc203cfae79e4055034e48242 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b83774593581a98cc203cfae7…
Author: Francois Gouget <fgouget(a)free.fr> Date: Mon Aug 31 11:51:46 2009 +0200 windowscodecs/tests: Fix compilation on systems that don't support nameless unions. --- dlls/windowscodecs/tests/stream.c | 48 ++++++++++++++++++------------------ 1 files changed, 24 insertions(+), 24 deletions(-) diff --git a/dlls/windowscodecs/tests/stream.c b/dlls/windowscodecs/tests/stream.c index dd66edc..25459aa 100644 --- a/dlls/windowscodecs/tests/stream.c +++ b/dlls/windowscodecs/tests/stream.c @@ -80,37 +80,37 @@ static void test_StreamOnMemory(void) /* Seek */ hr = IWICStream_Seek(pStream, LargeNull, STREAM_SEEK_SET, &uNewPos); ok(hr == S_OK, "Seek returned with %#x, expected %#x\n", hr, S_OK); - ok(uNewPos.HighPart == 0 && uNewPos.LowPart == 0, "Seek cursor moved to position (%u;%u), expected (%u;%u)\n", uNewPos.HighPart, uNewPos.LowPart, 0, 0); + ok(uNewPos.u.HighPart == 0 && uNewPos.u.LowPart == 0, "Seek cursor moved to position (%u;%u), expected (%u;%u)\n", uNewPos.u.HighPart, uNewPos.u.LowPart, 0, 0); hr = IWICStream_Seek(pStream, LargeNull, STREAM_SEEK_SET, NULL); ok(hr == S_OK, "Seek returned with %#x, expected %#x\n", hr, S_OK); - LargeInt.HighPart = 1; - LargeInt.LowPart = 0; + LargeInt.u.HighPart = 1; + LargeInt.u.LowPart = 0; hr = IWICStream_Seek(pStream, LargeInt, STREAM_SEEK_SET, &uNewPos); ok(hr == HRESULT_FROM_WIN32(ERROR_ARITHMETIC_OVERFLOW), "Seek returned with %#x, expected %#x\n", hr, HRESULT_FROM_WIN32(ERROR_ARITHMETIC_OVERFLOW)); - ok(uNewPos.HighPart == 0 && uNewPos.LowPart == 0, "Seek cursor moved to position (%u;%u), expected (%u;%u)\n", uNewPos.HighPart, uNewPos.LowPart, 0, 0); + ok(uNewPos.u.HighPart == 0 && uNewPos.u.LowPart == 0, "Seek cursor moved to position (%u;%u), expected (%u;%u)\n", uNewPos.u.HighPart, uNewPos.u.LowPart, 0, 0); LargeInt.QuadPart = sizeof(Memory) + 10; hr = IWICStream_Seek(pStream, LargeInt, STREAM_SEEK_SET, &uNewPos); ok(hr == E_INVALIDARG, "Seek returned with %#x, expected %#x\n", hr, E_INVALIDARG); - ok(uNewPos.HighPart == 0 && uNewPos.LowPart == 0, "Seek cursor moved to position (%u;%u), expected (%u;%u)\n", uNewPos.HighPart, uNewPos.LowPart, 0, 0); + ok(uNewPos.u.HighPart == 0 && uNewPos.u.LowPart == 0, "Seek cursor moved to position (%u;%u), expected (%u;%u)\n", uNewPos.u.HighPart, uNewPos.u.LowPart, 0, 0); LargeInt.QuadPart = 1; hr = IWICStream_Seek(pStream, LargeInt, STREAM_SEEK_END, &uNewPos); ok(hr == E_INVALIDARG, "Seek returned with %#x, expected %#x\n", hr, E_INVALIDARG); - ok(uNewPos.HighPart == 0 && uNewPos.LowPart == 0, "Seek cursor moved to position (%u;%u), expected (%u;%u)\n", uNewPos.HighPart, uNewPos.LowPart, 0, 0); + ok(uNewPos.u.HighPart == 0 && uNewPos.u.LowPart == 0, "Seek cursor moved to position (%u;%u), expected (%u;%u)\n", uNewPos.u.HighPart, uNewPos.u.LowPart, 0, 0); LargeInt.QuadPart = -1; hr = IWICStream_Seek(pStream, LargeInt, STREAM_SEEK_END, &uNewPos); ok(hr == S_OK, "Seek returned with %#x, expected %#x\n", hr, S_OK); - ok(uNewPos.HighPart == 0 && uNewPos.LowPart == sizeof(Memory) - 1, "bSeek cursor moved to position (%u;%u), expected (%u;%u)\n", uNewPos.HighPart, uNewPos.LowPart, 0, sizeof(Memory) - 1); + ok(uNewPos.u.HighPart == 0 && uNewPos.u.LowPart == sizeof(Memory) - 1, "bSeek cursor moved to position (%u;%u), expected (%u;%u)\n", uNewPos.u.HighPart, uNewPos.u.LowPart, 0, sizeof(Memory) - 1); IWICStream_Seek(pStream, LargeNull, STREAM_SEEK_SET, &uNewPos); /* reset seek pointer */ LargeInt.QuadPart = -sizeof(Memory) - 5; hr = IWICStream_Seek(pStream, LargeInt, STREAM_SEEK_END, &uNewPos); ok(hr == E_INVALIDARG, "Seek returned with %#x, expected %#x\n", hr, E_INVALIDARG); - ok(uNewPos.HighPart == 0 && uNewPos.LowPart == 0, "bSeek cursor moved to position (%u;%u), expected (%u;%u)\n", uNewPos.HighPart, uNewPos.LowPart, 0, 0); /* remains unchanged */ + ok(uNewPos.u.HighPart == 0 && uNewPos.u.LowPart == 0, "bSeek cursor moved to position (%u;%u), expected (%u;%u)\n", uNewPos.u.HighPart, uNewPos.u.LowPart, 0, 0); /* remains unchanged */ IWICStream_Seek(pStream, LargeNull, STREAM_SEEK_SET, NULL); @@ -123,7 +123,7 @@ static void test_StreamOnMemory(void) /* check whether the seek pointer has moved correctly */ IWICStream_Seek(pStream, LargeNull, STREAM_SEEK_CUR, &uNewPos); - ok(uNewPos.HighPart == 0 && uNewPos.LowPart == uBytesRead, "Seek cursor moved to position (%u;%u), expected (%u;%u)\n", uNewPos.HighPart, uNewPos.LowPart, 0, uBytesRead); + ok(uNewPos.u.HighPart == 0 && uNewPos.u.LowPart == uBytesRead, "Seek cursor moved to position (%u;%u), expected (%u;%u)\n", uNewPos.u.HighPart, uNewPos.u.LowPart, 0, uBytesRead); } IWICStream_Seek(pStream, LargeNull, STREAM_SEEK_SET, NULL); @@ -182,7 +182,7 @@ static void test_StreamOnMemory(void) /* check whether the seek pointer has moved correctly */ IWICStream_Seek(pStream, LargeNull, STREAM_SEEK_CUR, &uNewPos); - ok(uNewPos.HighPart == 0 && uNewPos.LowPart == uBytesWritten, "Seek cursor moved to position (%u;%u), expected (%u;%u)\n", uNewPos.HighPart, uNewPos.LowPart, 0, uBytesWritten); + ok(uNewPos.u.HighPart == 0 && uNewPos.u.LowPart == uBytesWritten, "Seek cursor moved to position (%u;%u), expected (%u;%u)\n", uNewPos.u.HighPart, uNewPos.u.LowPart, 0, uBytesWritten); } IWICStream_Seek(pStream, LargeNull, STREAM_SEEK_SET, NULL); @@ -193,40 +193,40 @@ static void test_StreamOnMemory(void) ok(hr == E_INVALIDARG, "Write returned with %#x, expected %#x\n", hr, E_INVALIDARG); ok(uBytesWritten == 0, "Wrote %u bytes, expected %u\n", uBytesWritten, 0); IWICStream_Seek(pStream, LargeNull, STREAM_SEEK_CUR, &uNewPos); - ok(uNewPos.HighPart == 0 && uNewPos.LowPart == 0, "Seek cursor moved to position (%u;%u), expected (%u;%u)\n", uNewPos.HighPart, uNewPos.LowPart, 0, 0); + ok(uNewPos.u.HighPart == 0 && uNewPos.u.LowPart == 0, "Seek cursor moved to position (%u;%u), expected (%u;%u)\n", uNewPos.u.HighPart, uNewPos.u.LowPart, 0, 0); hr = IWICStream_Write(pStream, NULL, 0, &uBytesWritten); ok(hr == E_INVALIDARG, "Write returned with %#x, expected %#x\n", hr, E_INVALIDARG); ok(uBytesWritten == 0, "Wrote %u bytes, expected %u\n", uBytesWritten, 0); IWICStream_Seek(pStream, LargeNull, STREAM_SEEK_CUR, &uNewPos); - ok(uNewPos.HighPart == 0 && uNewPos.LowPart == 0, "Seek cursor moved to position (%u;%u), expected (%u;%u)\n", uNewPos.HighPart, uNewPos.LowPart, 0, 0); + ok(uNewPos.u.HighPart == 0 && uNewPos.u.LowPart == 0, "Seek cursor moved to position (%u;%u), expected (%u;%u)\n", uNewPos.u.HighPart, uNewPos.u.LowPart, 0, 0); hr = IWICStream_Write(pStream, CmpMem, sizeof(Memory) + 10, &uBytesWritten); ok(hr == STG_E_MEDIUMFULL, "Write returned with %#x, expected %#x\n", hr, STG_E_MEDIUMFULL); ok(uBytesWritten == 0, "Wrote %u bytes, expected %u\n", uBytesWritten, 0); IWICStream_Seek(pStream, LargeNull, STREAM_SEEK_CUR, &uNewPos); - ok(uNewPos.HighPart == 0 && uNewPos.LowPart == uBytesWritten, "Seek cursor moved to position (%u;%u), expected (%u;%u)\n", uNewPos.HighPart, uNewPos.LowPart, 0, uBytesWritten); + ok(uNewPos.u.HighPart == 0 && uNewPos.u.LowPart == uBytesWritten, "Seek cursor moved to position (%u;%u), expected (%u;%u)\n", uNewPos.u.HighPart, uNewPos.u.LowPart, 0, uBytesWritten); IWICStream_Seek(pStream, LargeNull, STREAM_SEEK_SET, NULL); /* SetSize */ - uNewPos.HighPart = 0; - uNewPos.LowPart = sizeof(Memory) + 10; + uNewPos.u.HighPart = 0; + uNewPos.u.LowPart = sizeof(Memory) + 10; hr = IWICStream_SetSize(pStream, uNewPos); ok(hr == E_NOTIMPL, "SetSize returned %#x, expected %#x\n", hr, E_NOTIMPL); - uNewPos.HighPart = 0; - uNewPos.LowPart = sizeof(Memory); + uNewPos.u.HighPart = 0; + uNewPos.u.LowPart = sizeof(Memory); hr = IWICStream_SetSize(pStream, uNewPos); ok(hr == E_NOTIMPL, "SetSize returned %#x, expected %#x\n", hr, E_NOTIMPL); - uNewPos.HighPart = 0; - uNewPos.LowPart = sizeof(Memory) - 10; + uNewPos.u.HighPart = 0; + uNewPos.u.LowPart = sizeof(Memory) - 10; hr = IWICStream_SetSize(pStream, uNewPos); ok(hr == E_NOTIMPL, "SetSize returned %#x, expected %#x\n", hr, E_NOTIMPL); - uNewPos.HighPart = 0; - uNewPos.LowPart = 0; + uNewPos.u.HighPart = 0; + uNewPos.u.LowPart = 0; hr = IWICStream_SetSize(pStream, uNewPos); ok(hr == E_NOTIMPL, "SetSize returned %#x, expected %#x\n", hr, E_NOTIMPL); @@ -236,8 +236,8 @@ static void test_StreamOnMemory(void) /* CopyTo */ - uNewPos.HighPart = 0; - uNewPos.LowPart = 5; + uNewPos.u.HighPart = 0; + uNewPos.u.LowPart = 5; hr = IWICStream_CopyTo(pStream, NULL, uNewPos, NULL, NULL); ok(hr == E_NOTIMPL, "CopyTo returned %#x, expected %#x\n", hr, E_NOTIMPL); @@ -292,7 +292,7 @@ static void test_StreamOnMemory(void) ok(hr == S_OK, "Stat returned %#x, expected %#x\n", hr, S_OK); ok(Stats.pwcsName == NULL, "Stat returned name %p, expected %p\n", Stats.pwcsName, NULL); ok(Stats.type == STGTY_STREAM, "Stat returned type %d, expected %d\n", Stats.type, STGTY_STREAM); - ok(Stats.cbSize.HighPart == 0 && Stats.cbSize.LowPart == sizeof(Memory), "Stat returned size (%u;%u), expected (%u;%u)\n", Stats.cbSize.HighPart, Stats.cbSize.LowPart, 0, sizeof(Memory)); + ok(Stats.cbSize.u.HighPart == 0 && Stats.cbSize.u.LowPart == sizeof(Memory), "Stat returned size (%u;%u), expected (%u;%u)\n", Stats.cbSize.u.HighPart, Stats.cbSize.u.LowPart, 0, sizeof(Memory)); ok(Stats.mtime.dwHighDateTime == 0 && Stats.mtime.dwLowDateTime == 0, "Stat returned mtime (%u;%u), expected (%u;%u)\n", Stats.mtime.dwHighDateTime, Stats.mtime.dwLowDateTime, 0, 0); ok(Stats.ctime.dwHighDateTime == 0 && Stats.ctime.dwLowDateTime == 0, "Stat returned ctime (%u;%u), expected (%u;%u)\n", Stats.ctime.dwHighDateTime, Stats.ctime.dwLowDateTime, 0, 0); ok(Stats.atime.dwHighDateTime == 0 && Stats.atime.dwLowDateTime == 0, "Stat returned atime (%u;%u), expected (%u;%u)\n", Stats.atime.dwHighDateTime, Stats.atime.dwLowDateTime, 0, 0);
1
0
0
0
Henri Verbeet : d3d8: Remove trailing spaces.
by Alexandre Julliard
31 Aug '09
31 Aug '09
Module: wine Branch: master Commit: fecbf7b416a931b2f0e12b686ed4110752059188 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fecbf7b416a931b2f0e12b686…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Aug 31 09:57:52 2009 +0200 d3d8: Remove trailing spaces. --- dlls/d3d8/d3d8_main.c | 10 +++++----- dlls/d3d8/d3d8_private.h | 2 +- dlls/d3d8/device.c | 24 +++++++++++++----------- dlls/d3d8/tests/d3d8_main.c | 2 +- dlls/d3d8/tests/device.c | 10 +++++----- 5 files changed, 25 insertions(+), 23 deletions(-) diff --git a/dlls/d3d8/d3d8_main.c b/dlls/d3d8/d3d8_main.c index 3a2eac2..6300371 100644 --- a/dlls/d3d8/d3d8_main.c +++ b/dlls/d3d8/d3d8_main.c @@ -73,11 +73,11 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) * ValidateVertexShader (D3D8.@) * * I've seen reserved1 and reserved2 always passed as 0's - * bool seems always passed as 0 or 1, but other values work as well.... + * bool seems always passed as 0 or 1, but other values work as well... * toto result? */ HRESULT WINAPI ValidateVertexShader(DWORD* vertexshader, DWORD* reserved1, DWORD* reserved2, BOOL bool, DWORD* toto) -{ +{ HRESULT ret; FIXME("(%p %p %p %d %p): stub\n", vertexshader, reserved1, reserved2, bool, toto); @@ -89,7 +89,7 @@ HRESULT WINAPI ValidateVertexShader(DWORD* vertexshader, DWORD* reserved1, DWORD switch(*vertexshader) { case 0xFFFE0101: - case 0xFFFE0100: + case 0xFFFE0100: ret=S_OK; break; default: @@ -110,12 +110,12 @@ HRESULT WINAPI ValidatePixelShader(DWORD* pixelshader, DWORD* reserved1, BOOL bo { HRESULT ret; FIXME("(%p %p %d %p): stub\n", pixelshader, reserved1, bool, toto); - + if (!pixelshader) return E_FAIL; if (reserved1) - return E_FAIL; + return E_FAIL; switch(*pixelshader) { case 0xFFFF0100: diff --git a/dlls/d3d8/d3d8_private.h b/dlls/d3d8/d3d8_private.h index e916f14..52abb84 100644 --- a/dlls/d3d8/d3d8_private.h +++ b/dlls/d3d8/d3d8_private.h @@ -468,7 +468,7 @@ struct IDirect3DVolumeTexture8Impl /* TODO: Generate a valid GUIDs */ /* {83B073CE-6F30-11d9-C687-00046142C14F} */ -DEFINE_GUID(IID_IDirect3DStateBlock8, +DEFINE_GUID(IID_IDirect3DStateBlock8, 0x83b073ce, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f); DEFINE_GUID(IID_IDirect3DVertexDeclaration8, diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c index a5658af..675eac1 100644 --- a/dlls/d3d8/device.c +++ b/dlls/d3d8/device.c @@ -680,7 +680,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_CreateTexture(LPDIRECT3DDEVICE8 iface wined3d_mutex_unlock(); if (FAILED(hrc)) { - /* free up object */ + /* free up object */ FIXME("(%p) call to IWineD3DDevice_CreateTexture failed\n", This); HeapFree(GetProcessHeap(), 0, object); /* *ppTexture = NULL; */ @@ -694,10 +694,10 @@ static HRESULT WINAPI IDirect3DDevice8Impl_CreateTexture(LPDIRECT3DDEVICE8 iface return hrc; } -static HRESULT WINAPI IDirect3DDevice8Impl_CreateVolumeTexture(LPDIRECT3DDEVICE8 iface, - UINT Width, UINT Height, UINT Depth, UINT Levels, DWORD Usage, - D3DFORMAT Format, D3DPOOL Pool, IDirect3DVolumeTexture8** ppVolumeTexture) { - +static HRESULT WINAPI IDirect3DDevice8Impl_CreateVolumeTexture(IDirect3DDevice8 *iface, + UINT Width, UINT Height, UINT Depth, UINT Levels, DWORD Usage, D3DFORMAT Format, + D3DPOOL Pool, IDirect3DVolumeTexture8 **ppVolumeTexture) +{ IDirect3DVolumeTexture8Impl *object; IDirect3DDevice8Impl *This = (IDirect3DDevice8Impl *)iface; HRESULT hrc = D3D_OK; @@ -736,9 +736,9 @@ static HRESULT WINAPI IDirect3DDevice8Impl_CreateVolumeTexture(LPDIRECT3DDEVICE8 return hrc; } -static HRESULT WINAPI IDirect3DDevice8Impl_CreateCubeTexture(LPDIRECT3DDEVICE8 iface, UINT EdgeLength, UINT Levels, DWORD Usage, - D3DFORMAT Format, D3DPOOL Pool, IDirect3DCubeTexture8** ppCubeTexture) { - +static HRESULT WINAPI IDirect3DDevice8Impl_CreateCubeTexture(IDirect3DDevice8 *iface, UINT EdgeLength, + UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DCubeTexture8 **ppCubeTexture) +{ IDirect3DCubeTexture8Impl *object; IDirect3DDevice8Impl *This = (IDirect3DDevice8Impl *)iface; HRESULT hr = D3D_OK; @@ -1238,7 +1238,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_SetLight(LPDIRECT3DDEVICE8 iface, DWO IDirect3DDevice8Impl *This = (IDirect3DDevice8Impl *)iface; HRESULT hr; TRACE("(%p) Relay\n" , This); - + /* Note: D3DLIGHT8 is compatible with WINED3DLIGHT */ wined3d_mutex_lock(); hr = IWineD3DDevice_SetLight(This->WineD3DDevice, Index, (const WINED3DLIGHT *)pLight); @@ -1701,8 +1701,10 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetCurrentTexturePalette(LPDIRECT3D return hr; } -static HRESULT WINAPI IDirect3DDevice8Impl_DrawPrimitive(LPDIRECT3DDEVICE8 iface, D3DPRIMITIVETYPE PrimitiveType, UINT StartVertex, UINT PrimitiveCount) { - IDirect3DDevice8Impl *This = (IDirect3DDevice8Impl *)iface; +static HRESULT WINAPI IDirect3DDevice8Impl_DrawPrimitive(IDirect3DDevice8 *iface, D3DPRIMITIVETYPE PrimitiveType, + UINT StartVertex, UINT PrimitiveCount) +{ + IDirect3DDevice8Impl *This = (IDirect3DDevice8Impl *)iface; HRESULT hr; TRACE("(%p) Relay\n" , This); diff --git a/dlls/d3d8/tests/d3d8_main.c b/dlls/d3d8/tests/d3d8_main.c index aee7625..fb626f2 100644 --- a/dlls/d3d8/tests/d3d8_main.c +++ b/dlls/d3d8/tests/d3d8_main.c @@ -66,7 +66,7 @@ static void test_ValidateVertexShader(void) } static void test_ValidatePixelShader(void) -{ +{ HRESULT ret; static DWORD simple_ps[] = {0xFFFF0101, /* ps_1_1 */ 0x00000051, 0xA00F0001, 0x3F800000, 0x00000000, 0x00000000, 0x00000000, /* def c1 = 1.0, 0.0, 0.0, 0.0 */ diff --git a/dlls/d3d8/tests/device.c b/dlls/d3d8/tests/device.c index f635713..a869e79 100644 --- a/dlls/d3d8/tests/device.c +++ b/dlls/d3d8/tests/device.c @@ -96,13 +96,13 @@ static int get_refcount(IUnknown *object) static void check_mipmap_levels(IDirect3DDevice8 *device, UINT width, UINT height, UINT count) { IDirect3DBaseTexture8* texture = NULL; - HRESULT hr = IDirect3DDevice8_CreateTexture( device, width, height, 0, 0, - D3DFMT_X8R8G8B8, D3DPOOL_DEFAULT, (IDirect3DTexture8**) &texture ); - + HRESULT hr = IDirect3DDevice8_CreateTexture( device, width, height, 0, 0, + D3DFMT_X8R8G8B8, D3DPOOL_DEFAULT, (IDirect3DTexture8**) &texture ); + if (SUCCEEDED(hr)) { DWORD levels = IDirect3DBaseTexture8_GetLevelCount(texture); ok(levels == count, "Invalid level count. Expected %d got %u\n", count, levels); - } else + } else trace("CreateTexture failed: %#08x\n", hr); if (texture) IUnknown_Release( texture ); @@ -118,7 +118,7 @@ static void test_mipmap_levels(void) IDirect3DDevice8 *pDevice = NULL; D3DPRESENT_PARAMETERS d3dpp; D3DDISPLAYMODE d3ddm; - + pD3d = pDirect3DCreate8( D3D_SDK_VERSION ); ok(pD3d != NULL, "Failed to create IDirect3D8 object\n"); hwnd = CreateWindow( "static", "d3d8_test", WS_OVERLAPPEDWINDOW, 100, 100, 160, 160, NULL, NULL, NULL, NULL );
1
0
0
0
Henri Verbeet : dxdiag: Make the "cmdline" parameter const.
by Alexandre Julliard
31 Aug '09
31 Aug '09
Module: wine Branch: master Commit: 89b469cb2f74dd2c66bdcc5be25f2153ecd7d01f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=89b469cb2f74dd2c66bdcc5be…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Aug 31 09:57:51 2009 +0200 dxdiag: Make the "cmdline" parameter const. --- programs/dxdiag/main.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/programs/dxdiag/main.c b/programs/dxdiag/main.c index 5334b22..4e73b4b 100644 --- a/programs/dxdiag/main.c +++ b/programs/dxdiag/main.c @@ -33,9 +33,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(dxdiag); quotes are optional around the filename, even if it contains spaces. */ -static BOOL ProcessCommandLine(LPWSTR cmdline) +static BOOL ProcessCommandLine(const WCHAR *s) { - const WCHAR *s = cmdline; WCHAR outfile[MAX_PATH+1]; int opt_t = FALSE; int opt_x = FALSE;
1
0
0
0
Henri Verbeet : d3d10: Add the D3D10_REGISTER_COMPONENT_TYPE enum.
by Alexandre Julliard
31 Aug '09
31 Aug '09
Module: wine Branch: master Commit: 974ac06f7373169bdd9ca3acb88e4c26a53e98cb URL:
http://source.winehq.org/git/wine.git/?a=commit;h=974ac06f7373169bdd9ca3acb…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Aug 31 09:57:50 2009 +0200 d3d10: Add the D3D10_REGISTER_COMPONENT_TYPE enum. --- include/d3d10shader.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/include/d3d10shader.h b/include/d3d10shader.h index 88091c4..7910057 100644 --- a/include/d3d10shader.h +++ b/include/d3d10shader.h @@ -99,6 +99,14 @@ typedef enum D3D10_NAME D3D10_NAME_DEPTH = 65, } D3D10_NAME; +typedef enum D3D10_REGISTER_COMPONENT_TYPE +{ + D3D10_REGISTER_COMPONENT_UNKNOWN = 0, + D3D10_REGISTER_COMPONENT_UINT32 = 1, + D3D10_REGISTER_COMPONENT_SINT32 = 2, + D3D10_REGISTER_COMPONENT_FLOAT32 = 3, +} D3D10_REGISTER_COMPONENT_TYPE; + typedef struct _D3D10_SHADER_MACRO { LPCSTR Name;
1
0
0
0
Henri Verbeet : d3d10: Add the D3D10_NAME enum.
by Alexandre Julliard
31 Aug '09
31 Aug '09
Module: wine Branch: master Commit: dd64f9464bcb21e14cb2a105dde92f054d60eade URL:
http://source.winehq.org/git/wine.git/?a=commit;h=dd64f9464bcb21e14cb2a105d…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Aug 31 09:57:49 2009 +0200 d3d10: Add the D3D10_NAME enum. --- include/d3d10shader.h | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/include/d3d10shader.h b/include/d3d10shader.h index 9e625d9..88091c4 100644 --- a/include/d3d10shader.h +++ b/include/d3d10shader.h @@ -82,6 +82,23 @@ typedef enum _D3D10_SHADER_VARIABLE_TYPE D3D10_SVT_FORCE_DWORD = 0x7fffffff } D3D10_SHADER_VARIABLE_TYPE, *LPD3D10_SHADER_VARIABLE_TYPE; +typedef enum D3D10_NAME +{ + D3D10_NAME_UNDEFINED = 0, + D3D10_NAME_POSITION = 1, + D3D10_NAME_CLIP_DISTANCE = 2, + D3D10_NAME_CULL_DISTANCE = 3, + D3D10_NAME_RENDER_TARGET_ARRAY_INDEX = 4, + D3D10_NAME_VIEWPORT_ARRAY_INDEX = 5, + D3D10_NAME_VERTEX_ID = 6, + D3D10_NAME_PRIMITIVE_ID = 7, + D3D10_NAME_INSTANCE_ID = 8, + D3D10_NAME_IS_FRONT_FACE = 9, + D3D10_NAME_SAMPLE_INDEX = 10, + D3D10_NAME_TARGET = 64, + D3D10_NAME_DEPTH = 65, +} D3D10_NAME; + typedef struct _D3D10_SHADER_MACRO { LPCSTR Name;
1
0
0
0
Henri Verbeet : d3d10: Add the _D3D10_EFFECT_SHADER_DESC struct.
by Alexandre Julliard
31 Aug '09
31 Aug '09
Module: wine Branch: master Commit: c64287c98122350084691a9a76808099526c62e3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c64287c98122350084691a9a7…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Aug 31 09:57:48 2009 +0200 d3d10: Add the _D3D10_EFFECT_SHADER_DESC struct. --- include/d3d10effect.h | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/include/d3d10effect.h b/include/d3d10effect.h index c77eefd..645ff39 100644 --- a/include/d3d10effect.h +++ b/include/d3d10effect.h @@ -99,6 +99,17 @@ typedef struct _D3D10_EFFECT_DESC UINT Techniques; } D3D10_EFFECT_DESC; +typedef struct _D3D10_EFFECT_SHADER_DESC +{ + const BYTE *pInputSignature; + BOOL IsInline; + const BYTE *pBytecode; + UINT BytecodeLength; + LPCSTR SODecl; + UINT NumInputSignatureEntries; + UINT NumOutputSignatureEntries; +} D3D10_EFFECT_SHADER_DESC; + typedef struct _D3D10_PASS_DESC { LPCSTR Name;
1
0
0
0
Ge van Geldorp : comctl32/tests: Adjust message sequences for Win7 ( trackbar).
by Alexandre Julliard
31 Aug '09
31 Aug '09
Module: wine Branch: master Commit: 93140f32a04dfd511efe60692fdf0a8a75c69e84 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=93140f32a04dfd511efe60692…
Author: Ge van Geldorp <ggeldorp(a)vmware.com> Date: Mon Aug 31 09:14:25 2009 +0200 comctl32/tests: Adjust message sequences for Win7 (trackbar). --- dlls/comctl32/tests/trackbar.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dlls/comctl32/tests/trackbar.c b/dlls/comctl32/tests/trackbar.c index d94ffe9..9454a5c 100644 --- a/dlls/comctl32/tests/trackbar.c +++ b/dlls/comctl32/tests/trackbar.c @@ -43,7 +43,7 @@ static const struct message create_parent_wnd_seq[] = { { WM_QUERYNEWPALETTE, sent|optional }, { WM_WINDOWPOSCHANGING, sent|wparam, 0 }, { WM_ACTIVATEAPP, sent|wparam, 1 }, - { WM_NCACTIVATE, sent|wparam, 1 }, + { WM_NCACTIVATE, sent }, { WM_ACTIVATE, sent|wparam, 1 }, { WM_IME_SETCONTEXT, sent|wparam|defwinproc|optional, 1 }, { WM_IME_NOTIFY, sent|defwinproc|optional }, @@ -81,12 +81,12 @@ static const struct message parent_create_trackbar_wnd_seq[] = { static const struct message parent_new_window_test_seq[] = { { WM_QUERYNEWPALETTE, sent|optional }, - { WM_WINDOWPOSCHANGING, sent}, - { WM_NCACTIVATE, sent}, - { PBT_APMRESUMECRITICAL, sent}, + { WM_WINDOWPOSCHANGING, sent|optional}, + { WM_NCACTIVATE, sent|optional}, + { PBT_APMRESUMECRITICAL, sent|optional}, { WM_IME_SETCONTEXT, sent|defwinproc|optional}, { WM_IME_NOTIFY, sent|defwinproc|optional}, - { WM_SETFOCUS, sent|defwinproc}, + { WM_SETFOCUS, sent|defwinproc|optional}, { WM_NOTIFYFORMAT, sent}, { WM_QUERYUISTATE, sent|optional}, {0}
1
0
0
0
← Newer
1
2
3
4
5
6
...
105
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
Results per page:
10
25
50
100
200