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
November 2008
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
2 participants
734 discussions
Start a n
N
ew thread
Henri Verbeet : wined3d: Remove some unnecessary casts in process_vertices_strided().
by Alexandre Julliard
28 Nov '08
28 Nov '08
Module: wine Branch: master Commit: f2b34c97cc79366bdfba89d9a1b93ddf9fe0706a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f2b34c97cc79366bdfba89d9a…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Nov 26 16:14:39 2008 +0100 wined3d: Remove some unnecessary casts in process_vertices_strided(). lpData is already a pointer to BYTE. Note that the cast for the normal data was actually wrong. --- dlls/wined3d/device.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 55f1548..5f7ba6e 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -4276,7 +4276,7 @@ process_vertices_strided(IWineD3DDeviceImpl *This, DWORD dwDestIndex, DWORD dwCo ((DestFVF & WINED3DFVF_POSITION_MASK) == WINED3DFVF_XYZRHW ) ) { /* The position first */ float *p = - (float *) (((char *) lpStrideData->u.s.position.lpData) + i * lpStrideData->u.s.position.dwStride); + (float *)(lpStrideData->u.s.position.lpData + i * lpStrideData->u.s.position.dwStride); float x, y, z, rhw; TRACE("In: ( %06.2f %06.2f %06.2f )\n", p[0], p[1], p[2]); @@ -4392,7 +4392,7 @@ process_vertices_strided(IWineD3DDeviceImpl *This, DWORD dwDestIndex, DWORD dwCo } if (DestFVF & WINED3DFVF_NORMAL) { float *normal = - (float *) (((float *) lpStrideData->u.s.normal.lpData) + i * lpStrideData->u.s.normal.dwStride); + (float *)(lpStrideData->u.s.normal.lpData + i * lpStrideData->u.s.normal.dwStride); /* AFAIK this should go into the lighting information */ FIXME("Didn't expect the destination to have a normal\n"); copy_and_next(dest_ptr, normal, 3 * sizeof(float)); @@ -4403,7 +4403,7 @@ process_vertices_strided(IWineD3DDeviceImpl *This, DWORD dwDestIndex, DWORD dwCo if (DestFVF & WINED3DFVF_DIFFUSE) { DWORD *color_d = - (DWORD *) (((char *) lpStrideData->u.s.diffuse.lpData) + i * lpStrideData->u.s.diffuse.dwStride); + (DWORD *)(lpStrideData->u.s.diffuse.lpData + i * lpStrideData->u.s.diffuse.dwStride); if(!color_d) { static BOOL warned = FALSE; @@ -4434,7 +4434,7 @@ process_vertices_strided(IWineD3DDeviceImpl *This, DWORD dwDestIndex, DWORD dwCo if (DestFVF & WINED3DFVF_SPECULAR) { /* What's the color value in the feedback buffer? */ DWORD *color_s = - (DWORD *) (((char *) lpStrideData->u.s.specular.lpData) + i * lpStrideData->u.s.specular.dwStride); + (DWORD *)(lpStrideData->u.s.specular.lpData + i * lpStrideData->u.s.specular.dwStride); if(!color_s) { static BOOL warned = FALSE; @@ -4464,7 +4464,7 @@ process_vertices_strided(IWineD3DDeviceImpl *This, DWORD dwDestIndex, DWORD dwCo for (tex_index = 0; tex_index < numTextures; tex_index++) { float *tex_coord = - (float *) (((char *) lpStrideData->u.s.texCoords[tex_index].lpData) + + (float *)(lpStrideData->u.s.texCoords[tex_index].lpData + i * lpStrideData->u.s.texCoords[tex_index].dwStride); if(!tex_coord) { ERR("No source texture, but destination requests one\n");
1
0
0
0
Henri Verbeet : wined3d: Const correctness fixes for ati_fragment_shader.c.
by Alexandre Julliard
28 Nov '08
28 Nov '08
Module: wine Branch: master Commit: 31d8b2762565b8292516b2383484276a171e5c90 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=31d8b2762565b8292516b2383…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Nov 26 16:14:39 2008 +0100 wined3d: Const correctness fixes for ati_fragment_shader.c. --- dlls/wined3d/ati_fragment_shader.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dlls/wined3d/ati_fragment_shader.c b/dlls/wined3d/ati_fragment_shader.c index 4cb551b..b2fb23b 100644 --- a/dlls/wined3d/ati_fragment_shader.c +++ b/dlls/wined3d/ati_fragment_shader.c @@ -159,7 +159,9 @@ static const char *debug_rep(GLuint rep) { } #define GLINFO_LOCATION (*gl_info) -static GLuint register_for_arg(DWORD arg, WineD3D_GL_Info *gl_info, unsigned int stage, GLuint *mod, GLuint *rep, GLuint tmparg) { +static GLuint register_for_arg(DWORD arg, const WineD3D_GL_Info *gl_info, + unsigned int stage, GLuint *mod, GLuint *rep, GLuint tmparg) +{ GLenum ret; if(mod) *mod = GL_NONE; @@ -224,7 +226,8 @@ static GLuint register_for_arg(DWORD arg, WineD3D_GL_Info *gl_info, unsigned int return ret; } -static GLuint find_tmpreg(struct texture_stage_op op[MAX_TEXTURES]) { +static GLuint find_tmpreg(const struct texture_stage_op op[MAX_TEXTURES]) +{ int lowest_read = -1; int lowest_write = -1; int i; @@ -284,7 +287,8 @@ static GLuint find_tmpreg(struct texture_stage_op op[MAX_TEXTURES]) { } } -static GLuint gen_ati_shader(struct texture_stage_op op[MAX_TEXTURES], WineD3D_GL_Info *gl_info) { +static GLuint gen_ati_shader(const struct texture_stage_op op[MAX_TEXTURES], const WineD3D_GL_Info *gl_info) +{ GLuint ret = GL_EXTCALL(glGenFragmentShadersATI(1)); unsigned int stage; GLuint arg0, arg1, arg2, extrarg;
1
0
0
0
Huw Davies : ole32: Forward the ASYNC_STGMEDIUM user marshallers to the STGMEDIUM quadruple.
by Alexandre Julliard
28 Nov '08
28 Nov '08
Module: wine Branch: master Commit: ed6bcc27fa025a9c73129866b81242e29cbc9a31 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ed6bcc27fa025a9c73129866b…
Author: Huw Davies <huw(a)codeweavers.com> Date: Wed Nov 26 12:43:34 2008 +0000 ole32: Forward the ASYNC_STGMEDIUM user marshallers to the STGMEDIUM quadruple. --- dlls/ole32/usrmarshal.c | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/dlls/ole32/usrmarshal.c b/dlls/ole32/usrmarshal.c index 4997ee1..8aed5d6 100644 --- a/dlls/ole32/usrmarshal.c +++ b/dlls/ole32/usrmarshal.c @@ -1891,25 +1891,26 @@ void __RPC_USER STGMEDIUM_UserFree(ULONG *pFlags, STGMEDIUM *pStgMedium) ULONG __RPC_USER ASYNC_STGMEDIUM_UserSize(ULONG *pFlags, ULONG StartingSize, ASYNC_STGMEDIUM *pStgMedium) { - FIXME(":stub\n"); - return StartingSize; + TRACE("\n"); + return STGMEDIUM_UserSize(pFlags, StartingSize, pStgMedium); } unsigned char * __RPC_USER ASYNC_STGMEDIUM_UserMarshal( ULONG *pFlags, unsigned char *pBuffer, ASYNC_STGMEDIUM *pStgMedium) { - FIXME(":stub\n"); - return pBuffer; + TRACE("\n"); + return STGMEDIUM_UserMarshal(pFlags, pBuffer, pStgMedium); } unsigned char * __RPC_USER ASYNC_STGMEDIUM_UserUnmarshal(ULONG *pFlags, unsigned char *pBuffer, ASYNC_STGMEDIUM *pStgMedium) { - FIXME(":stub\n"); - return pBuffer; + TRACE("\n"); + return STGMEDIUM_UserUnmarshal(pFlags, pBuffer, pStgMedium); } void __RPC_USER ASYNC_STGMEDIUM_UserFree(ULONG *pFlags, ASYNC_STGMEDIUM *pStgMedium) { - FIXME(":stub\n"); + TRACE("\n"); + STGMEDIUM_UserFree(pFlags, pStgMedium); } ULONG __RPC_USER FLAG_STGMEDIUM_UserSize(ULONG *pFlags, ULONG StartingSize, FLAG_STGMEDIUM *pStgMedium)
1
0
0
0
Alexandre Julliard : advapi32: Reimplemented ChangeServiceConfig2W in services.exe.
by Alexandre Julliard
28 Nov '08
28 Nov '08
Module: wine Branch: master Commit: 3249b40f70d73241f35bc948b31a9d56d656f316 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3249b40f70d73241f35bc948b…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Nov 26 14:35:30 2008 +0100 advapi32: Reimplemented ChangeServiceConfig2W in services.exe. --- dlls/advapi32/service.c | 31 +++++++++++++------------------ include/wine/svcctl.idl | 18 ++++++++++++++++-- programs/services/rpc.c | 44 +++++++++++++++++++++++++++++++++++++------- 3 files changed, 66 insertions(+), 27 deletions(-) diff --git a/dlls/advapi32/service.c b/dlls/advapi32/service.c index da2b81f..0724035 100644 --- a/dlls/advapi32/service.c +++ b/dlls/advapi32/service.c @@ -2112,8 +2112,8 @@ BOOL WINAPI ChangeServiceConfig2A( SC_HANDLE hService, DWORD dwInfoLevel, BOOL WINAPI ChangeServiceConfig2W( SC_HANDLE hService, DWORD dwInfoLevel, LPVOID lpInfo) { - HKEY hKey; struct sc_service *hsvc; + DWORD err; hsvc = sc_handle_get_handle_data(hService, SC_HTYPE_SERVICE); if (!hsvc) @@ -2121,26 +2121,21 @@ BOOL WINAPI ChangeServiceConfig2W( SC_HANDLE hService, DWORD dwInfoLevel, SetLastError( ERROR_INVALID_HANDLE ); return FALSE; } - hKey = hsvc->hkey; - if (dwInfoLevel == SERVICE_CONFIG_DESCRIPTION) + __TRY { - static const WCHAR szDescription[] = {'D','e','s','c','r','i','p','t','i','o','n',0}; - LPSERVICE_DESCRIPTIONW sd = (LPSERVICE_DESCRIPTIONW)lpInfo; - if (sd->lpDescription) - { - TRACE("Setting Description to %s\n",debugstr_w(sd->lpDescription)); - if (sd->lpDescription[0] == 0) - RegDeleteValueW(hKey,szDescription); - else - RegSetValueExW(hKey, szDescription, 0, REG_SZ, - (LPVOID)sd->lpDescription, - sizeof(WCHAR)*(strlenW(sd->lpDescription)+1)); - } + err = svcctl_ChangeServiceConfig2W( hsvc->hdr.server_handle, dwInfoLevel, lpInfo ); } - else - FIXME("STUB: %p %d %p\n",hService, dwInfoLevel, lpInfo); - return TRUE; + __EXCEPT(rpc_filter) + { + err = map_exception_code(GetExceptionCode()); + } + __ENDTRY + + if (err != ERROR_SUCCESS) + SetLastError(err); + + return err == ERROR_SUCCESS; } /****************************************************************************** diff --git a/include/wine/svcctl.idl b/include/wine/svcctl.idl index 7e5a0a6..66abd30 100644 --- a/include/wine/svcctl.idl +++ b/include/wine/svcctl.idl @@ -89,8 +89,19 @@ typedef struct _SERVICE_STATUS { typedef enum _SC_STATUS_TYPE { SC_STATUS_PROCESS_INFO = 0 } SC_STATUS_TYPE; + +typedef struct _SERVICE_DESCRIPTIONW { + LPWSTR lpDescription; +} SERVICE_DESCRIPTIONW,*LPSERVICE_DESCRIPTIONW; + +#define SERVICE_CONFIG_DESCRIPTION 1 + cpp_quote("#endif") +typedef [switch_type(DWORD)] union +{ + [case (SERVICE_CONFIG_DESCRIPTION)] SERVICE_DESCRIPTIONW descr; +} SERVICE_CONFIG2W; /* Compatible with Windows function 0x00 */ DWORD svcctl_CloseServiceHandle( @@ -276,8 +287,11 @@ cpp_quote("#endif") /* Not compatible with Windows function 0x24 */ DWORD svcctl_ChangeServiceConfig2A(/* FIXME */); - /* Not compatible with Windows function 0x25 */ - DWORD svcctl_ChangeServiceConfig2W(/* FIXME */); + /* Untested with Windows function 0x25 */ + DWORD svcctl_ChangeServiceConfig2W( + [in] SC_RPC_HANDLE hService, + [in] DWORD InfoLevel, + [in,switch_is(InfoLevel)] SERVICE_CONFIG2W *config ); /* Not compatible with Windows function 0x26 */ DWORD svcctl_QueryServiceConfig2A(/* FIXME */); diff --git a/programs/services/rpc.c b/programs/services/rpc.c index 6cc2e4a..b6ca9f2 100644 --- a/programs/services/rpc.c +++ b/programs/services/rpc.c @@ -609,6 +609,43 @@ DWORD svcctl_SetServiceStatus( return ERROR_SUCCESS; } +DWORD svcctl_ChangeServiceConfig2W( SC_RPC_HANDLE hService, DWORD level, SERVICE_CONFIG2W *config ) +{ + struct sc_service_handle *service; + DWORD err; + + if ((err = validate_service_handle(hService, SERVICE_CHANGE_CONFIG, &service)) != 0) + return err; + + switch (level) + { + case SERVICE_CONFIG_DESCRIPTION: + { + WCHAR *descr = NULL; + + if (config->descr.lpDescription[0]) + { + if (!(descr = strdupW( config->descr.lpDescription ))) + return ERROR_NOT_ENOUGH_MEMORY; + } + + WINE_TRACE( "changing service %p descr to %s\n", service, wine_dbgstr_w(descr) ); + service_lock_exclusive( service->service_entry ); + HeapFree( GetProcessHeap(), 0, service->service_entry->description ); + service->service_entry->description = descr; + save_service_config( service->service_entry ); + service_unlock( service->service_entry ); + } + break; + + default: + WINE_FIXME("level %u not implemented\n", level); + err = ERROR_INVALID_LEVEL; + break; + } + return err; +} + DWORD svcctl_QueryServiceStatusEx( SC_RPC_HANDLE hService, SC_STATUS_TYPE InfoLevel, @@ -1097,13 +1134,6 @@ DWORD svcctl_ChangeServiceConfig2A( return ERROR_CALL_NOT_IMPLEMENTED; } -DWORD svcctl_ChangeServiceConfig2W( - void) -{ - WINE_FIXME("\n"); - return ERROR_CALL_NOT_IMPLEMENTED; -} - DWORD svcctl_QueryServiceConfig2A( void) {
1
0
0
0
Jerome Gardou : d3dx8: Implement D3DXMatrixStack_MultMatrix.
by Alexandre Julliard
26 Nov '08
26 Nov '08
Module: wine Branch: master Commit: 8cdbeacd59b9534daeb615c8a5446bbcad2c0f79 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8cdbeacd59b9534daeb615c8a…
Author: Jerome Gardou <jerome.gardou(a)gmail.com> Date: Wed Nov 12 08:45:19 2008 +0100 d3dx8: Implement D3DXMatrixStack_MultMatrix. --- dlls/d3dx8/math.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dlls/d3dx8/math.c b/dlls/d3dx8/math.c index f41c9f4..34c177a 100644 --- a/dlls/d3dx8/math.c +++ b/dlls/d3dx8/math.c @@ -686,8 +686,13 @@ static HRESULT WINAPI ID3DXMatrixStackImpl_LoadMatrix(ID3DXMatrixStack *iface, C static HRESULT WINAPI ID3DXMatrixStackImpl_MultMatrix(ID3DXMatrixStack *iface, CONST D3DXMATRIX *pm) { ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; - FIXME("(%p) : stub\n",This); - return E_NOTIMPL; + + TRACE("iface %p\n", iface); + + if (!pm) return D3DERR_INVALIDCALL; + D3DXMatrixMultiply(&This->stack[This->current], &This->stack[This->current], pm); + + return D3D_OK; } static HRESULT WINAPI ID3DXMatrixStackImpl_MultMatrixLocal(ID3DXMatrixStack *iface, CONST D3DXMATRIX *pm)
1
0
0
0
Maarten Lankhorst : dsound: 64-bit pointer fixes.
by Alexandre Julliard
26 Nov '08
26 Nov '08
Module: wine Branch: master Commit: 6b6b8d9bfaefe7bcd6e9c44add455e49903b7200 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6b6b8d9bfaefe7bcd6e9c44ad…
Author: Maarten Lankhorst <m.b.lankhorst(a)gmail.com> Date: Sun Aug 10 07:52:09 2008 +0200 dsound: 64-bit pointer fixes. --- dlls/dsound/dsound_private.h | 2 +- dlls/dsound/mixer.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/dsound/dsound_private.h b/dlls/dsound/dsound_private.h index 2d87263..c16f1c1 100644 --- a/dlls/dsound/dsound_private.h +++ b/dlls/dsound/dsound_private.h @@ -456,7 +456,7 @@ void DSOUND_MixToTemporary(const IDirectSoundBufferImpl *dsb, DWORD writepos, DW DWORD DSOUND_secpos_to_bufpos(const IDirectSoundBufferImpl *dsb, DWORD secpos, DWORD secmixpos, DWORD* overshot); void CALLBACK DSOUND_timer(UINT timerID, UINT msg, DWORD_PTR dwUser, DWORD_PTR dw1, DWORD_PTR dw2); -void CALLBACK DSOUND_callback(HWAVEOUT hwo, UINT msg, DWORD dwUser, DWORD dw1, DWORD dw2); +void CALLBACK DSOUND_callback(HWAVEOUT hwo, UINT msg, DWORD_PTR dwUser, DWORD_PTR dw1, DWORD_PTR dw2); /* sound3d.c */ diff --git a/dlls/dsound/mixer.c b/dlls/dsound/mixer.c index efcb21b..3bcbce0 100644 --- a/dlls/dsound/mixer.c +++ b/dlls/dsound/mixer.c @@ -1026,10 +1026,10 @@ void CALLBACK DSOUND_timer(UINT timerID, UINT msg, DWORD_PTR dwUser, TRACE("completed processing at %d, duration = %d\n", end_time, end_time - start_time); } -void CALLBACK DSOUND_callback(HWAVEOUT hwo, UINT msg, DWORD dwUser, DWORD dw1, DWORD dw2) +void CALLBACK DSOUND_callback(HWAVEOUT hwo, UINT msg, DWORD_PTR dwUser, DWORD_PTR dw1, DWORD_PTR dw2) { DirectSoundDevice * device = (DirectSoundDevice*)dwUser; - TRACE("(%p,%x,%x,%x,%x)\n",hwo,msg,dwUser,dw1,dw2); + TRACE("(%p,%x,%lx,%lx,%lx)\n",hwo,msg,dwUser,dw1,dw2); TRACE("entering at %d, msg=%08x(%s)\n", GetTickCount(), msg, msg==MM_WOM_DONE ? "MM_WOM_DONE" : msg==MM_WOM_CLOSE ? "MM_WOM_CLOSE" : msg==MM_WOM_OPEN ? "MM_WOM_OPEN" : "UNKNOWN");
1
0
0
0
Maarten Lankhorst : msacm: Fix pointer truncation.
by Alexandre Julliard
26 Nov '08
26 Nov '08
Module: wine Branch: master Commit: cdc377c1b421c6a4b96fb100fa97363363d8e550 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cdc377c1b421c6a4b96fb100f…
Author: Maarten Lankhorst <m.b.lankhorst(a)gmail.com> Date: Mon Nov 24 16:20:12 2008 +0100 msacm: Fix pointer truncation. --- dlls/msacm32/driver.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msacm32/driver.c b/dlls/msacm32/driver.c index 481daf0..0287ebe 100644 --- a/dlls/msacm32/driver.c +++ b/dlls/msacm32/driver.c @@ -548,7 +548,7 @@ MMRESULT WINAPI acmDriverOpen(PHACMDRIVER phad, HACMDRIVERID hadid, DWORD fdwOpe adod.pszAliasName = padid->pszDriverAlias; adod.dnDevNode = 0; - pad->hDrvr = OpenDriver(padid->pszDriverAlias, NULL, (DWORD)&adod); + pad->hDrvr = OpenDriver(padid->pszDriverAlias, NULL, (DWORD_PTR)&adod); HeapFree(MSACM_hHeap, 0, section_name); if (!pad->hDrvr) @@ -573,7 +573,7 @@ MMRESULT WINAPI acmDriverOpen(PHACMDRIVER phad, HACMDRIVERID hadid, DWORD fdwOpe adod.pszAliasName = NULL; adod.dnDevNode = 0; - pad->pLocalDrvrInst = MSACM_OpenLocalDriver(padid->pLocalDriver, (DWORD)&adod); + pad->pLocalDrvrInst = MSACM_OpenLocalDriver(padid->pLocalDriver, (DWORD_PTR)&adod); if (!pad->pLocalDrvrInst) { ret = adod.dwError;
1
0
0
0
Maarten Lankhorst : winmm: Some 64-bit pointer fixes.
by Alexandre Julliard
26 Nov '08
26 Nov '08
Module: wine Branch: master Commit: 2233f1eb507e70363cca76ecefa24836ea55fcba URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2233f1eb507e70363cca76ece…
Author: Maarten Lankhorst <m.b.lankhorst(a)gmail.com> Date: Sun Aug 10 07:51:14 2008 +0200 winmm: Some 64-bit pointer fixes. --- dlls/winmm/lolvldrv.c | 10 +++++----- dlls/winmm/time.c | 10 +++++----- dlls/winmm/winemm.h | 6 +++--- include/mmddk.h | 4 ++-- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/dlls/winmm/lolvldrv.c b/dlls/winmm/lolvldrv.c index d50f329..794c117 100644 --- a/dlls/winmm/lolvldrv.c +++ b/dlls/winmm/lolvldrv.c @@ -273,8 +273,8 @@ LPWINE_MLD MMDRV_Alloc(UINT size, UINT type, LPHANDLE hndl, DWORD* dwFlags, if (llTypes[type].Callback) { *dwFlags = LOWORD(*dwFlags) | CALLBACK_FUNCTION; - *dwCallback = (DWORD)llTypes[type].Callback; - *dwInstance = (DWORD)mld; /* FIXME: wouldn't some 16 bit drivers only use the loword ? */ + *dwCallback = (DWORD_PTR)llTypes[type].Callback; + *dwInstance = (DWORD_PTR)mld; /* FIXME: wouldn't some 16 bit drivers only use the loword ? */ } return mld; @@ -421,12 +421,12 @@ LPWINE_MLD MMDRV_GetRelated(HANDLE hndl, UINT srcType, /************************************************************************** * MMDRV_PhysicalFeatures [internal] */ -UINT MMDRV_PhysicalFeatures(LPWINE_MLD mld, UINT uMsg, DWORD dwParam1, - DWORD dwParam2) +UINT MMDRV_PhysicalFeatures(LPWINE_MLD mld, UINT uMsg, + DWORD_PTR dwParam1, DWORD_PTR dwParam2) { WINE_MM_DRIVER* lpDrv = &MMDrvs[mld->mmdIndex]; - TRACE("(%p, %04x, %08x, %08x)\n", mld, uMsg, dwParam1, dwParam2); + TRACE("(%p, %04x, %08lx, %08lx)\n", mld, uMsg, dwParam1, dwParam2); /* all those function calls are undocumented */ switch (uMsg) { diff --git a/dlls/winmm/time.c b/dlls/winmm/time.c index 2092540..48ca3e8 100644 --- a/dlls/winmm/time.c +++ b/dlls/winmm/time.c @@ -55,7 +55,7 @@ typedef struct tagWINE_TIMERENTRY { UINT wDelay; UINT wResol; LPTIMECALLBACK lpFunc; /* can be lots of things */ - DWORD dwUser; + DWORD_PTR dwUser; UINT16 wFlags; UINT16 wTimerID; DWORD dwTriggerTime; @@ -170,7 +170,7 @@ static int TIME_MMSysTimeCallback(void) break; case TIME_CALLBACK_FUNCTION: { - DWORD user = timer->dwUser; + DWORD_PTR user = timer->dwUser; UINT16 id = timer->wTimerID; UINT16 flags = timer->wFlags; LPTIMECALLBACK func = timer->lpFunc; @@ -179,7 +179,7 @@ static int TIME_MMSysTimeCallback(void) LeaveCriticalSection(&WINMM_cs); if (flags & WINE_TIMER_IS32) func(id, 0, user, 0, 0); - else if (pFnCallMMDrvFunc16) pFnCallMMDrvFunc16((DWORD)func, id, 0, user, 0, 0); + else if (pFnCallMMDrvFunc16) pFnCallMMDrvFunc16((DWORD_PTR)func, id, 0, user, 0, 0); EnterCriticalSection(&WINMM_cs); if (flags & TIME_KILL_SYNCHRONOUS) LeaveCriticalSection(&TIME_cbcrst); @@ -294,14 +294,14 @@ MMRESULT WINAPI timeGetSystemTime(LPMMTIME lpTime, UINT wSize) * TIME_SetEventInternal [internal] */ WORD TIME_SetEventInternal(UINT wDelay, UINT wResol, - LPTIMECALLBACK lpFunc, DWORD dwUser, UINT wFlags) + LPTIMECALLBACK lpFunc, DWORD_PTR dwUser, UINT wFlags) { WORD wNewID = 0; LPWINE_TIMERENTRY lpNewTimer; LPWINE_TIMERENTRY lpTimer; const char c = 'c'; - TRACE("(%u, %u, %p, %08X, %04X);\n", wDelay, wResol, lpFunc, dwUser, wFlags); + TRACE("(%u, %u, %p, %08lX, %04X);\n", wDelay, wResol, lpFunc, dwUser, wFlags); if (wDelay < MMSYSTIME_MININTERVAL || wDelay > MMSYSTIME_MAXINTERVAL) return 0; diff --git a/dlls/winmm/winemm.h b/dlls/winmm/winemm.h index 805ad83..dcd2290 100644 --- a/dlls/winmm/winemm.h +++ b/dlls/winmm/winemm.h @@ -59,7 +59,7 @@ typedef struct tagWINE_DRIVER } WINE_DRIVER, *LPWINE_DRIVER; typedef DWORD (CALLBACK *WINEMM_msgFunc16)(UINT16, WORD, DWORD, DWORD, DWORD); -typedef DWORD (CALLBACK *WINEMM_msgFunc32)(UINT , UINT, DWORD, DWORD, DWORD); +typedef DWORD (CALLBACK *WINEMM_msgFunc32)(UINT , UINT, DWORD_PTR, DWORD_PTR, DWORD_PTR); /* for each loaded driver and each known type of driver, this structure contains * the information needed to access it @@ -196,7 +196,7 @@ DWORD MMDRV_Close(LPWINE_MLD mld, UINT wMsg); LPWINE_MLD MMDRV_Get(HANDLE hndl, UINT type, BOOL bCanBeID); LPWINE_MLD MMDRV_GetRelated(HANDLE hndl, UINT srcType, BOOL bSrcCanBeID, UINT dstTyped); DWORD MMDRV_Message(LPWINE_MLD mld, UINT wMsg, DWORD_PTR dwParam1, DWORD_PTR dwParam2, BOOL bFrom32); -UINT MMDRV_PhysicalFeatures(LPWINE_MLD mld, UINT uMsg, DWORD dwParam1, DWORD dwParam2); +UINT MMDRV_PhysicalFeatures(LPWINE_MLD mld, UINT uMsg, DWORD_PTR dwParam1, DWORD_PTR dwParam2); BOOL MMDRV_Is32(unsigned int); void MMDRV_InstallMap(unsigned int, MMDRV_MAPFUNC, MMDRV_UNMAPFUNC, MMDRV_MAPFUNC, MMDRV_UNMAPFUNC, LPDRVCALLBACK); @@ -240,7 +240,7 @@ LRESULT MMIO_SendMessage(HMMIO hmmio, UINT uMessage, LPARAM lParam1, LPWINE_MMIO MMIO_Get(HMMIO h); WORD TIME_SetEventInternal(UINT wDelay, UINT wResol, LPTIMECALLBACK lpFunc, - DWORD dwUser, UINT wFlags); + DWORD_PTR dwUser, UINT wFlags); void TIME_MMTimeStop(void); /* Global variables */ diff --git a/include/mmddk.h b/include/mmddk.h index 57d3e4b..c2ed4fc 100644 --- a/include/mmddk.h +++ b/include/mmddk.h @@ -413,8 +413,8 @@ typedef struct tMIXEROPENDESC { HMIXEROBJ hmx; LPVOID pReserved0; - DWORD dwCallback; - DWORD dwInstance; + DWORD_PTR dwCallback; + DWORD_PTR dwInstance; } MIXEROPENDESC, *LPMIXEROPENDESC; typedef struct {
1
0
0
0
Maarten Lankhorst : ole32: Add Co*InitializeSpy functions.
by Alexandre Julliard
26 Nov '08
26 Nov '08
Module: wine Branch: master Commit: 92dca953d933365d0f2643d6b4de5b922e866536 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=92dca953d933365d0f2643d6b…
Author: Maarten Lankhorst <maarten(a)codeweavers.com> Date: Wed Nov 26 10:28:43 2008 +0100 ole32: Add Co*InitializeSpy functions. --- dlls/ole32/compobj.c | 77 ++++++++++++++++++++++++++++++++++++++++- dlls/ole32/compobj_private.h | 1 + dlls/ole32/ole32.spec | 2 + 3 files changed, 78 insertions(+), 2 deletions(-) diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c index bc03914..d97279a 100644 --- a/dlls/ole32/compobj.c +++ b/dlls/ole32/compobj.c @@ -1014,6 +1014,64 @@ DWORD WINAPI CoBuildVersion(void) } /****************************************************************************** + * CoRegisterInitializeSpy [OLE32.@] + * + * Add a Spy that watches CoInitializeEx calls + * + * PARAMS + * spy [I] Pointer to IUnknown interface that will be QueryInterface'd. + * cookie [II] cookie receiver + * + * RETURNS + * Success: S_OK if not already initialized, S_FALSE otherwise. + * Failure: HRESULT code. + * + * SEE ALSO + * CoInitializeEx + */ +HRESULT WINAPI CoRegisterInitializeSpy(IInitializeSpy *spy, ULARGE_INTEGER *cookie) +{ + struct oletls *info = COM_CurrentInfo(); + HRESULT hr; + + TRACE("(%p, %p)\n", spy, cookie); + + if (!spy || !cookie || !info) + { + if (!info) + WARN("Could not allocate tls\n"); + return E_INVALIDARG; + } + + if (info->spy) + { + FIXME("Already registered?\n"); + return E_UNEXPECTED; + } + + hr = IUnknown_QueryInterface(spy, &IID_IInitializeSpy, (void **) &info->spy); + if (SUCCEEDED(hr)) + { + cookie->QuadPart = (DWORD_PTR)spy; + return S_OK; + } + return hr; +} + +HRESULT WINAPI CoRevokeInitializeSpy(ULARGE_INTEGER cookie) +{ + struct oletls *info = COM_CurrentInfo(); + TRACE("(%s)\n", wine_dbgstr_longlong(cookie.QuadPart)); + + if (!info || !info->spy || cookie.QuadPart != (DWORD_PTR)info->spy) + return E_INVALIDARG; + + IUnknown_Release(info->spy); + return S_OK; +} + + +/****************************************************************************** * CoInitialize [OLE32.@] * * Initializes the COM libraries by calling CoInitializeEx with @@ -1069,6 +1127,7 @@ HRESULT WINAPI CoInitialize(LPVOID lpReserved) */ HRESULT WINAPI CoInitializeEx(LPVOID lpReserved, DWORD dwCoInit) { + struct oletls *info = COM_CurrentInfo(); HRESULT hr = S_OK; APARTMENT *apt; @@ -1096,7 +1155,10 @@ HRESULT WINAPI CoInitializeEx(LPVOID lpReserved, DWORD dwCoInit) RunningObjectTableImpl_Initialize(); } - if (!(apt = COM_CurrentInfo()->apt)) + if (info->spy) + IInitializeSpy_PreInitialize(info->spy, dwCoInit, info->inits); + + if (!(apt = info->apt)) { apt = apartment_get_or_create(dwCoInit); if (!apt) return E_OUTOFMEMORY; @@ -1113,7 +1175,10 @@ HRESULT WINAPI CoInitializeEx(LPVOID lpReserved, DWORD dwCoInit) else hr = S_FALSE; - COM_CurrentInfo()->inits++; + info->inits++; + + if (info->spy) + IInitializeSpy_PostInitialize(info->spy, hr, dwCoInit, info->inits); return hr; } @@ -1144,10 +1209,16 @@ void WINAPI CoUninitialize(void) /* will only happen on OOM */ if (!info) return; + if (info->spy) + IInitializeSpy_PreUninitialize(info->spy, info->inits); + /* sanity check */ if (!info->inits) { ERR("Mismatched CoUninitialize\n"); + + if (info->spy) + IInitializeSpy_PostUninitialize(info->spy, info->inits); return; } @@ -1173,6 +1244,8 @@ void WINAPI CoUninitialize(void) ERR( "CoUninitialize() - not CoInitialized.\n" ); InterlockedExchangeAdd(&s_COMLockCount,1); /* restore the lock count. */ } + if (info->spy) + IInitializeSpy_PostUninitialize(info->spy, info->inits); } /****************************************************************************** diff --git a/dlls/ole32/compobj_private.h b/dlls/ole32/compobj_private.h index 81d591e..4b88ad2 100644 --- a/dlls/ole32/compobj_private.h +++ b/dlls/ole32/compobj_private.h @@ -175,6 +175,7 @@ struct oletls struct apartment *apt; IErrorInfo *errorinfo; /* see errorinfo.c */ IUnknown *state; /* see CoSetState */ + IInitializeSpy *spy; /* The "SPY" from CoInitializeSpy */ DWORD inits; /* number of times CoInitializeEx called */ DWORD ole_inits; /* number of times OleInitialize called */ GUID causality_id; /* unique identifier for each COM call */ diff --git a/dlls/ole32/ole32.spec b/dlls/ole32/ole32.spec index e5e90b3..79376ac 100644 --- a/dlls/ole32/ole32.spec +++ b/dlls/ole32/ole32.spec @@ -57,6 +57,7 @@ @ stub CoQueryReleaseObject @ stdcall CoRegisterChannelHook(ptr ptr) @ stdcall CoRegisterClassObject(ptr ptr long long ptr) +@ stdcall CoRegisterInitializeSpy(ptr ptr) @ stdcall CoRegisterMallocSpy (ptr) @ stdcall CoRegisterMessageFilter(ptr ptr) @ stdcall CoRegisterPSClsid(ptr ptr) @@ -67,6 +68,7 @@ @ stdcall CoResumeClassObjects() @ stdcall CoRevertToSelf() @ stdcall CoRevokeClassObject(long) +@ stdcall CoRevokeInitializeSpy(double) @ stdcall CoRevokeMallocSpy() @ stdcall CoSetProxyBlanket(ptr long long wstr long long ptr long) @ stdcall CoSetState(ptr)
1
0
0
0
Kirill K. Smirnov : winecfg/audio: Simplify removeDriver() function.
by Alexandre Julliard
26 Nov '08
26 Nov '08
Module: wine Branch: master Commit: 1482006fb565b76910d1acb6b0677f1fbf347883 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1482006fb565b76910d1acb6b…
Author: Kirill K. Smirnov <lich(a)math.spbu.ru> Date: Wed Nov 26 01:24:53 2008 +0300 winecfg/audio: Simplify removeDriver() function. --- programs/winecfg/audio.c | 59 +++++++++++++++------------------------------ 1 files changed, 20 insertions(+), 39 deletions(-) diff --git a/programs/winecfg/audio.c b/programs/winecfg/audio.c index 7f6cff8..78f9f57 100644 --- a/programs/winecfg/audio.c +++ b/programs/winecfg/audio.c @@ -173,45 +173,26 @@ static void addDriver(const char * driver) /* remove driver from local copy of driver registry string */ static void removeDriver(const char * driver) { - char before[32], after[32], * start; - - strcpy(before, ","); - strcat(before, driver); - strcpy(after, driver); - strcat(after, ","); - - if ((start = strstr(curAudioDriver, after))) - { - int len = strlen(after); - char * end = curAudioDriver + strlen(curAudioDriver); - int i, count = end - start + len; - for (i = 0; i < count; i++) - { - if (start + len >= end) - *start = 0; - else - *start = start[len]; - start++; - } - } - else if ((start = strstr(curAudioDriver, before))) - { - int len = strlen(before); - char * end = curAudioDriver + strlen(curAudioDriver); - int i, count = end - start + len; - for (i = 0; i < count; i++) - { - if (start + len >= end) - *start = 0; - else - *start = start[len]; - start++; - } - } - else if (strcmp(curAudioDriver, driver) == 0) - { - strcpy(curAudioDriver, ""); - } + char pattern[32], *p; + int drvlen, listlen; + + strcpy(pattern, ","); + strcat(pattern, driver); + strcat(pattern, ","); + drvlen = strlen(driver); + listlen = strlen(curAudioDriver); + + p = strstr(curAudioDriver, pattern); + if (p) /* somewhere in the middle */ + memmove(p, p+drvlen+1, strlen(p+drvlen+1)+1); + else if (!strncmp(curAudioDriver, pattern+1, drvlen+1)) /* the head */ + memmove(curAudioDriver, curAudioDriver+drvlen+1, listlen-drvlen); + else if (!strncmp(curAudioDriver+listlen-drvlen-1, pattern, drvlen+1)) /* the tail */ + curAudioDriver[listlen-drvlen-1] = 0; + else if (!strcmp(curAudioDriver, driver)) /* only one entry (head&tail) */ + curAudioDriver[0] = 0; + else + WINE_FIXME("driver '%s' is not in the list, please report!\n", driver); } static void initAudioDeviceTree(HWND hDlg)
1
0
0
0
← Newer
1
2
3
4
5
6
7
8
...
74
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
Results per page:
10
25
50
100
200