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
H. Verbeet : wined3d: Add wined3d vertex sampler definitions.
by Alexandre Julliard
13 Jun '07
13 Jun '07
Module: wine Branch: master Commit: fc5582aef7ccfdfefedff96c2eee1230e29ef7f1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fc5582aef7ccfdfefedff96c2…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Tue Jun 12 23:08:34 2007 +0200 wined3d: Add wined3d vertex sampler definitions. --- include/wine/wined3d_types.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/include/wine/wined3d_types.h b/include/wine/wined3d_types.h index cd70b17..0cbe880 100644 --- a/include/wine/wined3d_types.h +++ b/include/wine/wined3d_types.h @@ -1561,6 +1561,13 @@ typedef enum _WINED3DSURFTYPE { #define WINED3DCREATE_DISABLE_DRIVER_MANAGEMENT 0x00000100 #define WINED3DCREATE_ADAPTERGROUP_DEVICE 0x00000200 +/* VTF defines */ +#define WINED3DDMAPSAMPLER 0x100 +#define WINED3DVERTEXTEXTURESAMPLER0 (WINED3DDMAPSAMPLER + 1) +#define WINED3DVERTEXTEXTURESAMPLER1 (WINED3DDMAPSAMPLER + 2) +#define WINED3DVERTEXTEXTURESAMPLER2 (WINED3DDMAPSAMPLER + 3) +#define WINED3DVERTEXTEXTURESAMPLER3 (WINED3DDMAPSAMPLER + 4) + /* DirectDraw types */ typedef struct _WINEDDCOLORKEY
1
0
0
0
H. Verbeet : wined3d: Call IWineD3DDeviceImpl_FindTexUnitMap() when activating the context.
by Alexandre Julliard
13 Jun '07
13 Jun '07
Module: wine Branch: master Commit: b9d5c1806276e61d762d02c69051b89ed253aacb URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b9d5c1806276e61d762d02c69…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Tue Jun 12 23:08:22 2007 +0200 wined3d: Call IWineD3DDeviceImpl_FindTexUnitMap() when activating the context. --- dlls/wined3d/context.c | 3 +++ dlls/wined3d/device.c | 21 +-------------------- dlls/wined3d/wined3d_private.h | 1 + 3 files changed, 5 insertions(+), 20 deletions(-) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index c2834c7..ee9e96e 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -801,6 +801,9 @@ void ActivateContext(IWineD3DDeviceImpl *This, IWineD3DSurface *target, ContextU glEnable(GL_TEXTURE_SHADER_NV); checkGLcall("glEnable(GL_TEXTURE_SHADER_NV)"); } + if (GL_SUPPORT(NV_REGISTER_COMBINERS)) { + IWineD3DDeviceImpl_FindTexUnitMap(This); + } for(i=0; i < context->numDirtyEntries; i++) { dirtyState = context->dirtyArray[i]; idx = dirtyState >> 5; diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index d4a9f77..ab38a7c 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -3212,7 +3212,7 @@ static inline void markTextureStagesDirty(IWineD3DDeviceImpl *This, DWORD stage) } } -static void IWineD3DDeviceImpl_FindTexUnitMap(IWineD3DDeviceImpl *This) { +void IWineD3DDeviceImpl_FindTexUnitMap(IWineD3DDeviceImpl *This) { DWORD i, tex; /* This code can assume that GL_NV_register_combiners are supported, otherwise * it is never called. @@ -3307,11 +3307,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetPixelShader(IWineD3DDevice *iface, I TRACE("(%p) : setting pShader(%p)\n", This, pShader); IWineD3DDeviceImpl_MarkStateDirty(This, STATE_PIXELSHADER); - /* Rebuild the texture unit mapping if nvrc's are supported */ - if(GL_SUPPORT(NV_REGISTER_COMBINERS)) { - IWineD3DDeviceImpl_FindTexUnitMap(This); - } - return WINED3D_OK; } @@ -3999,13 +3994,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetTextureStageState(IWineD3DDevice *if IWineD3DDeviceImpl_MarkStateDirty(This, STATE_TEXTURESTAGE(Stage, Type)); - /* Rebuild the stage -> gl texture unit mapping if register combiners are supported - * If there is a pixel shader there will be a 1:1 mapping, no need to touch it. SetPixelShader - * will call FindTexUnitMap too. - */ - if(GL_SUPPORT(NV_REGISTER_COMBINERS) && !This->stateBlock->pixelShader) { - IWineD3DDeviceImpl_FindTexUnitMap(This); - } return WINED3D_OK; } @@ -4113,13 +4101,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetTexture(IWineD3DDevice *iface, DWORD IWineD3DDeviceImpl_MarkStateDirty(This, STATE_SAMPLER(Stage)); - /* Verify the texture unit mapping(and rebuild it if needed) if we use nvrcs and no - * pixel shader is used - */ - if(GL_SUPPORT(NV_REGISTER_COMBINERS) && !This->stateBlock->pixelShader) { - IWineD3DDeviceImpl_FindTexUnitMap(This); - } - return WINED3D_OK; } diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index 6673bc0..49081b1 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -745,6 +745,7 @@ struct IWineD3DDeviceImpl extern const IWineD3DDeviceVtbl IWineD3DDevice_Vtbl; +void IWineD3DDeviceImpl_FindTexUnitMap(IWineD3DDeviceImpl *This); void IWineD3DDeviceImpl_MarkStateDirty(IWineD3DDeviceImpl *This, DWORD state); static inline BOOL isStateDirty(WineD3DContext *context, DWORD state) { DWORD idx = state >> 5;
1
0
0
0
H. Verbeet : wined3d: Take the texUnitMap into account when loading shader_glsl_load_psamplers() .
by Alexandre Julliard
13 Jun '07
13 Jun '07
Module: wine Branch: master Commit: 8311ff32a383a8bd8fc8e9bfcb78a0c80925057f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8311ff32a383a8bd8fc8e9bfc…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Tue Jun 12 23:08:11 2007 +0200 wined3d: Take the texUnitMap into account when loading shader_glsl_load_psamplers(). --- dlls/wined3d/glsl_shader.c | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c index 4999841..afffa23 100644 --- a/dlls/wined3d/glsl_shader.c +++ b/dlls/wined3d/glsl_shader.c @@ -87,13 +87,14 @@ static void shader_glsl_load_psamplers( for (i=0; i< GL_LIMITS(samplers); ++i) { if (stateBlock->textures[i] != NULL) { - snprintf(sampler_name, sizeof(sampler_name), "Psampler%d", i); - name_loc = GL_EXTCALL(glGetUniformLocationARB(programId, sampler_name)); - if (name_loc != -1) { - TRACE("Loading %s for texture %d\n", sampler_name, i); - GL_EXTCALL(glUniform1iARB(name_loc, i)); - checkGLcall("glUniform1iARB"); - } + snprintf(sampler_name, sizeof(sampler_name), "Psampler%d", i); + name_loc = GL_EXTCALL(glGetUniformLocationARB(programId, sampler_name)); + if (name_loc != -1) { + int mapped_unit = stateBlock->wineD3DDevice->texUnitMap[i]; + TRACE("Loading %s for texture %d\n", sampler_name, mapped_unit); + GL_EXTCALL(glUniform1iARB(name_loc, mapped_unit)); + checkGLcall("glUniform1iARB"); + } } } }
1
0
0
0
Phil Costin : wined3d: Add gamma linerization support for D3DFMT_A4R4G4B4.
by Alexandre Julliard
13 Jun '07
13 Jun '07
Module: wine Branch: master Commit: 2256e06de3493e4c0de3b9e49a28308d364f37b1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2256e06de3493e4c0de3b9e49…
Author: Phil Costin <philcostin(a)hotmail.com> Date: Tue Jun 12 18:41:58 2007 +0000 wined3d: Add gamma linerization support for D3DFMT_A4R4G4B4. --- dlls/wined3d/directx.c | 1 + dlls/wined3d/utils.c | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index 07e0dbe..2abbeb6 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -1692,6 +1692,7 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapt switch (CheckFormat) { case WINED3DFMT_A8R8G8B8: case WINED3DFMT_X8R8G8B8: + case WINED3DFMT_A4R4G4B4: case WINED3DFMT_L8: case WINED3DFMT_A8L8: case WINED3DFMT_DXT1: diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c index 2718420..d592bc4 100644 --- a/dlls/wined3d/utils.c +++ b/dlls/wined3d/utils.c @@ -66,7 +66,7 @@ static const PixelFormatDesc formats[] = { {WINED3DFMT_R5G6B5 ,0x0 ,0x0000F800 ,0x000007e0 ,0x0000001f ,2 ,FALSE ,GL_RGB5 ,GL_RGB5 ,GL_RGB ,GL_UNSIGNED_SHORT_5_6_5 }, {WINED3DFMT_X1R5G5B5 ,0x0 ,0x00007c00 ,0x000003e0 ,0x0000001f ,2 ,FALSE ,GL_RGB5_A1 ,GL_RGB5_A1 ,GL_BGRA ,GL_UNSIGNED_SHORT_1_5_5_5_REV }, {WINED3DFMT_A1R5G5B5 ,0x00008000 ,0x00007c00 ,0x000003e0 ,0x0000001f ,2 ,FALSE ,GL_RGB5_A1 ,GL_RGB5_A1 ,GL_BGRA ,GL_UNSIGNED_SHORT_1_5_5_5_REV }, - {WINED3DFMT_A4R4G4B4 ,0x0000f000 ,0x00000f00 ,0x000000f0 ,0x0000000f ,2 ,FALSE ,GL_RGBA4 ,GL_RGBA4 ,GL_BGRA ,GL_UNSIGNED_SHORT_4_4_4_4_REV }, + {WINED3DFMT_A4R4G4B4 ,0x0000f000 ,0x00000f00 ,0x000000f0 ,0x0000000f ,2 ,FALSE ,GL_RGBA4 ,GL_SRGB8_ALPHA8_EXT ,GL_BGRA ,GL_UNSIGNED_SHORT_4_4_4_4_REV }, {WINED3DFMT_R3G3B2 ,0x0 ,0x000000e0 ,0x0000001c ,0x00000003 ,1 ,FALSE ,GL_R3_G3_B2 ,GL_R3_G3_B2 ,GL_RGB ,GL_UNSIGNED_BYTE_2_3_3_REV }, {WINED3DFMT_A8 ,0x000000ff ,0x0 ,0x0 ,0x0 ,1 ,FALSE ,GL_ALPHA8 ,GL_ALPHA8 ,GL_ALPHA ,GL_UNSIGNED_BYTE }, {WINED3DFMT_A8R3G3B2 ,0x0000ff00 ,0x000000e0 ,0x0000001c ,0x00000003 ,2 ,FALSE ,0 ,0 ,0 ,0 },
1
0
0
0
Evan Stade : gdiplus: Implemented GdipDrawRectangleI.
by Alexandre Julliard
13 Jun '07
13 Jun '07
Module: wine Branch: master Commit: 4b9bfbe7b726981549609fc9d8e7071236b5696a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4b9bfbe7b726981549609fc9d…
Author: Evan Stade <estade(a)gmail.com> Date: Tue Jun 12 10:51:20 2007 -0700 gdiplus: Implemented GdipDrawRectangleI. --- dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/graphics.c | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index 04b2b7b..142011f 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -184,7 +184,7 @@ @ stub GdipDrawPolygon @ stub GdipDrawPolygonI @ stub GdipDrawRectangle -@ stub GdipDrawRectangleI +@ stdcall GdipDrawRectangleI(ptr ptr long long long long) @ stub GdipDrawRectangles @ stub GdipDrawRectanglesI @ stub GdipDrawString diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 5f97002..674bede 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -81,3 +81,35 @@ GpStatus WINGDIPAPI GdipDrawLineI(GpGraphics *graphics, GpPen *pen, INT x1, return Ok; } + +GpStatus WINGDIPAPI GdipDrawRectangleI(GpGraphics *graphics, GpPen *pen, INT x, + INT y, INT width, INT height) +{ + LOGBRUSH lb; + HPEN hpen; + HGDIOBJ old_obj; + + if(!pen || !graphics) + return InvalidParameter; + + lb.lbStyle = BS_SOLID; + lb.lbColor = pen->color; + lb.lbHatch = 0; + + hpen = ExtCreatePen(PS_GEOMETRIC | PS_ENDCAP_SQUARE, (INT) pen->width, + &lb, 0, NULL); + + old_obj = SelectObject(graphics->hdc, hpen); + + /* assume pen aligment centered */ + MoveToEx(graphics->hdc, x, y, NULL); + LineTo(graphics->hdc, x+width, y); + LineTo(graphics->hdc, x+width, y+height); + LineTo(graphics->hdc, x, y+height); + LineTo(graphics->hdc, x, y); + + SelectObject(graphics->hdc, old_obj); + DeleteObject(hpen); + + return Ok; +}
1
0
0
0
Evan Stade : gdiplus: Implemented GdipDrawLineI.
by Alexandre Julliard
13 Jun '07
13 Jun '07
Module: wine Branch: master Commit: 2689b18ea4fcbb3adb65919960aca7b78ab42a8b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2689b18ea4fcbb3adb6591996…
Author: Evan Stade <estade(a)gmail.com> Date: Tue Jun 12 10:44:31 2007 -0700 gdiplus: Implemented GdipDrawLineI. --- dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/graphics.c | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index c80fbbb..04b2b7b 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -175,7 +175,7 @@ @ stub GdipDrawImageRectRect @ stub GdipDrawImageRectRectI @ stub GdipDrawLine -@ stub GdipDrawLineI +@ stdcall GdipDrawLineI(ptr ptr long long long long) @ stub GdipDrawLines @ stub GdipDrawLinesI @ stub GdipDrawPath diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 37af012..5f97002 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -65,3 +65,19 @@ GpStatus WINGDIPAPI GdipDeleteGraphics(GpGraphics *graphics) return Ok; } + +GpStatus WINGDIPAPI GdipDrawLineI(GpGraphics *graphics, GpPen *pen, INT x1, + INT y1, INT x2, INT y2) +{ + HGDIOBJ old_obj; + + if(!pen || !graphics) + return InvalidParameter; + + old_obj = SelectObject(graphics->hdc, pen->gdipen); + MoveToEx(graphics->hdc, x1, y1, NULL); + LineTo(graphics->hdc, x2, y2); + SelectObject(graphics->hdc, old_obj); + + return Ok; +}
1
0
0
0
Alexandre Julliard : comctl32: Remove useless pointer check.
by Alexandre Julliard
13 Jun '07
13 Jun '07
Module: wine Branch: master Commit: 0f63ad92ccef527cf920778d4aa90fc52bb48df8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0f63ad92ccef527cf920778d4…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Jun 13 11:19:36 2007 +0200 comctl32: Remove useless pointer check. --- dlls/comctl32/tab.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c index 31b0163..830bc7e 100644 --- a/dlls/comctl32/tab.c +++ b/dlls/comctl32/tab.c @@ -2681,12 +2681,9 @@ static inline LRESULT TAB_SetMinTabWidth (TAB_INFO *infoPtr, INT cx) TRACE("(%p,%d)\n", infoPtr, cx); - if (infoPtr) { - oldcx = infoPtr->tabMinWidth; - infoPtr->tabMinWidth = cx; - } + oldcx = infoPtr->tabMinWidth; + infoPtr->tabMinWidth = cx; TAB_SetItemBounds(infoPtr); - return oldcx; }
1
0
0
0
James Hawkins : msi: Set the MsiNetAssemblySupport property.
by Alexandre Julliard
13 Jun '07
13 Jun '07
Module: wine Branch: master Commit: c8a8f77abe87945c48330482c1d94a3d0c527edb URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c8a8f77abe87945c48330482c…
Author: James Hawkins <truiken(a)gmail.com> Date: Tue Jun 12 16:33:52 2007 -0700 msi: Set the MsiNetAssemblySupport property. --- dlls/msi/package.c | 120 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 120 insertions(+), 0 deletions(-) diff --git a/dlls/msi/package.c b/dlls/msi/package.c index e93ee03..1dd661d 100644 --- a/dlls/msi/package.c +++ b/dlls/msi/package.c @@ -35,6 +35,7 @@ #include "wincrypt.h" #include "winuser.h" #include "wininet.h" +#include "winver.h" #include "urlmon.h" #include "shlobj.h" #include "wine/unicode.h" @@ -205,6 +206,123 @@ done: return r; } +static LPWSTR get_fusion_filename(MSIPACKAGE *package) +{ + HKEY netsetup; + LONG res; + LPWSTR file; + DWORD index = 0, size; + WCHAR ver[MAX_PATH]; + WCHAR name[MAX_PATH]; + WCHAR windir[MAX_PATH]; + + static const WCHAR backslash[] = {'\\',0}; + static const WCHAR fusion[] = {'f','u','s','i','o','n','.','d','l','l',0}; + static const WCHAR sub[] = { + 'S','o','f','t','w','a','r','e','\\', + 'M','i','c','r','o','s','o','f','t','\\', + 'N','E','T',' ','F','r','a','m','e','w','o','r','k',' ','S','e','t','u','p','\\', + 'N','D','P',0 + }; + static const WCHAR subdir[] = { + 'M','i','c','r','o','s','o','f','t','.','N','E','T','\\', + 'F','r','a','m','e','w','o','r','k','\\',0 + }; + + res = RegOpenKeyExW(HKEY_LOCAL_MACHINE, sub, 0, KEY_ENUMERATE_SUB_KEYS, &netsetup); + if (res != ERROR_SUCCESS) + return NULL; + + ver[0] = '\0'; + size = MAX_PATH; + while (RegEnumKeyExW(netsetup, index, name, &size, NULL, NULL, NULL, NULL) == ERROR_SUCCESS) + { + index++; + if (lstrcmpW(ver, name) < 0) + lstrcpyW(ver, name); + } + + RegCloseKey(netsetup); + + if (!index) + return NULL; + + GetWindowsDirectoryW(windir, MAX_PATH); + + size = lstrlenW(windir) + lstrlenW(subdir) + lstrlenW(ver) +lstrlenW(fusion) + 3; + file = msi_alloc(size * sizeof(WCHAR)); + if (!file) + return NULL; + + lstrcpyW(file, windir); + lstrcatW(file, backslash); + lstrcatW(file, subdir); + lstrcatW(file, ver); + lstrcatW(file, backslash); + lstrcatW(file, fusion); + + return file; +} + +typedef struct tagLANGANDCODEPAGE +{ + WORD wLanguage; + WORD wCodePage; +} LANGANDCODEPAGE; + +static void set_msi_assembly_prop(MSIPACKAGE *package) +{ + UINT val_len; + DWORD size, handle; + LPVOID version = NULL; + WCHAR buf[MAX_PATH]; + LPWSTR fusion, verstr; + LANGANDCODEPAGE *translate; + + static const WCHAR netasm[] = { + 'M','s','i','N','e','t','A','s','s','e','m','b','l','y','S','u','p','p','o','r','t',0 + }; + static const WCHAR translation[] = { + '\\','V','a','r','F','i','l','e','I','n','f','o', + '\\','T','r','a','n','s','l','a','t','i','o','n',0 + }; + static const WCHAR verfmt[] = { + '\\','S','t','r','i','n','g','F','i','l','e','I','n','f','o', + '\\','%','0','4','x','%','0','4','x', + '\\','P','r','o','d','u','c','t','V','e','r','s','i','o','n',0 + }; + + fusion = get_fusion_filename(package); + if (!fusion) + return; + + size = GetFileVersionInfoSizeW(fusion, &handle); + if (!size) return; + + version = msi_alloc(size); + if (!version) return; + + if (!GetFileVersionInfoW(fusion, handle, size, version)) + goto done; + + if (!VerQueryValueW(version, translation, (LPVOID *)&translate, &val_len)) + goto done; + + sprintfW(buf, verfmt, translate[0].wLanguage, translate[0].wCodePage); + + if (!VerQueryValueW(version, buf, (LPVOID *)&verstr, &val_len)) + goto done; + + if (!val_len || !verstr) + goto done; + + MSI_SetPropertyW(package, netasm, verstr); + +done: + msi_free(fusion); + msi_free(version); +} + /* * There are a whole slew of these we need to set * @@ -499,6 +617,8 @@ static VOID set_installer_properties(MSIPACKAGE *package) else ERR("Couldn't set Time property: GetTimeFormat failed with error %d\n", GetLastError()); + set_msi_assembly_prop( package ); + msi_free( check ); CloseHandle( hkey ); }
1
0
0
0
Andrew Talbot : msi: Constify some variables.
by Alexandre Julliard
13 Jun '07
13 Jun '07
Module: wine Branch: master Commit: 8b362f7fc8089221a422584d38c4ccd42674143c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8b362f7fc8089221a422584d3…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Tue Jun 12 21:51:36 2007 +0100 msi: Constify some variables. --- dlls/msi/msipriv.h | 14 +++++++------- dlls/msi/query.h | 2 +- dlls/msi/select.c | 4 ++-- dlls/msi/sql.y | 12 ++++++------ dlls/msi/string.c | 16 ++++++++-------- dlls/msi/suminfo.c | 8 ++++---- 6 files changed, 28 insertions(+), 28 deletions(-) diff --git a/dlls/msi/msipriv.h b/dlls/msi/msipriv.h index bc0a3f0..9e2f8ba 100644 --- a/dlls/msi/msipriv.h +++ b/dlls/msi/msipriv.h @@ -548,17 +548,17 @@ enum StringPersistence }; extern BOOL msi_addstringW( string_table *st, UINT string_no, const WCHAR *data, int len, UINT refcount, enum StringPersistence persistence ); -extern UINT msi_id2stringW( string_table *st, UINT string_no, LPWSTR buffer, UINT *sz ); -extern UINT msi_id2stringA( string_table *st, UINT string_no, LPSTR buffer, UINT *sz ); +extern UINT msi_id2stringW( const string_table *st, UINT string_no, LPWSTR buffer, UINT *sz ); +extern UINT msi_id2stringA( const string_table *st, UINT string_no, LPSTR buffer, UINT *sz ); -extern UINT msi_string2idW( string_table *st, LPCWSTR buffer, UINT *id ); -extern UINT msi_string2idA( string_table *st, LPCSTR str, UINT *id ); +extern UINT msi_string2idW( const string_table *st, LPCWSTR buffer, UINT *id ); +extern UINT msi_string2idA( const string_table *st, LPCSTR str, UINT *id ); extern VOID msi_destroy_stringtable( string_table *st ); -extern UINT msi_strcmp( string_table *st, UINT lval, UINT rval, UINT *res ); -extern const WCHAR *msi_string_lookup_id( string_table *st, UINT id ); +extern UINT msi_strcmp( const string_table *st, UINT lval, UINT rval, UINT *res ); +extern const WCHAR *msi_string_lookup_id( const string_table *st, UINT id ); extern HRESULT msi_init_string_table( IStorage *stg ); extern string_table *msi_load_string_table( IStorage *stg, UINT *bytes_per_strref ); -extern UINT msi_save_string_table( string_table *st, IStorage *storage ); +extern UINT msi_save_string_table( const string_table *st, IStorage *storage ); extern void msi_table_set_strref(UINT bytes_per_strref); diff --git a/dlls/msi/query.h b/dlls/msi/query.h index 6cb7709..e92b470 100644 --- a/dlls/msi/query.h +++ b/dlls/msi/query.h @@ -98,7 +98,7 @@ UINT MSI_ParseSQL( MSIDATABASE *db, LPCWSTR command, MSIVIEW **phview, UINT TABLE_CreateView( MSIDATABASE *db, LPCWSTR name, MSIVIEW **view ); UINT SELECT_CreateView( MSIDATABASE *db, MSIVIEW **view, MSIVIEW *table, - column_info *columns ); + const column_info *columns ); UINT DISTINCT_CreateView( MSIDATABASE *db, MSIVIEW **view, MSIVIEW *table ); diff --git a/dlls/msi/select.c b/dlls/msi/select.c index cc822a1..44999e3 100644 --- a/dlls/msi/select.c +++ b/dlls/msi/select.c @@ -310,7 +310,7 @@ static UINT SELECT_AddColumn( MSISELECTVIEW *sv, LPCWSTR name ) return ERROR_SUCCESS; } -static int select_count_columns( column_info *col ) +static int select_count_columns( const column_info *col ) { int n; for (n = 0; col; col = col->next) @@ -319,7 +319,7 @@ static int select_count_columns( column_info *col ) } UINT SELECT_CreateView( MSIDATABASE *db, MSIVIEW **view, MSIVIEW *table, - column_info *columns ) + const column_info *columns ) { MSISELECTVIEW *sv = NULL; UINT count = 0, r = ERROR_SUCCESS; diff --git a/dlls/msi/sql.y b/dlls/msi/sql.y index 9cbeb6f..a7180e9 100644 --- a/dlls/msi/sql.y +++ b/dlls/msi/sql.y @@ -51,7 +51,7 @@ typedef struct tag_SQL_input struct list *mem; } SQL_input; -static LPWSTR SQL_getstring( void *info, struct sql_str *str ); +static LPWSTR SQL_getstring( void *info, const struct sql_str *str ); static INT SQL_getint( void *info ); static int sql_lex( void *SQL_lval, SQL_input *info ); @@ -62,9 +62,9 @@ static BOOL SQL_MarkPrimaryKeys( column_info *cols, column_info *keys); static struct expr * EXPR_complex( void *info, struct expr *l, UINT op, struct expr *r ); static struct expr * EXPR_unary( void *info, struct expr *l, UINT op ); -static struct expr * EXPR_column( void *info, column_info *column ); +static struct expr * EXPR_column( void *info, const column_info *column ); static struct expr * EXPR_ival( void *info, int val ); -static struct expr * EXPR_sval( void *info, struct sql_str * ); +static struct expr * EXPR_sval( void *info, const struct sql_str * ); static struct expr * EXPR_wildcard( void *info ); %} @@ -697,7 +697,7 @@ static int sql_lex( void *SQL_lval, SQL_input *sql ) return token; } -LPWSTR SQL_getstring( void *info, struct sql_str *strdata ) +LPWSTR SQL_getstring( void *info, const struct sql_str *strdata ) { LPCWSTR p = strdata->data; UINT len = strdata->len; @@ -779,7 +779,7 @@ static struct expr * EXPR_unary( void *info, struct expr *l, UINT op ) return e; } -static struct expr * EXPR_column( void *info, column_info *column ) +static struct expr * EXPR_column( void *info, const column_info *column ) { struct expr *e = parser_alloc( info, sizeof *e ); if( e ) @@ -801,7 +801,7 @@ static struct expr * EXPR_ival( void *info, int val ) return e; } -static struct expr * EXPR_sval( void *info, struct sql_str *str ) +static struct expr * EXPR_sval( void *info, const struct sql_str *str ) { struct expr *e = parser_alloc( info, sizeof *e ); if( e ) diff --git a/dlls/msi/string.c b/dlls/msi/string.c index e816ffa..932b624 100644 --- a/dlls/msi/string.c +++ b/dlls/msi/string.c @@ -279,7 +279,7 @@ int msi_addstringW( string_table *st, UINT n, const WCHAR *data, int len, UINT r } /* find the string identified by an id - return null if there's none */ -const WCHAR *msi_string_lookup_id( string_table *st, UINT id ) +const WCHAR *msi_string_lookup_id( const string_table *st, UINT id ) { static const WCHAR zero[] = { 0 }; if( id == 0 ) @@ -306,7 +306,7 @@ const WCHAR *msi_string_lookup_id( string_table *st, UINT id ) * The size includes the terminating nul character. Short buffers * will be filled, but not nul terminated. */ -UINT msi_id2stringW( string_table *st, UINT id, LPWSTR buffer, UINT *sz ) +UINT msi_id2stringW( const string_table *st, UINT id, LPWSTR buffer, UINT *sz ) { UINT len; const WCHAR *str; @@ -345,7 +345,7 @@ UINT msi_id2stringW( string_table *st, UINT id, LPWSTR buffer, UINT *sz ) * The size includes the terminating nul character. Short buffers * will be filled, but not nul terminated. */ -UINT msi_id2stringA( string_table *st, UINT id, LPSTR buffer, UINT *sz ) +UINT msi_id2stringA( const string_table *st, UINT id, LPSTR buffer, UINT *sz ) { UINT len; const WCHAR *str; @@ -387,7 +387,7 @@ UINT msi_id2stringA( string_table *st, UINT id, LPSTR buffer, UINT *sz ) * [in] str - string to find in the string table * [out] id - id of the string, if found */ -UINT msi_string2idW( string_table *st, LPCWSTR str, UINT *id ) +UINT msi_string2idW( const string_table *st, LPCWSTR str, UINT *id ) { UINT n, hash = msistring_makehash( str ); msistring *se = st->strings; @@ -404,7 +404,7 @@ UINT msi_string2idW( string_table *st, LPCWSTR str, UINT *id ) return ERROR_INVALID_PARAMETER; } -UINT msi_string2idA( string_table *st, LPCSTR buffer, UINT *id ) +UINT msi_string2idA( const string_table *st, LPCSTR buffer, UINT *id ) { DWORD sz; UINT r = ERROR_INVALID_PARAMETER; @@ -432,7 +432,7 @@ UINT msi_string2idA( string_table *st, LPCSTR buffer, UINT *id ) return r; } -UINT msi_strcmp( string_table *st, UINT lval, UINT rval, UINT *res ) +UINT msi_strcmp( const string_table *st, UINT lval, UINT rval, UINT *res ) { const WCHAR *l_str, *r_str; @@ -450,7 +450,7 @@ UINT msi_strcmp( string_table *st, UINT lval, UINT rval, UINT *res ) return ERROR_SUCCESS; } -static void string_totalsize( string_table *st, UINT *datasize, UINT *poolsize ) +static void string_totalsize( const string_table *st, UINT *datasize, UINT *poolsize ) { UINT i, len, max, holesize; @@ -595,7 +595,7 @@ end: return st; } -UINT msi_save_string_table( string_table *st, IStorage *storage ) +UINT msi_save_string_table( const string_table *st, IStorage *storage ) { UINT i, datasize = 0, poolsize = 0, sz, used, r, codepage, n; UINT ret = ERROR_FUNCTION_FAILED; diff --git a/dlls/msi/suminfo.c b/dlls/msi/suminfo.c index c9344c8..d86a2dc 100644 --- a/dlls/msi/suminfo.c +++ b/dlls/msi/suminfo.c @@ -131,7 +131,7 @@ static UINT get_type( UINT uiProperty ) return VT_EMPTY; } -static UINT get_property_count( PROPVARIANT *property ) +static UINT get_property_count( const PROPVARIANT *property ) { UINT i, n = 0; @@ -293,7 +293,7 @@ static DWORD write_dword( LPBYTE data, DWORD ofs, DWORD val ) return 4; } -static DWORD write_filetime( LPBYTE data, DWORD ofs, LPFILETIME ft ) +static DWORD write_filetime( LPBYTE data, DWORD ofs, const FILETIME *ft ) { write_dword( data, ofs, ft->dwLowDateTime ); write_dword( data, ofs + 4, ft->dwHighDateTime ); @@ -309,7 +309,7 @@ static DWORD write_string( LPBYTE data, DWORD ofs, LPCSTR str ) return (7 + len) & ~3; } -static UINT write_property_to_data( PROPVARIANT *prop, LPBYTE data ) +static UINT write_property_to_data( const PROPVARIANT *prop, LPBYTE data ) { DWORD sz = 0; @@ -336,7 +336,7 @@ static UINT write_property_to_data( PROPVARIANT *prop, LPBYTE data ) return sz; } -static UINT save_summary_info( MSISUMMARYINFO * si, IStream *stm ) +static UINT save_summary_info( const MSISUMMARYINFO * si, IStream *stm ) { UINT ret = ERROR_FUNCTION_FAILED; PROPERTYSETHEADER set_hdr;
1
0
0
0
Francois Gouget : secur32: Update win32. api to fix the winapi_check warnings.
by Alexandre Julliard
13 Jun '07
13 Jun '07
Module: wine Branch: master Commit: ffc4a4f3013b975c1b61823b7ee39a593356ab0a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ffc4a4f3013b975c1b61823b7…
Author: Francois Gouget <fgouget(a)free.fr> Date: Tue Jun 12 17:52:05 2007 +0200 secur32: Update win32.api to fix the winapi_check warnings. --- tools/winapi/win32.api | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/tools/winapi/win32.api b/tools/winapi/win32.api index 989755f..74c8324 100644 --- a/tools/winapi/win32.api +++ b/tools/winapi/win32.api @@ -3835,7 +3835,6 @@ HANDLE NTSTATUS SECURITY_STATUS ULONG -unsigned long %ptr @@ -3856,7 +3855,7 @@ PULONG PVOID PVOID * SEC_GET_KEY_FN -unsigned long * +ULONG * void * void **
1
0
0
0
← Newer
1
...
47
48
49
50
51
52
53
...
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