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
January 2011
----- 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
879 discussions
Start a n
N
ew thread
Nikolay Sivov : oleaut32: Use alloc/ free helpers for all typelib parse methods.
by Alexandre Julliard
03 Jan '11
03 Jan '11
Module: wine Branch: master Commit: a90d2efd536c54cc21475d4e77f34554a30040b4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a90d2efd536c54cc21475d4e7…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Mon Jan 3 17:32:43 2011 +0300 oleaut32: Use alloc/free helpers for all typelib parse methods. --- dlls/oleaut32/typelib.c | 260 ++++++++++++++++++++++------------------------- 1 files changed, 122 insertions(+), 138 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=a90d2efd536c54cc21475…
1
0
0
0
Vitaliy Margolen : dinput: Pass interface instead of this pointer to joystick poll callback.
by Alexandre Julliard
03 Jan '11
03 Jan '11
Module: wine Branch: master Commit: 7d650d0b284b6814624ba07cdfa2d90854d801a7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7d650d0b284b6814624ba07cd…
Author: Vitaliy Margolen <wine-patches(a)kievinfo.com> Date: Mon Jan 3 07:25:11 2011 -0700 dinput: Pass interface instead of this pointer to joystick poll callback. --- dlls/dinput/joystick.c | 4 ++-- dlls/dinput/joystick_linux.c | 9 +++++---- dlls/dinput/joystick_linuxinput.c | 4 ++-- dlls/dinput/joystick_osx.c | 4 ++-- dlls/dinput/joystick_private.h | 2 +- 5 files changed, 12 insertions(+), 11 deletions(-) diff --git a/dlls/dinput/joystick.c b/dlls/dinput/joystick.c index 7d781c9..e894dc6 100644 --- a/dlls/dinput/joystick.c +++ b/dlls/dinput/joystick.c @@ -358,7 +358,7 @@ HRESULT WINAPI JoystickAGenericImpl_Poll(LPDIRECTINPUTDEVICE8A iface) return DIERR_NOTACQUIRED; } - This->joy_polldev(This); + This->joy_polldev(iface); return DI_OK; } @@ -381,7 +381,7 @@ HRESULT WINAPI JoystickAGenericImpl_GetDeviceState( } /* update joystick state */ - This->joy_polldev(This); + This->joy_polldev(iface); /* convert and copy data to user supplied buffer */ fill_DataFormat(ptr, len, &This->js, &This->base.data_format); diff --git a/dlls/dinput/joystick_linux.c b/dlls/dinput/joystick_linux.c index 1396ea5..d489ef3 100644 --- a/dlls/dinput/joystick_linux.c +++ b/dlls/dinput/joystick_linux.c @@ -110,7 +110,7 @@ static const GUID DInput_Wine_Joystick_GUID = { /* 9e573ed9-7734-11d2-8d4a-23903 static INT joystick_devices_count = -1; static struct JoyDev *joystick_devices; -static void joy_polldev(JoystickGenericImpl *This); +static void joy_polldev(LPDIRECTINPUTDEVICE8A iface); static INT find_joystick_devices(void) { @@ -544,10 +544,11 @@ static HRESULT WINAPI JoystickLinuxAImpl_Unacquire(LPDIRECTINPUTDEVICE8A iface) return DI_NOEFFECT; } -static void joy_polldev(JoystickGenericImpl *This_in) { +static void joy_polldev(LPDIRECTINPUTDEVICE8A iface) +{ struct pollfd plfd; - struct js_event jse; - JoystickImpl *This = (JoystickImpl*) This_in; + struct js_event jse; + JoystickImpl *This = (JoystickImpl*) iface; TRACE("(%p)\n", This); diff --git a/dlls/dinput/joystick_linuxinput.c b/dlls/dinput/joystick_linuxinput.c index 6da6066..1bb3398 100644 --- a/dlls/dinput/joystick_linuxinput.c +++ b/dlls/dinput/joystick_linuxinput.c @@ -135,7 +135,7 @@ struct JoystickImpl static void fake_current_js_state(JoystickImpl *ji); static void find_joydevs(void); -static void joy_polldev(JoystickGenericImpl *This); +static void joy_polldev(LPDIRECTINPUTDEVICE8A iface); /* This GUID is slightly different from the linux joystick one. Take note. */ static const GUID DInput_Wine_Joystick_Base_GUID = { /* 9e573eda-7734-11d2-8d4a-23903fb6bdf7 */ @@ -731,7 +731,7 @@ static void fake_current_js_state(JoystickImpl *ji) #undef CENTER_AXIS /* convert wine format offset to user format object index */ -static void joy_polldev(JoystickGenericImpl *iface) +static void joy_polldev(LPDIRECTINPUTDEVICE8A iface) { struct pollfd plfd; struct input_event ie; diff --git a/dlls/dinput/joystick_osx.c b/dlls/dinput/joystick_osx.c index fc218d3..2b4ea12 100644 --- a/dlls/dinput/joystick_osx.c +++ b/dlls/dinput/joystick_osx.c @@ -517,9 +517,9 @@ static void get_osx_device_elements_props(JoystickImpl *device) } } -static void poll_osx_device_state(JoystickGenericImpl *device_in) +static void poll_osx_device_state(LPDIRECTINPUTDEVICE8A iface) { - JoystickImpl *device = (JoystickImpl*)device_in; + JoystickImpl *device = (JoystickImpl*)iface; IOHIDElementRef tIOHIDTopElementRef; IOHIDDeviceRef tIOHIDDeviceRef; CFArrayRef gElementCFArrayRef = device->elementCFArrayRef; diff --git a/dlls/dinput/joystick_private.h b/dlls/dinput/joystick_private.h index ebbd325..dfa0dfa 100644 --- a/dlls/dinput/joystick_private.h +++ b/dlls/dinput/joystick_private.h @@ -33,7 +33,7 @@ #define MAX_PROPS 164 struct JoystickGenericImpl; -typedef void joy_polldev_handler(struct JoystickGenericImpl *This); +typedef void joy_polldev_handler(LPDIRECTINPUTDEVICE8A iface); typedef struct JoystickGenericImpl {
1
0
0
0
Vitaliy Margolen : dinput: Rename IDirectInputDevice2AImpl into IDirectInputDeviceImpl.
by Alexandre Julliard
03 Jan '11
03 Jan '11
Module: wine Branch: master Commit: 179b862738aae3b84b87c8e421cef868fe60e87e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=179b862738aae3b84b87c8e42…
Author: Vitaliy Margolen <wine-patches(a)kievinfo.com> Date: Mon Jan 3 07:25:07 2011 -0700 dinput: Rename IDirectInputDevice2AImpl into IDirectInputDeviceImpl. --- dlls/dinput/device.c | 34 +++++++++++++++++----------------- dlls/dinput/device_private.h | 4 ++-- dlls/dinput/dinput_main.c | 18 +++++++++--------- dlls/dinput/joystick_private.h | 2 +- dlls/dinput/keyboard.c | 2 +- dlls/dinput/mouse.c | 4 ++-- 6 files changed, 32 insertions(+), 32 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=179b862738aae3b84b87c…
1
0
0
0
Vitaliy Margolen : dinput: COM cleanup - use interface instead of lpvtbl in joystick effects.
by Alexandre Julliard
03 Jan '11
03 Jan '11
Module: wine Branch: master Commit: 0adc4708548d824ddad1bc3d73d655dfcbad033b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0adc4708548d824ddad1bc3d7…
Author: Vitaliy Margolen <wine-patches(a)kievinfo.com> Date: Mon Jan 3 07:24:34 2011 -0700 dinput: COM cleanup - use interface instead of lpvtbl in joystick effects. --- dlls/dinput/effect_linuxinput.c | 34 +++++++++++++++++++--------------- 1 files changed, 19 insertions(+), 15 deletions(-) diff --git a/dlls/dinput/effect_linuxinput.c b/dlls/dinput/effect_linuxinput.c index 7802271..e35a96f 100644 --- a/dlls/dinput/effect_linuxinput.c +++ b/dlls/dinput/effect_linuxinput.c @@ -49,9 +49,9 @@ static const IDirectInputEffectVtbl LinuxInputEffectVtbl; typedef struct LinuxInputEffectImpl LinuxInputEffectImpl; struct LinuxInputEffectImpl { - const void *lpVtbl; - LONG ref; - GUID guid; + IDirectInputEffect IDirectInputEffect_iface; + LONG ref; + GUID guid; struct ff_effect effect; /* Effect data */ int gain; /* Effect gain */ @@ -60,6 +60,10 @@ struct LinuxInputEffectImpl struct list *entry; /* Entry into the parent's list of effects */ }; +static inline LinuxInputEffectImpl *impl_from_IDirectInputEffect(IDirectInputEffect *iface) +{ + return CONTAINING_RECORD(iface, LinuxInputEffectImpl, IDirectInputEffect_iface); +} /****************************************************************************** * DirectInputEffect Functional Helper @@ -244,14 +248,14 @@ static void _dump_DIEFFECT(LPCDIEFFECT eff, REFGUID guid) static ULONG WINAPI LinuxInputEffectImpl_AddRef( LPDIRECTINPUTEFFECT iface) { - LinuxInputEffectImpl *This = (LinuxInputEffectImpl *)iface; + LinuxInputEffectImpl *This = impl_from_IDirectInputEffect(iface); return InterlockedIncrement(&(This->ref)); } static HRESULT WINAPI LinuxInputEffectImpl_Download( LPDIRECTINPUTEFFECT iface) { - LinuxInputEffectImpl *This = (LinuxInputEffectImpl *)iface; + LinuxInputEffectImpl *This = impl_from_IDirectInputEffect(iface); TRACE("(this=%p)\n", This); @@ -281,7 +285,7 @@ static HRESULT WINAPI LinuxInputEffectImpl_GetEffectGuid( LPDIRECTINPUTEFFECT iface, LPGUID pguid) { - LinuxInputEffectImpl *This = (LinuxInputEffectImpl*)iface; + LinuxInputEffectImpl *This = impl_from_IDirectInputEffect(iface); TRACE("(this=%p,%p)\n", This, pguid); @@ -312,7 +316,7 @@ static HRESULT WINAPI LinuxInputEffectImpl_GetParameters( DWORD dwFlags) { HRESULT diErr = DI_OK; - LinuxInputEffectImpl *This = (LinuxInputEffectImpl *)iface; + LinuxInputEffectImpl *This = impl_from_IDirectInputEffect(iface); TRACE("(this=%p,%p,%d)\n", This, peff, dwFlags); /* Major conversion factors are: @@ -474,7 +478,7 @@ static HRESULT WINAPI LinuxInputEffectImpl_QueryInterface( REFIID riid, void **ppvObject) { - LinuxInputEffectImpl* This = (LinuxInputEffectImpl*)iface; + LinuxInputEffectImpl *This = impl_from_IDirectInputEffect(iface); TRACE("(this=%p,%s,%p)\n", This, debugstr_guid(riid), ppvObject); @@ -495,7 +499,7 @@ static HRESULT WINAPI LinuxInputEffectImpl_Start( DWORD dwFlags) { struct input_event event; - LinuxInputEffectImpl* This = (LinuxInputEffectImpl*)iface; + LinuxInputEffectImpl *This = impl_from_IDirectInputEffect(iface); TRACE("(this=%p,%d,%d)\n", This, dwIterations, dwFlags); @@ -527,8 +531,8 @@ static HRESULT WINAPI LinuxInputEffectImpl_SetParameters( LPDIRECTINPUTEFFECT iface, LPCDIEFFECT peff, DWORD dwFlags) -{ - LinuxInputEffectImpl* This = (LinuxInputEffectImpl*)iface; +{ + LinuxInputEffectImpl *This = impl_from_IDirectInputEffect(iface); DWORD type = _typeFromGUID(&This->guid); HRESULT retval = DI_OK; @@ -727,7 +731,7 @@ static HRESULT WINAPI LinuxInputEffectImpl_Stop( LPDIRECTINPUTEFFECT iface) { struct input_event event; - LinuxInputEffectImpl *This = (LinuxInputEffectImpl *)iface; + LinuxInputEffectImpl *This = impl_from_IDirectInputEffect(iface); TRACE("(this=%p)\n", This); @@ -743,7 +747,7 @@ static HRESULT WINAPI LinuxInputEffectImpl_Stop( static HRESULT WINAPI LinuxInputEffectImpl_Unload( LPDIRECTINPUTEFFECT iface) { - LinuxInputEffectImpl *This = (LinuxInputEffectImpl *)iface; + LinuxInputEffectImpl *This = impl_from_IDirectInputEffect(iface); TRACE("(this=%p)\n", This); /* Erase the downloaded effect */ @@ -758,7 +762,7 @@ static HRESULT WINAPI LinuxInputEffectImpl_Unload( static ULONG WINAPI LinuxInputEffectImpl_Release(LPDIRECTINPUTEFFECT iface) { - LinuxInputEffectImpl *This = (LinuxInputEffectImpl *)iface; + LinuxInputEffectImpl *This = impl_from_IDirectInputEffect(iface); ULONG ref = InterlockedDecrement(&(This->ref)); if (ref == 0) @@ -786,7 +790,7 @@ HRESULT linuxinput_create_effect( HEAP_ZERO_MEMORY, sizeof(LinuxInputEffectImpl)); DWORD type = _typeFromGUID(rguid); - newEffect->lpVtbl = &LinuxInputEffectVtbl; + newEffect->IDirectInputEffect_iface.lpVtbl = &LinuxInputEffectVtbl; newEffect->ref = 1; newEffect->guid = *rguid; newEffect->fd = fd;
1
0
0
0
Jacek Caban : mshtml: Don' t prefer to forward a few more calls in nsIURL implementation.
by Alexandre Julliard
03 Jan '11
03 Jan '11
Module: wine Branch: master Commit: 64c1b7922e28b1ffff8d9a60fa6b82627f98de27 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=64c1b7922e28b1ffff8d9a60f…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Mon Jan 3 14:52:51 2011 +0100 mshtml: Don't prefer to forward a few more calls in nsIURL implementation. --- dlls/mshtml/nsio.c | 9 --------- 1 files changed, 0 insertions(+), 9 deletions(-) diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index ed098e3..e5cfa78 100644 --- a/dlls/mshtml/nsio.c +++ b/dlls/mshtml/nsio.c @@ -1933,9 +1933,6 @@ static nsresult NSAPI nsURI_GetPath(nsIURL *iface, nsACString *aPath) TRACE("(%p)->(%p)\n", This, aPath); - if(This->nsuri) - return nsIURI_GetPath(This->nsuri, aPath); - return get_uri_string(This, Uri_PROPERTY_PATH, aPath); } @@ -2060,9 +2057,6 @@ static nsresult NSAPI nsURI_Resolve(nsIURL *iface, const nsACString *aRelativePa TRACE("(%p)->(%s %p)\n", This, debugstr_nsacstr(aRelativePath), _retval); - if(This->nsuri) - return nsIURI_Resolve(This->nsuri, aRelativePath, _retval); - nsACString_GetData(aRelativePath, &patha); path = heap_strdupAtoW(patha); if(!path) @@ -2184,9 +2178,6 @@ static nsresult NSAPI nsURL_GetQuery(nsIURL *iface, nsACString *aQuery) TRACE("(%p)->(%p)\n", This, aQuery); - if(This->nsurl) - return nsIURL_GetQuery(This->nsurl, aQuery); - return get_uri_string(This, Uri_PROPERTY_QUERY, aQuery); }
1
0
0
0
Jacek Caban : mshtml: Use IUri for nsURL::[Get|Set]Password implementation.
by Alexandre Julliard
03 Jan '11
03 Jan '11
Module: wine Branch: master Commit: 0aefffe9b4570374d8fc1874ab5e1cb438ba9eb0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0aefffe9b4570374d8fc1874a…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Mon Jan 3 14:52:34 2011 +0100 mshtml: Use IUri for nsURL::[Get|Set]Password implementation. --- dlls/mshtml/nsio.c | 29 ++++++++++++++++++----------- 1 files changed, 18 insertions(+), 11 deletions(-) diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index e7f8a70..ed098e3 100644 --- a/dlls/mshtml/nsio.c +++ b/dlls/mshtml/nsio.c @@ -1780,26 +1780,33 @@ static nsresult NSAPI nsURI_GetPassword(nsIURL *iface, nsACString *aPassword) TRACE("(%p)->(%p)\n", This, aPassword); - if(This->nsuri) - return nsIURI_GetPassword(This->nsuri, aPassword); - - FIXME("default action not implemented\n"); - return NS_ERROR_NOT_IMPLEMENTED; + return get_uri_string(This, Uri_PROPERTY_PASSWORD, aPassword); } static nsresult NSAPI nsURI_SetPassword(nsIURL *iface, const nsACString *aPassword) { nsWineURI *This = NSURI_THIS(iface); + const char *passa; + WCHAR *pass; + HRESULT hres; TRACE("(%p)->(%s)\n", This, debugstr_nsacstr(aPassword)); - if(This->nsuri) { - invalidate_uri(This); - return nsIURI_SetPassword(This->nsuri, aPassword); - } + if(!ensure_uri_builder(This)) + return NS_ERROR_UNEXPECTED; - FIXME("default action not implemented\n"); - return NS_ERROR_NOT_IMPLEMENTED; + nsACString_GetData(aPassword, &passa); + pass = heap_strdupAtoW(passa); + if(!pass) + return NS_ERROR_OUT_OF_MEMORY; + + hres = IUriBuilder_SetPassword(This->uri_builder, pass); + heap_free(pass); + if(FAILED(hres)) + return NS_ERROR_UNEXPECTED; + + sync_wine_url(This); + return NS_OK; } static nsresult NSAPI nsURI_GetHostPort(nsIURL *iface, nsACString *aHostPort)
1
0
0
0
Nikolay Sivov : oleaut32/tests: Cleanup some test macros.
by Alexandre Julliard
03 Jan '11
03 Jan '11
Module: wine Branch: master Commit: 4e17e38aa2b451849550f22b1e6dfa91a0c5c328 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4e17e38aa2b451849550f22b1…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Sun Jan 2 17:26:44 2011 +0300 oleaut32/tests: Cleanup some test macros. --- dlls/oleaut32/tests/typelib.c | 4 +- dlls/oleaut32/tests/vartype.c | 275 +++++++++++++++++++---------------------- 2 files changed, 129 insertions(+), 150 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=4e17e38aa2b451849550f…
1
0
0
0
Nikolay Sivov : oleaut32: Use structure size instead of hardcoded values.
by Alexandre Julliard
03 Jan '11
03 Jan '11
Module: wine Branch: master Commit: 30b516b8d4ddff15c1824f14811ce48f4346c038 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=30b516b8d4ddff15c1824f148…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Sun Jan 2 13:41:44 2011 +0300 oleaut32: Use structure size instead of hardcoded values. --- dlls/oleaut32/typelib2.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dlls/oleaut32/typelib2.c b/dlls/oleaut32/typelib2.c index 82915a7..fdf712b 100644 --- a/dlls/oleaut32/typelib2.c +++ b/dlls/oleaut32/typelib2.c @@ -1976,7 +1976,8 @@ static HRESULT WINAPI ICreateTypeInfo2_fnAddFuncDesc( insert = alloc_cyclic_list_item(CyclicListFunc); if(!insert) return E_OUTOFMEMORY; - insert->u.data = HeapAlloc(GetProcessHeap(), 0, sizeof(int[6])+sizeof(int[(num_defaults?4:3)])*pFuncDesc->cParams); + insert->u.data = HeapAlloc(GetProcessHeap(), 0, FIELD_OFFSET(MSFT_FuncRecord, HelpContext)+ + sizeof(int[(num_defaults?4:3)])*pFuncDesc->cParams); if(!insert->u.data) { HeapFree(GetProcessHeap(), 0, insert); return E_OUTOFMEMORY; @@ -1984,7 +1985,7 @@ static HRESULT WINAPI ICreateTypeInfo2_fnAddFuncDesc( /* fill out the basic type information */ typedata = insert->u.data; - typedata[0] = 0x18 + pFuncDesc->cParams*(num_defaults?16:12); + typedata[0] = FIELD_OFFSET(MSFT_FuncRecord, HelpContext) + pFuncDesc->cParams*(num_defaults?16:12); ctl2_encode_typedesc(This->typelib, &pFuncDesc->elemdescFunc.tdesc, &typedata[1], NULL, NULL, &decoded_size); typedata[2] = pFuncDesc->wFuncFlags; typedata[3] = ((sizeof(FUNCDESC) + decoded_size) << 16) | (unsigned short)(pFuncDesc->oVft?pFuncDesc->oVft+1:0); @@ -2048,7 +2049,7 @@ static HRESULT WINAPI ICreateTypeInfo2_fnAddFuncDesc( } /* update type data size */ - This->typedata->next->u.val += 0x18 + pFuncDesc->cParams*(num_defaults?16:12); + This->typedata->next->u.val += FIELD_OFFSET(MSFT_FuncRecord, HelpContext) + pFuncDesc->cParams*(num_defaults?16:12); /* Increment the number of function elements */ This->typeinfo->cElement += 1;
1
0
0
0
Nikolay Sivov : oleview: Fix some crashes on unnamed methods/arguments.
by Alexandre Julliard
03 Jan '11
03 Jan '11
Module: wine Branch: master Commit: f88d7bc8ca2e67d4b04870dc6295aaf04661c4b5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f88d7bc8ca2e67d4b04870dc6…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Sun Jan 2 16:05:10 2011 +0300 oleview: Fix some crashes on unnamed methods/arguments. --- programs/oleview/typelib.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/programs/oleview/typelib.c b/programs/oleview/typelib.c index 771305f..d2d6d00 100644 --- a/programs/oleview/typelib.c +++ b/programs/oleview/typelib.c @@ -631,7 +631,7 @@ static int EnumFuncs(ITypeInfo *pTypeInfo, TYPEATTR *pTypeAttr, HTREEITEM hParen AddToTLDataStrW(tld, wszStdCall); AddToTLDataStrW(tld, wszSpace); } - AddToTLDataStrW(tld, bstrName); + if (bstrName) AddToTLDataStrW(tld, bstrName); AddToTLDataStrW(tld, wszOpenBrackets2); for(j=0; j<pFuncDesc->cParams; j++) @@ -701,8 +701,11 @@ static int EnumFuncs(ITypeInfo *pTypeInfo, TYPEATTR *pTypeAttr, HTREEITEM hParen AddToTLDataStrW(tld, wszAfter); AddToTLDataStrW(tld, wszSpace); if (j+1 < namesNo) { - AddToTLDataStrW(tld, bstrParamNames[j+1]); - SysFreeString(bstrParamNames[j+1]); + if (bstrParamNames[j+1]) + { + AddToTLDataStrW(tld, bstrParamNames[j+1]); + SysFreeString(bstrParamNames[j+1]); + } } else { AddToTLDataStrW(tld, szRhs); }
1
0
0
0
Nikolay Sivov : oleview: Fix some crashes on unnamed variables.
by Alexandre Julliard
03 Jan '11
03 Jan '11
Module: wine Branch: master Commit: 64bf7ca869cd6615bf6ecc9eafd9a165938031c4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=64bf7ca869cd6615bf6ecc9ea…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Fri Dec 31 23:36:08 2010 +0300 oleview: Fix some crashes on unnamed variables. --- programs/oleview/typelib.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/oleview/typelib.c b/programs/oleview/typelib.c index 2b69ec4..771305f 100644 --- a/programs/oleview/typelib.c +++ b/programs/oleview/typelib.c @@ -420,7 +420,7 @@ static int EnumVars(ITypeInfo *pTypeInfo, int cVars, HTREEITEM hParent) memset(wszAfter, 0, sizeof(wszAfter)); CreateTypeInfo(wszText, wszAfter, pVarDesc->elemdescVar.tdesc, pTypeInfo); AddToStrW(wszText, wszSpace); - AddToStrW(wszText, bstrName); + if (bstrName) AddToStrW(wszText, bstrName); AddToStrW(wszText, wszAfter); AddToTLDataStrW(tld, wszText); AddToTLDataStrW(tld, wszSemicolon); @@ -482,7 +482,7 @@ static int EnumEnums(ITypeInfo *pTypeInfo, int cVars, HTREEITEM hParent) AddToStrW(wszText, wszSpace); AddToStrW(wszText, bstrName); AddToStrW(wszText, wszAfter); - AddToTLDataStrW(tld, bstrName); + if (bstrName) AddToTLDataStrW(tld, bstrName); AddToTLDataStrW(tld, wszAfter); if (i<cVars-1) AddToTLDataStrW(tld, wszComa);
1
0
0
0
← Newer
1
...
80
81
82
83
84
85
86
87
88
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Results per page:
10
25
50
100
200