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
March 2023
----- 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
1 participants
910 discussions
Start a n
N
ew thread
Michael Stefaniuc : uiautomationcore/tests: Drop superfluous TRUE : FALSE conditional expression.
by Alexandre Julliard
31 Mar '23
31 Mar '23
Module: wine Branch: master Commit: 0afc0d8de995e4e4e85dd676a3ea61f5f29cd5bc URL:
https://gitlab.winehq.org/wine/wine/-/commit/0afc0d8de995e4e4e85dd676a3ea61…
Author: Michael Stefaniuc <mstefani(a)winehq.org> Date: Thu Mar 30 19:21:51 2023 +0200 uiautomationcore/tests: Drop superfluous TRUE : FALSE conditional expression. --- dlls/uiautomationcore/tests/uiautomation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/uiautomationcore/tests/uiautomation.c b/dlls/uiautomationcore/tests/uiautomation.c index ce3ee303fd1..3d2a61af8f0 100644 --- a/dlls/uiautomationcore/tests/uiautomation.c +++ b/dlls/uiautomationcore/tests/uiautomation.c @@ -135,7 +135,7 @@ static BOOL iface_cmp(IUnknown *iface1, IUnknown *iface2) IUnknown_QueryInterface(iface1, &IID_IUnknown, (void**)&unk1); IUnknown_QueryInterface(iface2, &IID_IUnknown, (void**)&unk2); - cmp = (unk1 == unk2) ? TRUE : FALSE; + cmp = unk1 == unk2; IUnknown_Release(unk1); IUnknown_Release(unk2);
1
0
0
0
Mohamad Al-Jaf : include: Add windows.ui.core.idl file.
by Alexandre Julliard
31 Mar '23
31 Mar '23
Module: wine Branch: master Commit: 98d7ac0c8437bb470d30070fe3b7bb95af723c2f URL:
https://gitlab.winehq.org/wine/wine/-/commit/98d7ac0c8437bb470d30070fe3b7bb…
Author: Mohamad Al-Jaf <mohamadaljaf(a)gmail.com> Date: Fri Mar 3 01:43:21 2023 -0500 include: Add windows.ui.core.idl file. Needed for mingw Firefox build. --- include/Makefile.in | 1 + include/windows.graphics.holographic.idl | 2 +- include/windows.ui.core.idl | 130 +++++++++++++++++++++++++++++++ include/windows.ui.viewmanagement.idl | 2 +- 4 files changed, 133 insertions(+), 2 deletions(-) diff --git a/include/Makefile.in b/include/Makefile.in index 9bde0bcceb0..f0c0da3ed93 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -836,6 +836,7 @@ SOURCES = \ windows.system.profile.systemmanufacturers.idl \ windows.system.threading.idl \ windows.system.userprofile.idl \ + windows.ui.core.idl \ windows.ui.idl \ windows.ui.viewmanagement.idl \ windowscontracts.idl \ diff --git a/include/windows.graphics.holographic.idl b/include/windows.graphics.holographic.idl index 568003cd7a3..88a7aa914b8 100644 --- a/include/windows.graphics.holographic.idl +++ b/include/windows.graphics.holographic.idl @@ -30,7 +30,7 @@ import "windows.graphics.directx.idl"; import "windows.graphics.directx.direct3d11.idl"; /* import "windows.perception.idl"; */ import "windows.perception.spatial.idl"; -/* import "windows.ui.core.idl"; */ +import "windows.ui.core.idl"; namespace Windows.Graphics.Holographic { typedef struct HolographicAdapterId HolographicAdapterId; diff --git a/include/windows.ui.core.idl b/include/windows.ui.core.idl new file mode 100644 index 00000000000..aa6d4b1f040 --- /dev/null +++ b/include/windows.ui.core.idl @@ -0,0 +1,130 @@ +/* + * Copyright (C) 2023 Mohamad Al-Jaf + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#ifdef __WIDL__ +#pragma winrt ns_prefix +#endif + +import "inspectable.idl"; +import "asyncinfo.idl"; +import "eventtoken.idl"; +import "windowscontracts.idl"; +import "windows.foundation.idl"; +import "windows.system.idl"; +import "windows.ui.idl"; +/* import "windows.ui.composition.idl"; */ +/* import "windows.ui.input.idl"; */ +/* import "windows.ui.input.inking.idl"; */ +/* import "windows.ui.input.inking.core.idl"; */ +/* import "windows.ui.popups.idl"; */ + +namespace Windows.UI.Core { + typedef enum CoreDispatcherPriority CoreDispatcherPriority; + typedef enum CoreProcessEventsOption CoreProcessEventsOption; + + interface ICoreAcceleratorKeys; + interface ICoreDispatcher; + interface ICoreDispatcher2; + interface ICoreDispatcherWithTaskPriority; + interface IIdleDispatchedHandlerArgs; + + runtimeclass AcceleratorKeyEventArgs; + runtimeclass CoreDispatcher; + runtimeclass IdleDispatchedHandlerArgs; + + [ + contract(Windows.Foundation.UniversalApiContract, 1.0) + ] + enum CoreDispatcherPriority + { + [contract(Windows.Foundation.UniversalApiContract, 1.0)] + Idle = -2, + Low = -1, + Normal = 0, + High = 1, + }; + + [ + contract(Windows.Foundation.UniversalApiContract, 1.0) + ] + enum CoreProcessEventsOption + { + ProcessOneAndAllPending = 0, + ProcessOneIfPresent = 1, + ProcessUntilQuit = 2, + ProcessAllIfPresent = 3, + }; + + [ + contract(Windows.Foundation.UniversalApiContract, 1.0), + uuid(d1f276c4-98d8-4636-bf49-eb79507548e9) + ] + delegate HRESULT DispatchedHandler(); + + [ + contract(Windows.Foundation.UniversalApiContract, 1.0), + uuid(a42b0c24-7f21-4abc-99c1-8f01007f0880) + ] + delegate HRESULT IdleDispatchedHandler([in] Windows.UI.Core.IdleDispatchedHandlerArgs *e); + + [ + contract(Windows.Foundation.UniversalApiContract, 1.0), + exclusiveto(Windows.UI.Core.CoreDispatcher), + uuid(60db2fa8-b705-4fde-a7d6-ebbb1891d39e) + ] + interface ICoreDispatcher : IInspectable + requires Windows.UI.Core.ICoreAcceleratorKeys + { + [propget] HRESULT HasThreadAccess([out, retval] boolean *value); + HRESULT ProcessEvents([in] Windows.UI.Core.CoreProcessEventsOption options); + HRESULT RunAsync([in] Windows.UI.Core.CoreDispatcherPriority priority, [in] Windows.UI.Core.DispatchedHandler *callback, + [out, retval] Windows.Foundation.IAsyncAction **action); + HRESULT RunIdleAsync([in] Windows.UI.Core.IdleDispatchedHandler *callback, [out, retval] Windows.Foundation.IAsyncAction **action); + } + + [ + contract(Windows.Foundation.UniversalApiContract, 1.0), + exclusiveto(Windows.UI.Core.IdleDispatchedHandlerArgs), + uuid(98bb6a24-dc1c-43cb-b4ed-d1c0eb2391f3) + ] + interface IIdleDispatchedHandlerArgs : IInspectable + { + [propget] HRESULT IsDispatcherIdle([out, retval] boolean *value); + } + + [ + contract(Windows.Foundation.UniversalApiContract, 1.0), + marshaling_behavior(agile) + ] + runtimeclass CoreDispatcher + { + [default] interface Windows.UI.Core.ICoreDispatcher; + interface Windows.UI.Core.ICoreAcceleratorKeys; + [contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.UI.Core.ICoreDispatcherWithTaskPriority; + [contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.UI.Core.ICoreDispatcher2; + } + + [ + contract(Windows.Foundation.UniversalApiContract, 1.0), + marshaling_behavior(standard) + ] + runtimeclass IdleDispatchedHandlerArgs + { + [default] interface Windows.UI.Core.IIdleDispatchedHandlerArgs; + } +} diff --git a/include/windows.ui.viewmanagement.idl b/include/windows.ui.viewmanagement.idl index dcfa83aa74d..b98d34ff685 100644 --- a/include/windows.ui.viewmanagement.idl +++ b/include/windows.ui.viewmanagement.idl @@ -28,7 +28,7 @@ import "windows.foundation.idl"; import "windows.devices.enumeration.idl"; /* import "windows.phone.idl"; */ import "windows.ui.idl"; -/* import "windows.ui.core.idl"; */ +import "windows.ui.core.idl"; /* import "windows.ui.popups.idl"; */ /* import "windows.ui.windowmanagement.idl"; */
1
0
0
0
Michael Stefaniuc : dinput: Remove superfluous cast to self.
by Alexandre Julliard
31 Mar '23
31 Mar '23
Module: wine Branch: master Commit: 6acbec19279c25c3751f459053bfad5f18a62245 URL:
https://gitlab.winehq.org/wine/wine/-/commit/6acbec19279c25c3751f459053bfad…
Author: Michael Stefaniuc <mstefani(a)winehq.org> Date: Thu Mar 30 19:35:16 2023 +0200 dinput: Remove superfluous cast to self. --- dlls/dinput/dinput.c | 2 +- dlls/dinput/tests/dinput.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/dinput/dinput.c b/dlls/dinput/dinput.c index f3003b652d8..76c60b09db0 100644 --- a/dlls/dinput/dinput.c +++ b/dlls/dinput/dinput.c @@ -944,7 +944,7 @@ HRESULT WINAPI DECLSPEC_HOTPATCH DirectInput8Create( HINSTANCE hinst, DWORD vers if (outer || FAILED(hr = IDirectInput8_Initialize( (IDirectInput8W *)unknown, hinst, version ))) { - IUnknown_Release( (IUnknown *)unknown ); + IUnknown_Release( unknown ); *out = NULL; return hr; } diff --git a/dlls/dinput/tests/dinput.c b/dlls/dinput/tests/dinput.c index 682a5cbf97f..88db7be9288 100644 --- a/dlls/dinput/tests/dinput.c +++ b/dlls/dinput/tests/dinput.c @@ -84,7 +84,7 @@ static HRESULT WINAPI outer_QueryInterface( IUnknown *iface, REFIID iid, void ** if (IsEqualGUID( iid, &IID_IUnknown )) { - *obj = (IUnknown *)iface; + *obj = iface; return S_OK; }
1
0
0
0
Michael Stefaniuc : dinput/tests: Drop superfluous TRUE : FALSE conditional expressions.
by Alexandre Julliard
31 Mar '23
31 Mar '23
Module: wine Branch: master Commit: 567e35ceaf4bbf23c91d545d7a15c75dada6a424 URL:
https://gitlab.winehq.org/wine/wine/-/commit/567e35ceaf4bbf23c91d545d7a15c7…
Author: Michael Stefaniuc <mstefani(a)winehq.org> Date: Thu Mar 30 19:20:44 2023 +0200 dinput/tests: Drop superfluous TRUE : FALSE conditional expressions. --- dlls/dinput/tests/force_feedback.c | 2 +- dlls/dinput/tests/joystick8.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/dinput/tests/force_feedback.c b/dlls/dinput/tests/force_feedback.c index 696546ee49d..0086144fb73 100644 --- a/dlls/dinput/tests/force_feedback.c +++ b/dlls/dinput/tests/force_feedback.c @@ -2950,7 +2950,7 @@ static BOOL test_force_feedback_joystick( DWORD version ) .expect_count = version < 0x700 ? ARRAY_SIZE(expect_objects_5) : ARRAY_SIZE(expect_objects), .expect_objs = version < 0x700 ? expect_objects_5 : expect_objects, .todo_objs = version < 0x700 ? todo_objects_5 : NULL, - .todo_extra = version < 0x700 ? TRUE : FALSE, + .todo_extra = version < 0x700, }; struct check_effects_params check_effects_params = { diff --git a/dlls/dinput/tests/joystick8.c b/dlls/dinput/tests/joystick8.c index e654fd53dbb..3ab6f3c26d4 100644 --- a/dlls/dinput/tests/joystick8.c +++ b/dlls/dinput/tests/joystick8.c @@ -1781,7 +1781,7 @@ static void test_simple_joystick( DWORD version ) .expect_count = version < 0x700 ? ARRAY_SIZE(expect_objects_5) : ARRAY_SIZE(expect_objects), .expect_objs = version < 0x700 ? expect_objects_5 : expect_objects, .todo_objs = version < 0x700 ? todo_objects_5 : NULL, - .todo_extra = version < 0x700 ? TRUE : FALSE, + .todo_extra = version < 0x700, }; const DIEFFECTINFOW expect_effects[] = {};
1
0
0
0
Zebediah Figura : include: Include corecrt.h in vadefs.h.
by Alexandre Julliard
31 Mar '23
31 Mar '23
Module: wine Branch: master Commit: cf4b4ff642494251ab3d3c7e3c8fb77c5e4b78fd URL:
https://gitlab.winehq.org/wine/wine/-/commit/cf4b4ff642494251ab3d3c7e3c8fb7…
Author: Zebediah Figura <zfigura(a)codeweavers.com> Date: Thu Mar 30 16:21:22 2023 -0500 include: Include corecrt.h in vadefs.h. For the __has_attribute() fallback. Fixes: f4c3801495f4fe17a10e2f21339de3b511c78339 Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=54666
--- include/msvcrt/vadefs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/msvcrt/vadefs.h b/include/msvcrt/vadefs.h index 462c2d6815f..b5205f79c36 100644 --- a/include/msvcrt/vadefs.h +++ b/include/msvcrt/vadefs.h @@ -21,6 +21,8 @@ #ifndef _INC_VADEFS #define _INC_VADEFS +#include <corecrt.h> + #ifdef __cplusplus #define _ADDRESSOF(v) (&reinterpret_cast<const char &>(v)) #else
1
0
0
0
Alistair Leslie-Hughes : msado15: Handle DBTYPE_STR type when loading recordset data.
by Alexandre Julliard
30 Mar '23
30 Mar '23
Module: wine Branch: master Commit: 3a1f5224fb92913f1789970a755e9bc4e00ceac0 URL:
https://gitlab.winehq.org/wine/wine/-/commit/3a1f5224fb92913f1789970a755e9b…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Tue Mar 28 14:06:45 2023 +1100 msado15: Handle DBTYPE_STR type when loading recordset data. --- dlls/msado15/recordset.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/dlls/msado15/recordset.c b/dlls/msado15/recordset.c index 13807aa1c5a..0f4acda0156 100644 --- a/dlls/msado15/recordset.c +++ b/dlls/msado15/recordset.c @@ -970,6 +970,22 @@ static HRESULT map_index( struct fields *fields, VARIANT *index, ULONG *ret ) return MAKE_ADO_HRESULT(adErrItemNotFound); } +static inline WCHAR *heap_strdupAtoW(const char *str) +{ + LPWSTR ret = NULL; + + if(str) { + DWORD len; + + len = MultiByteToWideChar(CP_ACP, 0, str, -1, NULL, 0); + ret = malloc(len*sizeof(WCHAR)); + if(ret) + MultiByteToWideChar(CP_ACP, 0, str, -1, ret, len); + } + + return ret; +} + static HRESULT WINAPI fields_get_Item( Fields *iface, VARIANT index, Field **obj ) { struct fields *fields = impl_from_Fields( iface ); @@ -1948,6 +1964,15 @@ static HRESULT load_all_recordset_data(struct recordset *recordset, IUnknown *ro case DBTYPE_I4: V_I4(©) = *(LONG*)(data + bindings[datacol].obValue); break; + case DBTYPE_STR: + { + WCHAR *str = heap_strdupAtoW( (char*)(data + bindings[datacol].obValue) ); + + V_VT(©) = VT_BSTR; + V_BSTR(©) = SysAllocString(str); + free(str); + break; + } case DBTYPE_WSTR: { V_VT(©) = VT_BSTR;
1
0
0
0
Mohamad Al-Jaf : include: Add DirectXAlphaMode enum.
by Alexandre Julliard
30 Mar '23
30 Mar '23
Module: wine Branch: master Commit: 58e6c4d11cd79bb35977c03ac0b09c1c515eb6d1 URL:
https://gitlab.winehq.org/wine/wine/-/commit/58e6c4d11cd79bb35977c03ac0b09c…
Author: Mohamad Al-Jaf <mohamadaljaf(a)gmail.com> Date: Thu Mar 30 02:17:39 2023 -0400 include: Add DirectXAlphaMode enum. Needed for mingw Firefox build. --- include/windows.graphics.directx.idl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/windows.graphics.directx.idl b/include/windows.graphics.directx.idl index 251d3d20f2a..45961ec983e 100644 --- a/include/windows.graphics.directx.idl +++ b/include/windows.graphics.directx.idl @@ -27,6 +27,7 @@ import "windowscontracts.idl"; import "windows.foundation.idl"; namespace Windows.Graphics.DirectX { + typedef enum DirectXAlphaMode DirectXAlphaMode; typedef enum DirectXPixelFormat DirectXPixelFormat; declare { @@ -35,6 +36,17 @@ namespace Windows.Graphics.DirectX { interface Windows.Foundation.Collections.IVectorView<Windows.Graphics.DirectX.DirectXPixelFormat>; } + [ + contract(Windows.Foundation.UniversalApiContract, 2.0) + ] + enum DirectXAlphaMode + { + Unspecified = 0, + Premultiplied = 1, + Straight = 2, + Ignore = 3, + }; + [ contract(Windows.Foundation.UniversalApiContract, 1.0) ]
1
0
0
0
Michael Stefaniuc : dmsynth: Don't crash when Open() gets a DMUS_PORTPARAMS7.
by Alexandre Julliard
30 Mar '23
30 Mar '23
Module: wine Branch: master Commit: 48fdc8e08c4150c74e6c740df82518405125541d URL:
https://gitlab.winehq.org/wine/wine/-/commit/48fdc8e08c4150c74e6c740df82518…
Author: Michael Stefaniuc <mstefani(a)winehq.org> Date: Wed Mar 29 22:35:32 2023 +0200 dmsynth: Don't crash when Open() gets a DMUS_PORTPARAMS7. Wrong sizeof check: pointer instead of referenced structure. Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=53704
--- dlls/dmsynth/synth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/dmsynth/synth.c b/dlls/dmsynth/synth.c index 121d9aadf35..3631bcfe784 100644 --- a/dlls/dmsynth/synth.c +++ b/dlls/dmsynth/synth.c @@ -163,7 +163,7 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_Open(IDirectMusicSynth8 *iface, DMU modified = TRUE; params->fShare = FALSE; - if (params->dwSize >= sizeof(params)) { + if (params->dwSize >= sizeof(*params)) { if (params->dwValidParams & DMUS_PORTPARAMS_FEATURES && params->dwFeatures) { if (params->dwFeatures & ~(DMUS_PORT_FEATURE_AUDIOPATH|DMUS_PORT_FEATURE_STREAMING)) { modified = TRUE;
1
0
0
0
Alex Henrie : wldap32: Implement setting LDAP_OPT_SERVER_CERTIFICATE and add tests.
by Alexandre Julliard
30 Mar '23
30 Mar '23
Module: wine Branch: master Commit: 8fb04515cfc733eaee66201941fcce5120865ce5 URL:
https://gitlab.winehq.org/wine/wine/-/commit/8fb04515cfc733eaee66201941fcce…
Author: Alex Henrie <alexhenrie24(a)gmail.com> Date: Thu Mar 30 09:34:48 2023 -0600 wldap32: Implement setting LDAP_OPT_SERVER_CERTIFICATE and add tests. ctxt_handle is moved to the top of struct tlsw_session so that it can be easily retrieved via LDAP_OPT_X_TLS_SSL_CTX. Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=54727
--- dlls/wldap32/Makefile.in | 2 +- dlls/wldap32/add.c | 8 ++++++-- dlls/wldap32/bind.c | 22 ++++++++++++++++------ dlls/wldap32/compare.c | 8 ++++++-- dlls/wldap32/control.c | 2 ++ dlls/wldap32/delete.c | 8 ++++++-- dlls/wldap32/extended.c | 8 ++++++-- dlls/wldap32/init.c | 34 +++++++++++++++++++++++++++++++++- dlls/wldap32/modify.c | 8 ++++++-- dlls/wldap32/modrdn.c | 5 ++++- dlls/wldap32/option.c | 7 +++++-- dlls/wldap32/rename.c | 8 ++++++-- dlls/wldap32/search.c | 16 +++++++++------- dlls/wldap32/tests/Makefile.in | 2 +- dlls/wldap32/tests/parse.c | 39 +++++++++++++++++++++++++++++++++++++++ dlls/wldap32/winldap_private.h | 16 ++++++++++++++-- include/winldap.h | 2 ++ libs/ldap/libldap/tls_w.c | 2 +- 18 files changed, 163 insertions(+), 34 deletions(-)
1
0
0
0
Alex Henrie : wldap32: Return ~0u from ldap_modrdn* for any error.
by Alexandre Julliard
30 Mar '23
30 Mar '23
Module: wine Branch: master Commit: c8148d677898aea3b40e81eeb4d663de469c4ecc URL:
https://gitlab.winehq.org/wine/wine/-/commit/c8148d677898aea3b40e81eeb4d663…
Author: Alex Henrie <alexhenrie24(a)gmail.com> Date: Thu Mar 30 09:34:48 2023 -0600 wldap32: Return ~0u from ldap_modrdn* for any error. --- dlls/wldap32/modrdn.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/dlls/wldap32/modrdn.c b/dlls/wldap32/modrdn.c index 4acf16eb5e4..f9d2a356e87 100644 --- a/dlls/wldap32/modrdn.c +++ b/dlls/wldap32/modrdn.c @@ -33,7 +33,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(wldap32); */ ULONG CDECL ldap_modrdnA( LDAP *ld, char *dn, char *newdn ) { - ULONG ret = WLDAP32_LDAP_NO_MEMORY; + ULONG ret = ~0u; WCHAR *dnW = NULL, *newdnW = NULL; TRACE( "(%p, %s, %s)\n", ld, debugstr_a(dn), debugstr_a(newdn) ); @@ -65,7 +65,7 @@ ULONG CDECL ldap_modrdnW( LDAP *ld, WCHAR *dn, WCHAR *newdn ) */ ULONG CDECL ldap_modrdn2A( LDAP *ld, char *dn, char *newdn, int delete ) { - ULONG ret = WLDAP32_LDAP_NO_MEMORY; + ULONG ret = ~0u; WCHAR *dnW = NULL, *newdnW = NULL; TRACE( "(%p, %s, %p, 0x%02x)\n", ld, debugstr_a(dn), newdn, delete ); @@ -88,7 +88,7 @@ exit: */ ULONG CDECL ldap_modrdn2W( LDAP *ld, WCHAR *dn, WCHAR *newdn, int delete ) { - ULONG ret = WLDAP32_LDAP_NO_MEMORY; + ULONG ret = ~0u; char *dnU = NULL, *newdnU = NULL; int msg; @@ -96,15 +96,12 @@ ULONG CDECL ldap_modrdn2W( LDAP *ld, WCHAR *dn, WCHAR *newdn, int delete ) if (!ld || !newdn) return ~0u; - if (dn && !(dnU = strWtoU( dn ))) return WLDAP32_LDAP_NO_MEMORY; + if (dn && !(dnU = strWtoU( dn ))) return ~0u; if ((newdnU = strWtoU( newdn ))) { - ret = ldap_rename( CTX(ld), dnU, newdnU, NULL, delete, NULL, NULL, &msg ); - if (ret == WLDAP32_LDAP_SUCCESS) + if (ldap_rename( CTX(ld), dnU, newdnU, NULL, delete, NULL, NULL, &msg ) == LDAP_SUCCESS) ret = msg; - else - ret = ~0u; free( newdnU ); } free( dnU );
1
0
0
0
← Newer
1
2
3
4
5
6
7
...
91
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
Results per page:
10
25
50
100
200