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
June 2007
----- 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
5 participants
856 discussions
Start a n
N
ew thread
Phil Costin : wined3d: Enable the loading and reloading of gamma corrected textures.
by Alexandre Julliard
07 Jun '07
07 Jun '07
Module: wine Branch: master Commit: 622f62d3526833cc9b2e45117ce4699221f36956 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=622f62d3526833cc9b2e45117…
Author: Phil Costin <philcostin(a)hotmail.com> Date: Wed Jun 6 23:13:16 2007 +0000 wined3d: Enable the loading and reloading of gamma corrected textures. --- dlls/wined3d/cubetexture.c | 33 +++++++++++++++++++++++++++++---- dlls/wined3d/device.c | 4 ++++ dlls/wined3d/stateblock.c | 2 +- dlls/wined3d/texture.c | 28 ++++++++++++++++++++++------ dlls/wined3d/volumetexture.c | 29 +++++++++++++++++++++++------ dlls/wined3d/wined3d_private.h | 2 ++ 6 files changed, 81 insertions(+), 17 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=622f62d3526833cc9b2e4…
1
0
0
0
Phil Costin : wined3d: Add support for loading gamma corrected textures.
by Alexandre Julliard
07 Jun '07
07 Jun '07
Module: wine Branch: master Commit: e7578dca3612ebf8c549718ae659284e64797749 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e7578dca3612ebf8c549718ae…
Author: Phil Costin <philcostin(a)hotmail.com> Date: Wed Jun 6 23:08:26 2007 +0000 wined3d: Add support for loading gamma corrected textures. --- dlls/wined3d/cubetexture.c | 2 +- dlls/wined3d/surface.c | 27 +++++++++++++++------------ dlls/wined3d/surface_gdi.c | 2 +- dlls/wined3d/texture.c | 2 +- dlls/wined3d/volume.c | 2 +- dlls/wined3d/volumetexture.c | 2 +- include/wine/wined3d_interface.h | 8 ++++---- 7 files changed, 24 insertions(+), 21 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=e7578dca3612ebf8c5497…
1
0
0
0
Phil Costin : wined3d: Extend the D3DFMT table to include gamma corrected formats.
by Alexandre Julliard
07 Jun '07
07 Jun '07
Module: wine Branch: master Commit: 08ae3d6f67bd818a3395450a0c656859a18fe829 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=08ae3d6f67bd818a3395450a0…
Author: Phil Costin <philcostin(a)hotmail.com> Date: Wed Jun 6 23:05:24 2007 +0000 wined3d: Extend the D3DFMT table to include gamma corrected formats. --- dlls/wined3d/utils.c | 124 ++++++++++++++++++++-------------------- dlls/wined3d/wined3d_private.h | 2 +- 2 files changed, 63 insertions(+), 63 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=08ae3d6f67bd818a33954…
1
0
0
0
Phil Costin : wined3d: Add GL_EXT_texture_sRGB constants and corresponding CheckDeviceFormat query .
by Alexandre Julliard
07 Jun '07
07 Jun '07
Module: wine Branch: master Commit: 3650e31e85d547b43aa181d9e0be5a21e72c66ca URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3650e31e85d547b43aa181d9e…
Author: Phil Costin <philcostin(a)hotmail.com> Date: Wed Jun 6 23:03:47 2007 +0000 wined3d: Add GL_EXT_texture_sRGB constants and corresponding CheckDeviceFormat query. --- dlls/wined3d/directx.c | 24 ++++++++++++++++++++++++ include/wine/wined3d_gl.h | 21 +++++++++++++++++++++ 2 files changed, 45 insertions(+), 0 deletions(-) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index 0832b90..0446179 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -718,6 +718,9 @@ BOOL IWineD3DImpl_FillGLCaps(IWineD3D *iface, Display* display) { } else if (strcmp(ThisExtn, "GL_EXT_texture_env_dot3") == 0) { TRACE_(d3d_caps)(" FOUND: EXT Dot3 support\n"); gl_info->supported[EXT_TEXTURE_ENV_DOT3] = TRUE; + } else if (strcmp(ThisExtn, "GL_EXT_texture_sRGB") == 0) { + TRACE_(d3d_caps)(" FOUND: EXT sRGB support\n"); + gl_info->supported[EXT_TEXTURE_SRGB] = TRUE; } else if (strcmp(ThisExtn, "GL_EXT_texture_filter_anisotropic") == 0) { gl_info->supported[EXT_TEXTURE_FILTER_ANISOTROPIC] = TRUE; glGetIntegerv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &gl_max); @@ -1726,6 +1729,27 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapt } } + /* Check for supported sRGB formats (Texture loading and framebuffer) */ + if (GL_SUPPORT(EXT_TEXTURE_SRGB) && (Usage & WINED3DUSAGE_QUERY_SRGBREAD)) { + switch (CheckFormat) { + case WINED3DFMT_A8R8G8B8: + case WINED3DFMT_X8R8G8B8: + case WINED3DFMT_L8: + case WINED3DFMT_A8L8: + case WINED3DFMT_DXT1: + case WINED3DFMT_DXT2: + case WINED3DFMT_DXT3: + case WINED3DFMT_DXT4: + case WINED3DFMT_DXT5: + TRACE_(d3d_caps)("[OK]\n"); + return WINED3D_OK; + + default: + TRACE_(d3d_caps)("[FAILED] Gamma texture format %s not supported.\n", debug_d3dformat(CheckFormat)); + return WINED3DERR_NOTAVAILABLE; + } + } + if (GL_SUPPORT(ARB_TEXTURE_FLOAT)) { BOOL half_pixel_support = GL_SUPPORT(ARB_HALF_FLOAT_PIXEL); diff --git a/include/wine/wined3d_gl.h b/include/wine/wined3d_gl.h index b8a0715..bcaf666 100644 --- a/include/wine/wined3d_gl.h +++ b/include/wine/wined3d_gl.h @@ -520,6 +520,26 @@ typedef void (APIENTRY * PGLFNGLTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint leve #define GL_DOT3_RGB_EXT 0x8740 #define GL_DOT3_RGBA_EXT 0x8741 #endif +/* GL_EXT_texture_sRGB */ +#ifndef GL_EXT_texture_sRGB +#define GL_EXT_texture_sRGB 1 +#define GL_SRGB_EXT 0x8C40 +#define GL_SRGB8_EXT 0x8C41 +#define GL_SRGB_ALPHA_EXT 0x8C42 +#define GL_SRGB8_ALPHA8_EXT 0x8C43 +#define GL_SLUMINANCE_ALPHA_EXT 0x8C44 +#define GL_SLUMINANCE8_ALPHA8_EXT 0x8C45 +#define GL_SLUMINANCE_EXT 0x8C46 +#define GL_SLUMINANCE8_EXT 0x8C47 +#define GL_COMPRESSED_SRGB_EXT 0x8C48 +#define GL_COMPRESSED_SRGB_ALPHA_EXT 0x8C49 +#define GL_COMPRESSED_SLUMINANCE_EXT 0x8C4A +#define GL_COMPRESSED_SLUMINANCE_ALPHA_EXT 0x8C4B +#define GL_COMPRESSED_SRGB_S3TC_DXT1_EXT 0x8C4C +#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT 0x8C4D +#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT 0x8C4E +#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT 0x8C4F +#endif /* GL_ARB_texture_float */ #ifndef GL_ARB_texture_float #define GL_ARB_texture_float 1 @@ -1541,6 +1561,7 @@ typedef enum _GL_SupportedExt { EXT_TEXTURE_ENV_ADD, EXT_TEXTURE_ENV_COMBINE, EXT_TEXTURE_ENV_DOT3, + EXT_TEXTURE_SRGB, EXT_VERTEX_WEIGHTING, /* NVIDIA */ NV_FOG_DISTANCE,
1
0
0
0
Alexandre Julliard : widl: Get rid of the SIGSEGV handler, this only makes things harder to debug.
by Alexandre Julliard
07 Jun '07
07 Jun '07
Module: wine Branch: master Commit: 56c6dbee9be6ac299a811145fa99b297feddff65 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=56c6dbee9be6ac299a811145f…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Jun 7 12:59:24 2007 +0200 widl: Get rid of the SIGSEGV handler, this only makes things harder to debug. --- tools/widl/widl.c | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/tools/widl/widl.c b/tools/widl/widl.c index ed09b32..21657b6 100644 --- a/tools/widl/widl.c +++ b/tools/widl/widl.c @@ -144,7 +144,6 @@ static struct option long_options[] = { }; static void rm_tempfile(void); -static void segvhandler(int sig); static char *make_token(const char *name) { @@ -186,7 +185,6 @@ int main(int argc,char *argv[]) int ret = 0; int opti = 0; - signal(SIGSEGV, segvhandler); signal( SIGTERM, exit_on_signal ); signal( SIGINT, exit_on_signal ); #ifdef SIGHUP @@ -455,11 +453,3 @@ static void rm_tempfile(void) if (server_name) unlink(server_name); } - -static void segvhandler(int sig) -{ - fprintf(stderr, "\n%s:%d: Oops, segment violation\n", input_name, line_number); - fflush(stdout); - fflush(stderr); - abort(); -}
1
0
0
0
Misha Koshelev : oleaut32: Add support for vararg functions in ITypeInfo:: Invoke.
by Alexandre Julliard
07 Jun '07
07 Jun '07
Module: wine Branch: master Commit: 428ed94fa9f75c2036953352b50c217aa925479a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=428ed94fa9f75c2036953352b…
Author: Misha Koshelev <mk144210(a)bcm.edu> Date: Wed Jun 6 15:50:32 2007 -0500 oleaut32: Add support for vararg functions in ITypeInfo::Invoke. --- dlls/oleaut32/tests/tmarshal.c | 4 +- dlls/oleaut32/typelib.c | 71 ++++++++++++++++++++++++++++++++++++--- 2 files changed, 67 insertions(+), 8 deletions(-) diff --git a/dlls/oleaut32/tests/tmarshal.c b/dlls/oleaut32/tests/tmarshal.c index 05624e9..cc2632f 100644 --- a/dlls/oleaut32/tests/tmarshal.c +++ b/dlls/oleaut32/tests/tmarshal.c @@ -1007,14 +1007,14 @@ static void test_typelibmarshal(void) dispparams.rgdispidNamedArgs = NULL; dispparams.rgvarg = vararg; hr = IDispatch_Invoke(pDispatch, DISPID_TM_VARARG, &IID_NULL, LOCALE_NEUTRAL, DISPATCH_METHOD, &dispparams, NULL, NULL, NULL); - todo_wine ok_ole_success(hr, ITypeInfo_Invoke); + ok_ole_success(hr, ITypeInfo_Invoke); /* call VarArg, even one (non-optional, non-safearray) named argument is not allowed */ dispidNamed = 0; dispparams.cNamedArgs = 1; dispparams.rgdispidNamedArgs = &dispidNamed; hr = IDispatch_Invoke(pDispatch, DISPID_TM_VARARG, &IID_NULL, LOCALE_NEUTRAL, DISPATCH_METHOD, &dispparams, NULL, NULL, NULL); - todo_wine ok(hr == DISP_E_NONAMEDARGS, "IDispatch_Invoke should have returned DISP_E_NONAMEDARGS instead of 0x%08x\n", hr); + ok(hr == DISP_E_NONAMEDARGS, "IDispatch_Invoke should have returned DISP_E_NONAMEDARGS instead of 0x%08x\n", hr); dispidNamed = DISPID_PROPERTYPUT; /* call Error */ diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index 6bf9dfd..1558593 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -5594,6 +5594,13 @@ static HRESULT WINAPI ITypeInfo_fnInvoke( rgdispidNamedArgs++; } + if (func_desc->cParamsOpt < 0 && cNamedArgs) + { + ERR("functions with the vararg attribute do not support named arguments\n"); + hres = DISP_E_NONAMEDARGS; + goto func_fail; + } + for (i = 0; i < func_desc->cParams; i++) { TYPEDESC *tdesc = &func_desc->lprgelemdescParam[i].tdesc; @@ -5674,6 +5681,36 @@ static HRESULT WINAPI ITypeInfo_fnInvoke( } V_VT(&rgvarg[i]) = rgvt[i]; } + else if (rgvt[i] == (VT_VARIANT | VT_ARRAY) && func_desc->cParamsOpt < 0 && i == func_desc->cParams-1) + { + SAFEARRAY *a; + SAFEARRAYBOUND bound; + VARIANT *v; + LONG j; + bound.lLbound = 0; + bound.cElements = pDispParams->cArgs-i; + if (!(a = SafeArrayCreate(VT_VARIANT, 1, &bound))) + { + ERR("SafeArrayCreate failed\n"); + break; + } + hres = SafeArrayAccessData(a, (LPVOID)&v); + if (hres != S_OK) + { + ERR("SafeArrayAccessData failed with %x\n", hres); + break; + } + for (j = 0; j < bound.cElements; j++) + VariantCopy(&v[j], &pDispParams->rgvarg[pDispParams->cArgs - 1 - i - j]); + hres = SafeArrayUnaccessData(a); + if (hres != S_OK) + { + ERR("SafeArrayUnaccessData failed with %x\n", hres); + break; + } + V_ARRAY(&rgvarg[i]) = a; + V_VT(&rgvarg[i]) = rgvt[i]; + } else if ((rgvt[i] & VT_BYREF) && !V_ISBYREF(src_arg)) { VARIANTARG *missing_arg = INVBUF_GET_MISSING_ARG_ARRAY(buffer, func_desc->cParams); @@ -5740,12 +5777,6 @@ static HRESULT WINAPI ITypeInfo_fnInvoke( } } if (FAILED(hres)) goto func_fail; /* FIXME: we don't free changed types here */ - if (func_desc->cParamsOpt < 0) - { - FIXME("Does not support safearray optional parameters\n"); - hres = DISP_E_BADPARAMCOUNT; - goto func_fail; /* FIXME: we don't free changed types here */ - } /* VT_VOID is a special case for return types, so it is not * handled in the general function */ @@ -5809,6 +5840,34 @@ static HRESULT WINAPI ITypeInfo_fnInvoke( break; } } + else if (V_VT(prgpvarg[i]) == (VT_VARIANT | VT_ARRAY) && + func_desc->cParamsOpt < 0 && + i == func_desc->cParams-1) + { + SAFEARRAY *a = V_ARRAY(prgpvarg[i]); + LONG j, ubound; + VARIANT *v; + hres = SafeArrayGetUBound(a, 1, &ubound); + if (hres != S_OK) + { + ERR("SafeArrayGetUBound failed with %x\n", hres); + break; + } + hres = SafeArrayAccessData(a, (LPVOID)&v); + if (hres != S_OK) + { + ERR("SafeArrayAccessData failed with %x\n", hres); + break; + } + for (j = 0; j <= ubound; j++) + VariantClear(&v[j]); + hres = SafeArrayUnaccessData(a); + if (hres != S_OK) + { + ERR("SafeArrayUnaccessData failed with %x\n", hres); + break; + } + } VariantClear(&rgvarg[i]); } else if (wParamFlags & PARAMFLAG_FOPT)
1
0
0
0
Misha Koshelev : oleaut32/tests: Add tests for IDispatch:: Invoke of vararg function.
by Alexandre Julliard
07 Jun '07
07 Jun '07
Module: wine Branch: master Commit: 127385e7186370b0068553cb97f055c387b8aa19 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=127385e7186370b0068553cb9…
Author: Misha Koshelev <mk144210(a)bcm.edu> Date: Wed Jun 6 15:50:29 2007 -0500 oleaut32/tests: Add tests for IDispatch::Invoke of vararg function. --- dlls/oleaut32/tests/tmarshal.c | 61 ++++++++++++++++++++++++++++++++ dlls/oleaut32/tests/tmarshal.idl | 3 ++ dlls/oleaut32/tests/tmarshal_dispids.h | 3 +- 3 files changed, 66 insertions(+), 1 deletions(-) diff --git a/dlls/oleaut32/tests/tmarshal.c b/dlls/oleaut32/tests/tmarshal.c index 22d2245..05624e9 100644 --- a/dlls/oleaut32/tests/tmarshal.c +++ b/dlls/oleaut32/tests/tmarshal.c @@ -476,6 +476,38 @@ void WINAPI Widget_Variant( ok(S(V_CY(&var)).Lo == 0xdeadbeef, "V_CY(&var).Lo was 0x%x\n", S(V_CY(&var)).Lo); } +void WINAPI Widget_VarArg( + IWidget * iface, + int numexpect, + SAFEARRAY * values) +{ + LONG lbound, ubound, i; + VARIANT * data; + HRESULT hr; + + trace("VarArg(%p)\n", values); + + hr = SafeArrayGetLBound(values, 1, &lbound); + ok(hr == S_OK, "SafeArrayGetLBound failed with %x\n", hr); + ok(lbound == 0, "SafeArrayGetLBound returned %d\n", lbound); + + hr = SafeArrayGetUBound(values, 1, &ubound); + ok(hr == S_OK, "SafeArrayGetUBound failed with %x\n", hr); + ok(ubound == numexpect-1, "SafeArrayGetUBound returned %d, but expected %d\n", ubound, numexpect-1); + + hr = SafeArrayAccessData(values, (LPVOID)&data); + ok(hr == S_OK, "SafeArrayAccessData failed with %x\n", hr); + + for (i=0; i<=ubound-lbound; i++) + { + ok(V_VT(&data[i]) == VT_I4, "V_VT(&data[%d]) was %d\n", i, V_VT(&data[i])); + ok(V_I4(&data[i]) == i, "V_I4(&data[%d]) was %d\n", i, V_I4(&data[i])); + } + + hr = SafeArrayUnaccessData(values); + ok(hr == S_OK, "SafeArrayUnaccessData failed with %x\n", hr); +} + HRESULT WINAPI Widget_Error( IWidget __RPC_FAR * iface) { @@ -507,6 +539,7 @@ static const struct IWidgetVtbl Widget_VTable = Widget_Array, Widget_VariantArrayPtr, Widget_Variant, + Widget_VarArg, Widget_Error }; @@ -956,6 +989,34 @@ static void test_typelibmarshal(void) ok_ole_success(hr, IDispatch_Invoke); VariantClear(&varresult); + /* call VarArg */ + VariantInit(&vararg[3]); + V_VT(&vararg[3]) = VT_I4; + V_I4(&vararg[3]) = 3; + VariantInit(&vararg[2]); + V_VT(&vararg[2]) = VT_I4; + V_I4(&vararg[2]) = 0; + VariantInit(&vararg[1]); + V_VT(&vararg[1]) = VT_I4; + V_I4(&vararg[1]) = 1; + VariantInit(&vararg[0]); + V_VT(&vararg[0]) = VT_I4; + V_I4(&vararg[0]) = 2; + dispparams.cNamedArgs = 0; + dispparams.cArgs = 4; + dispparams.rgdispidNamedArgs = NULL; + dispparams.rgvarg = vararg; + hr = IDispatch_Invoke(pDispatch, DISPID_TM_VARARG, &IID_NULL, LOCALE_NEUTRAL, DISPATCH_METHOD, &dispparams, NULL, NULL, NULL); + todo_wine ok_ole_success(hr, ITypeInfo_Invoke); + + /* call VarArg, even one (non-optional, non-safearray) named argument is not allowed */ + dispidNamed = 0; + dispparams.cNamedArgs = 1; + dispparams.rgdispidNamedArgs = &dispidNamed; + hr = IDispatch_Invoke(pDispatch, DISPID_TM_VARARG, &IID_NULL, LOCALE_NEUTRAL, DISPATCH_METHOD, &dispparams, NULL, NULL, NULL); + todo_wine ok(hr == DISP_E_NONAMEDARGS, "IDispatch_Invoke should have returned DISP_E_NONAMEDARGS instead of 0x%08x\n", hr); + dispidNamed = DISPID_PROPERTYPUT; + /* call Error */ dispparams.cNamedArgs = 0; dispparams.cArgs = 0; diff --git a/dlls/oleaut32/tests/tmarshal.idl b/dlls/oleaut32/tests/tmarshal.idl index 2d1a9bc..ff7a00a 100644 --- a/dlls/oleaut32/tests/tmarshal.idl +++ b/dlls/oleaut32/tests/tmarshal.idl @@ -88,6 +88,9 @@ library TestTypelib [id(DISPID_TM_VARIANT)] void Variant([in] VARIANT var); + [vararg, id(DISPID_TM_VARARG)] + void VarArg([in] int numexpect, [in] SAFEARRAY(VARIANT) values); + [id(DISPID_TM_ERROR)] HRESULT Error(); } diff --git a/dlls/oleaut32/tests/tmarshal_dispids.h b/dlls/oleaut32/tests/tmarshal_dispids.h index 46523c7..bfeca29 100644 --- a/dlls/oleaut32/tests/tmarshal_dispids.h +++ b/dlls/oleaut32/tests/tmarshal_dispids.h @@ -29,6 +29,7 @@ #define DISPID_TM_ARRAY 10 #define DISPID_TM_VARARRAYPTR 11 #define DISPID_TM_VARIANT 12 -#define DISPID_TM_ERROR 13 +#define DISPID_TM_VARARG 13 +#define DISPID_TM_ERROR 14 #define DISPID_NOA_BSTRRET 1
1
0
0
0
Misha Koshelev : widl: Add support for vararg attribute.
by Alexandre Julliard
07 Jun '07
07 Jun '07
Module: wine Branch: master Commit: 21fcb00af84b72341506a67644fecca63aed23f8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=21fcb00af84b72341506a6764…
Author: Misha Koshelev <mk144210(a)bcm.edu> Date: Wed Jun 6 15:50:24 2007 -0500 widl: Add support for vararg attribute. --- tools/widl/write_msft.c | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/tools/widl/write_msft.c b/tools/widl/write_msft.c index df6ea9e..358d1db 100644 --- a/tools/widl/write_msft.c +++ b/tools/widl/write_msft.c @@ -1248,7 +1248,7 @@ static HRESULT add_func_desc(msft_typeinfo_t* typeinfo, const func_t *func, int int *typedata, typedata_size; int i, id, next_idx; int decoded_size, extra_attr = 0; - int num_params = 0, num_defaults = 0; + int num_params = 0, num_optional = 0, num_defaults = 0; var_t *arg; char *namedata; const attr_t *attr; @@ -1283,10 +1283,10 @@ static HRESULT add_func_desc(msft_typeinfo_t* typeinfo, const func_t *func, int { num_params++; if (arg->attrs) LIST_FOR_EACH_ENTRY( attr, arg->attrs, const attr_t, entry ) { - if(attr->type == ATTR_DEFAULTVALUE_EXPR || attr->type == ATTR_DEFAULTVALUE_STRING) { + if(attr->type == ATTR_DEFAULTVALUE_EXPR || attr->type == ATTR_DEFAULTVALUE_STRING) num_defaults++; - break; - } + else if(attr->type == ATTR_OPTIONAL) + num_optional++; } } @@ -1341,6 +1341,12 @@ static HRESULT add_func_desc(msft_typeinfo_t* typeinfo, const func_t *func, int case ATTR_BINDABLE: funcflags |= 0x4; /* FUNCFLAG_BINDABLE */ break; + case ATTR_VARARG: + if (num_optional || num_defaults) + warning("add_func_desc: ignoring vararg in function with optional or defaultvalue params\n"); + else + num_optional = -1; + break; default: warning("add_func_desc: ignoring attr %d\n", attr->type); break; @@ -1394,7 +1400,7 @@ static HRESULT add_func_desc(msft_typeinfo_t* typeinfo, const func_t *func, int typedata[4] = (next_idx << 16) | (callconv << 8) | (invokekind << 3) | funckind; if(num_defaults) typedata[4] |= 0x1000; if(entry_is_ord) typedata[4] |= 0x2000; - typedata[5] = num_params; + typedata[5] = (num_optional << 16) | num_params; /* NOTE: High word of typedata[3] is total size of FUNCDESC + size of all ELEMDESCs for params + TYPEDESCs for pointer params and return types. */ /* That is, total memory allocation required to reconstitute the FUNCDESC in its entirety. */
1
0
0
0
Lei Zhang : include: Add missing definitions to shlobj.h.
by Alexandre Julliard
07 Jun '07
07 Jun '07
Module: wine Branch: master Commit: 00bc8fa184f2df997ffab28e307b9ddbd6e94181 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=00bc8fa184f2df997ffab28e3…
Author: Lei Zhang <thestig(a)google.com> Date: Mon May 21 21:50:19 2007 -0700 include: Add missing definitions to shlobj.h. --- include/shlobj.h | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/include/shlobj.h b/include/shlobj.h index 84d7845..414f452 100644 --- a/include/shlobj.h +++ b/include/shlobj.h @@ -401,6 +401,11 @@ typedef struct tagBROWSEINFOW { #define BIF_EDITBOX 0x0010 #define BIF_VALIDATE 0x0020 #define BIF_NEWDIALOGSTYLE 0x0040 +#define BIF_USENEWUI (BIF_NEWDIALOGSTYLE | BIF_EDITBOX) +#define BIF_BROWSEINCLUDEURLS 0x0080 +#define BIF_UAHINT 0x0100 +#define BIF_NONEWFOLDERBUTTON 0x0200 +#define BIF_NOTRANSLATETARGETS 0x0400 #define BIF_BROWSEFORCOMPUTER 0x1000 #define BIF_BROWSEFORPRINTER 0x2000 @@ -409,8 +414,9 @@ typedef struct tagBROWSEINFOW { /* message from browser */ #define BFFM_INITIALIZED 1 #define BFFM_SELCHANGED 2 -#define BFFM_VALIDATEFAILEDA 3 /* lParam:szPath ret:1(cont),0(EndDialog) */ -#define BFFM_VALIDATEFAILEDW 4 /* lParam:wzPath ret:1(cont),0(EndDialog) */ +#define BFFM_VALIDATEFAILEDA 3 +#define BFFM_VALIDATEFAILEDW 4 +#define BFFM_IUNKNOWN 5 /* messages to browser */ #define BFFM_SETSTATUSTEXTA (WM_USER+100)
1
0
0
0
Andrew Talbot : wined3d: Void functions should not return a value.
by Alexandre Julliard
07 Jun '07
07 Jun '07
Module: wine Branch: master Commit: 2e16552327a0d373a99c0cdc1fca6852cb452dc1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2e16552327a0d373a99c0cdc1…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Wed Jun 6 22:40:30 2007 +0100 wined3d: Void functions should not return a value. --- dlls/wined3d/basetexture.c | 2 +- dlls/wined3d/cubetexture.c | 2 +- dlls/wined3d/indexbuffer.c | 2 +- dlls/wined3d/texture.c | 2 +- dlls/wined3d/volume.c | 2 +- dlls/wined3d/volumetexture.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/wined3d/basetexture.c b/dlls/wined3d/basetexture.c index 3faac87..8e18362 100644 --- a/dlls/wined3d/basetexture.c +++ b/dlls/wined3d/basetexture.c @@ -137,7 +137,7 @@ DWORD WINAPI IWineD3DBaseTextureImpl_GetPriority(IWineD3DBaseTexture * } void WINAPI IWineD3DBaseTextureImpl_PreLoad(IWineD3DBaseTexture *iface) { - return IWineD3DResourceImpl_PreLoad((IWineD3DResource *)iface); + IWineD3DResourceImpl_PreLoad((IWineD3DResource *)iface); } WINED3DRESOURCETYPE WINAPI IWineD3DBaseTextureImpl_GetType(IWineD3DBaseTexture *iface) { diff --git a/dlls/wined3d/cubetexture.c b/dlls/wined3d/cubetexture.c index d9b0c47..163d00a 100644 --- a/dlls/wined3d/cubetexture.c +++ b/dlls/wined3d/cubetexture.c @@ -172,7 +172,7 @@ static WINED3DTEXTUREFILTERTYPE WINAPI IWineD3DCubeTextureImpl_GetAutoGenFilterT } static void WINAPI IWineD3DCubeTextureImpl_GenerateMipSubLevels(IWineD3DCubeTexture *iface) { - return IWineD3DBaseTextureImpl_GenerateMipSubLevels((IWineD3DBaseTexture *)iface); + IWineD3DBaseTextureImpl_GenerateMipSubLevels((IWineD3DBaseTexture *)iface); } /* Internal function, No d3d mapping */ diff --git a/dlls/wined3d/indexbuffer.c b/dlls/wined3d/indexbuffer.c index 18cfce7..2d29563 100644 --- a/dlls/wined3d/indexbuffer.c +++ b/dlls/wined3d/indexbuffer.c @@ -107,7 +107,7 @@ static DWORD WINAPI IWineD3DIndexBufferImpl_GetPriority(IWineD3DIndexBuffer *ifa } static void WINAPI IWineD3DIndexBufferImpl_PreLoad(IWineD3DIndexBuffer *iface) { - return IWineD3DResourceImpl_PreLoad((IWineD3DResource *)iface); + IWineD3DResourceImpl_PreLoad((IWineD3DResource *)iface); } static WINED3DRESOURCETYPE WINAPI IWineD3DIndexBufferImpl_GetType(IWineD3DIndexBuffer *iface) { diff --git a/dlls/wined3d/texture.c b/dlls/wined3d/texture.c index cc8a83a..9fe040c 100644 --- a/dlls/wined3d/texture.c +++ b/dlls/wined3d/texture.c @@ -165,7 +165,7 @@ static WINED3DTEXTUREFILTERTYPE WINAPI IWineD3DTextureImpl_GetAutoGenFilterType( } static void WINAPI IWineD3DTextureImpl_GenerateMipSubLevels(IWineD3DTexture *iface) { - return IWineD3DBaseTextureImpl_GenerateMipSubLevels((IWineD3DBaseTexture *)iface); + IWineD3DBaseTextureImpl_GenerateMipSubLevels((IWineD3DBaseTexture *)iface); } /* Internal function, No d3d mapping */ diff --git a/dlls/wined3d/volume.c b/dlls/wined3d/volume.c index f0ea113..8d8a182 100644 --- a/dlls/wined3d/volume.c +++ b/dlls/wined3d/volume.c @@ -94,7 +94,7 @@ static DWORD WINAPI IWineD3DVolumeImpl_GetPriority(IWineD3DVolume *iface) { } static void WINAPI IWineD3DVolumeImpl_PreLoad(IWineD3DVolume *iface) { - return IWineD3DResourceImpl_PreLoad((IWineD3DResource *)iface); + IWineD3DResourceImpl_PreLoad((IWineD3DResource *)iface); } static WINED3DRESOURCETYPE WINAPI IWineD3DVolumeImpl_GetType(IWineD3DVolume *iface) { diff --git a/dlls/wined3d/volumetexture.c b/dlls/wined3d/volumetexture.c index 2b26eb3..c1b2e45 100644 --- a/dlls/wined3d/volumetexture.c +++ b/dlls/wined3d/volumetexture.c @@ -150,7 +150,7 @@ static WINED3DTEXTUREFILTERTYPE WINAPI IWineD3DVolumeTextureImpl_GetAutoGenFilte } static void WINAPI IWineD3DVolumeTextureImpl_GenerateMipSubLevels(IWineD3DVolumeTexture *iface) { - return IWineD3DBaseTextureImpl_GenerateMipSubLevels((IWineD3DBaseTexture *)iface); + IWineD3DBaseTextureImpl_GenerateMipSubLevels((IWineD3DBaseTexture *)iface); } /* Internal function, No d3d mapping */
1
0
0
0
← Newer
1
...
66
67
68
69
70
71
72
...
86
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
Results per page:
10
25
50
100
200