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 2022
----- 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
726 discussions
Start a n
N
ew thread
Alexandre Julliard : makefiles: Force -Wformat for PE modules when using 'long' types.
by Alexandre Julliard
27 Jan '22
27 Jan '22
Module: wine Branch: master Commit: 0c0e8b576e6226cd722f328ad97f51c642f3ad53 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=0c0e8b576e6226cd722f328a…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Jan 27 14:20:22 2022 +0100 makefiles: Force -Wformat for PE modules when using 'long' types. Suggested by Eric Pouech. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- tools/makedep.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/makedep.c b/tools/makedep.c index 589ea7a7514..5dc0a97fdb3 100644 --- a/tools/makedep.c +++ b/tools/makedep.c @@ -3057,6 +3057,11 @@ static void output_source_default( struct makefile *make, struct incl_file *sour output_filenames( make->extlib ? extra_cross_cflags_extlib : extra_cross_cflags ); if (make->module && is_crt_module( make->module )) output_filename( "-fno-builtin" ); + /* force -Wformat when using 'long' types, until all modules have been converted + * and we can remove -Wno-format */ + if (!make->extlib && strarray_exists( &extra_cross_cflags, "-Wno-format" ) && + !strarray_exists( &defines, "-DWINE_NO_LONG_TYPES" )) + output_filename( "-Wformat" ); output_filenames( cpp_flags ); output_filename( "$(CROSSCFLAGS)" ); output( "\n" );
1
0
0
0
Alexandre Julliard : include: Add support for defining Win32 types as 'long' where possible.
by Alexandre Julliard
27 Jan '22
27 Jan '22
Module: wine Branch: master Commit: f0cd33c69e879177559caaf248e86a4d69f9a09e URL:
https://source.winehq.org/git/wine.git/?a=commit;h=f0cd33c69e879177559caaf2…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Jan 21 18:28:43 2022 +0100 include: Add support for defining Win32 types as 'long' where possible. Add -DWINE_NO_LONG_TYPES to modules that still have compilation warnings with long types. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/acledit/Makefile.in | 1 + dlls/aclui/Makefile.in | 1 + dlls/activeds/Makefile.in | 1 + dlls/activeds/tests/Makefile.in | 1 + dlls/actxprxy/Makefile.in | 1 + dlls/adsldp/Makefile.in | 1 + dlls/adsldp/tests/Makefile.in | 1 + dlls/advapi32/Makefile.in | 2 +- dlls/advapi32/tests/Makefile.in | 1 + dlls/advpack/Makefile.in | 1 + dlls/advpack/tests/Makefile.in | 1 + dlls/amsi/Makefile.in | 1 + dlls/amstream/Makefile.in | 1 + dlls/amstream/tests/Makefile.in | 1 + dlls/apphelp/Makefile.in | 1 + dlls/apphelp/tests/Makefile.in | 1 + dlls/appwiz.cpl/Makefile.in | 1 + dlls/atl/Makefile.in | 2 +- dlls/atl/tests/Makefile.in | 2 +- dlls/atl100/Makefile.in | 2 +- dlls/atl100/tests/Makefile.in | 2 +- dlls/atl110/Makefile.in | 2 +- dlls/atl80/Makefile.in | 2 +- dlls/atl90/Makefile.in | 2 +- dlls/atlthunk/tests/Makefile.in | 1 + dlls/authz/Makefile.in | 1 + dlls/avicap32/Makefile.in | 1 + dlls/avifil32/Makefile.in | 1 + dlls/avifil32/tests/Makefile.in | 1 + dlls/bcrypt/Makefile.in | 1 + dlls/bcrypt/tests/Makefile.in | 1 + dlls/browseui/Makefile.in | 1 + dlls/browseui/tests/Makefile.in | 1 + dlls/cabinet/Makefile.in | 1 + dlls/cabinet/tests/Makefile.in | 1 + dlls/capi2032/Makefile.in | 1 + dlls/cards/Makefile.in | 1 + dlls/clusapi/Makefile.in | 1 + dlls/combase/Makefile.in | 1 + dlls/combase/tests/Makefile.in | 1 + dlls/comcat/tests/Makefile.in | 1 + dlls/comctl32/Makefile.in | 2 +- dlls/comctl32/tests/Makefile.in | 1 + dlls/comdlg32/Makefile.in | 1 + dlls/comdlg32/tests/Makefile.in | 1 + dlls/commdlg.dll16/Makefile.in | 1 + dlls/compobj.dll16/Makefile.in | 1 + dlls/comsvcs/Makefile.in | 1 + dlls/comsvcs/tests/Makefile.in | 1 + dlls/concrt140/Makefile.in | 1 + dlls/concrt140/tests/Makefile.in | 1 + dlls/credui/Makefile.in | 1 + dlls/credui/tests/Makefile.in | 1 + dlls/crtdll/Makefile.in | 2 +- dlls/crypt32/Makefile.in | 2 +- dlls/crypt32/tests/Makefile.in | 1 + dlls/cryptdlg/Makefile.in | 1 + dlls/cryptnet/Makefile.in | 1 + dlls/cryptnet/tests/Makefile.in | 1 + dlls/cryptui/Makefile.in | 1 + dlls/cryptui/tests/Makefile.in | 1 + dlls/ctapi32/Makefile.in | 1 + dlls/d2d1/Makefile.in | 1 + dlls/d2d1/tests/Makefile.in | 1 + dlls/d3d10/Makefile.in | 2 +- dlls/d3d10/tests/Makefile.in | 2 +- dlls/d3d10_1/Makefile.in | 1 + dlls/d3d10_1/tests/Makefile.in | 1 + dlls/d3d10core/Makefile.in | 1 + dlls/d3d10core/tests/Makefile.in | 1 + dlls/d3d11/Makefile.in | 1 + dlls/d3d11/tests/Makefile.in | 1 + dlls/d3d12/Makefile.in | 1 + dlls/d3d12/tests/Makefile.in | 1 + dlls/d3d8/Makefile.in | 1 + dlls/d3d8/tests/Makefile.in | 1 + dlls/d3d9/Makefile.in | 1 + dlls/d3d9/tests/Makefile.in | 1 + dlls/d3dcompiler_33/Makefile.in | 2 +- dlls/d3dcompiler_34/Makefile.in | 2 +- dlls/d3dcompiler_35/Makefile.in | 2 +- dlls/d3dcompiler_36/Makefile.in | 2 +- dlls/d3dcompiler_37/Makefile.in | 2 +- dlls/d3dcompiler_38/Makefile.in | 2 +- dlls/d3dcompiler_39/Makefile.in | 2 +- dlls/d3dcompiler_40/Makefile.in | 2 +- dlls/d3dcompiler_41/Makefile.in | 2 +- dlls/d3dcompiler_42/Makefile.in | 2 +- dlls/d3dcompiler_43/Makefile.in | 2 +- dlls/d3dcompiler_43/tests/Makefile.in | 2 +- dlls/d3dcompiler_46/Makefile.in | 2 +- dlls/d3dcompiler_46/tests/Makefile.in | 2 +- dlls/d3dcompiler_47/Makefile.in | 2 +- dlls/d3dcompiler_47/tests/Makefile.in | 2 +- dlls/d3drm/Makefile.in | 1 + dlls/d3drm/tests/Makefile.in | 1 + dlls/d3dx10_34/tests/Makefile.in | 1 + dlls/d3dx10_35/tests/Makefile.in | 1 + dlls/d3dx10_36/tests/Makefile.in | 1 + dlls/d3dx10_37/tests/Makefile.in | 1 + dlls/d3dx10_38/tests/Makefile.in | 1 + dlls/d3dx10_39/tests/Makefile.in | 1 + dlls/d3dx10_40/tests/Makefile.in | 1 + dlls/d3dx10_41/tests/Makefile.in | 1 + dlls/d3dx10_42/tests/Makefile.in | 1 + dlls/d3dx10_43/Makefile.in | 1 + dlls/d3dx10_43/tests/Makefile.in | 1 + dlls/d3dx11_42/tests/Makefile.in | 1 + dlls/d3dx11_43/tests/Makefile.in | 1 + dlls/d3dx9_24/Makefile.in | 2 +- dlls/d3dx9_25/Makefile.in | 2 +- dlls/d3dx9_26/Makefile.in | 2 +- dlls/d3dx9_27/Makefile.in | 2 +- dlls/d3dx9_28/Makefile.in | 2 +- dlls/d3dx9_29/Makefile.in | 2 +- dlls/d3dx9_30/Makefile.in | 2 +- dlls/d3dx9_31/Makefile.in | 2 +- dlls/d3dx9_32/Makefile.in | 2 +- dlls/d3dx9_33/Makefile.in | 2 +- dlls/d3dx9_34/Makefile.in | 2 +- dlls/d3dx9_35/Makefile.in | 2 +- dlls/d3dx9_36/Makefile.in | 2 +- dlls/d3dx9_36/tests/Makefile.in | 1 + dlls/d3dx9_37/Makefile.in | 2 +- dlls/d3dx9_38/Makefile.in | 2 +- dlls/d3dx9_39/Makefile.in | 2 +- dlls/d3dx9_40/Makefile.in | 2 +- dlls/d3dx9_41/Makefile.in | 2 +- dlls/d3dx9_42/Makefile.in | 2 +- dlls/d3dx9_43/Makefile.in | 2 +- dlls/d3dxof/Makefile.in | 1 + dlls/d3dxof/tests/Makefile.in | 1 + dlls/davclnt/Makefile.in | 1 + dlls/dbgeng/Makefile.in | 1 + dlls/dbgeng/tests/Makefile.in | 1 + dlls/dbghelp/Makefile.in | 2 +- dlls/dbghelp/tests/Makefile.in | 1 + dlls/ddraw/Makefile.in | 1 + dlls/ddraw/tests/Makefile.in | 1 + dlls/ddrawex/Makefile.in | 1 + dlls/ddrawex/tests/Makefile.in | 1 + dlls/devenum/Makefile.in | 1 + dlls/devenum/tests/Makefile.in | 1 + dlls/dhcpcsvc/Makefile.in | 1 + dlls/dhcpcsvc/tests/Makefile.in | 1 + dlls/dhtmled.ocx/Makefile.in | 1 + dlls/difxapi/Makefile.in | 1 + dlls/dinput/Makefile.in | 2 +- dlls/dinput/tests/Makefile.in | 1 + dlls/dinput8/Makefile.in | 2 +- dlls/directmanipulation/Makefile.in | 1 + dlls/directmanipulation/tests/Makefile.in | 1 + dlls/dispex/Makefile.in | 1 + dlls/dispex/tests/Makefile.in | 1 + dlls/dmband/Makefile.in | 1 + dlls/dmband/tests/Makefile.in | 1 + dlls/dmcompos/Makefile.in | 1 + dlls/dmcompos/tests/Makefile.in | 1 + dlls/dmime/Makefile.in | 1 + dlls/dmime/tests/Makefile.in | 1 + dlls/dmloader/Makefile.in | 1 + dlls/dmloader/tests/Makefile.in | 1 + dlls/dmscript/Makefile.in | 1 + dlls/dmscript/tests/Makefile.in | 1 + dlls/dmstyle/Makefile.in | 1 + dlls/dmstyle/tests/Makefile.in | 1 + dlls/dmsynth/Makefile.in | 1 + dlls/dmsynth/tests/Makefile.in | 1 + dlls/dmusic/Makefile.in | 1 + dlls/dmusic/tests/Makefile.in | 1 + dlls/dnsapi/Makefile.in | 1 + dlls/dnsapi/tests/Makefile.in | 1 + dlls/dplayx/Makefile.in | 1 + dlls/dplayx/tests/Makefile.in | 1 + dlls/dpnet/Makefile.in | 1 + dlls/dpnet/tests/Makefile.in | 1 + dlls/dpvoice/Makefile.in | 1 + dlls/dpvoice/tests/Makefile.in | 1 + dlls/dpwsockx/Makefile.in | 1 + dlls/dsdmo/Makefile.in | 1 + dlls/dsdmo/tests/Makefile.in | 1 + dlls/dsound/Makefile.in | 1 + dlls/dsound/tests/Makefile.in | 1 + dlls/dsquery/Makefile.in | 1 + dlls/dssenh/Makefile.in | 1 + dlls/dssenh/tests/Makefile.in | 1 + dlls/dsuiext/Makefile.in | 1 + dlls/dswave/Makefile.in | 1 + dlls/dswave/tests/Makefile.in | 1 + dlls/dwmapi/Makefile.in | 1 + dlls/dwmapi/tests/Makefile.in | 1 + dlls/dwrite/Makefile.in | 1 + dlls/dwrite/tests/Makefile.in | 1 + dlls/dxdiagn/Makefile.in | 1 + dlls/dxdiagn/tests/Makefile.in | 1 + dlls/dxgi/Makefile.in | 1 + dlls/dxgi/tests/Makefile.in | 1 + dlls/dxva2/Makefile.in | 1 + dlls/dxva2/tests/Makefile.in | 1 + dlls/evr/Makefile.in | 1 + dlls/evr/tests/Makefile.in | 1 + dlls/explorerframe/Makefile.in | 1 + dlls/explorerframe/tests/Makefile.in | 1 + dlls/faultrep/Makefile.in | 1 + dlls/faultrep/tests/Makefile.in | 1 + dlls/fltlib/Makefile.in | 1 + dlls/fntcache/Makefile.in | 1 + dlls/fontsub/Makefile.in | 1 + dlls/fusion/Makefile.in | 1 + dlls/fusion/tests/Makefile.in | 1 + dlls/gameux/Makefile.in | 1 + dlls/gameux/tests/Makefile.in | 1 + dlls/gdi.exe16/Makefile.in | 1 + dlls/gdi32/Makefile.in | 2 +- dlls/gdi32/tests/Makefile.in | 1 + dlls/gdiplus/Makefile.in | 1 + dlls/gdiplus/tests/Makefile.in | 1 + dlls/gphoto2.ds/Makefile.in | 1 + dlls/hal/Makefile.in | 1 + dlls/hhctrl.ocx/Makefile.in | 1 + dlls/hid/Makefile.in | 1 + dlls/hid/tests/Makefile.in | 1 + dlls/hidclass.sys/Makefile.in | 1 + dlls/hidparse.sys/Makefile.in | 1 + dlls/hlink/Makefile.in | 1 + dlls/hlink/tests/Makefile.in | 1 + dlls/hnetcfg/Makefile.in | 1 + dlls/hnetcfg/tests/Makefile.in | 1 + dlls/http.sys/Makefile.in | 1 + dlls/httpapi/Makefile.in | 1 + dlls/httpapi/tests/Makefile.in | 1 + dlls/iccvid/Makefile.in | 1 + dlls/ieframe/Makefile.in | 1 + dlls/ieframe/tests/Makefile.in | 1 + dlls/ifsmgr.vxd/Makefile.in | 1 + dlls/imaadp32.acm/Makefile.in | 1 + dlls/imagehlp/Makefile.in | 2 +- dlls/imagehlp/tests/Makefile.in | 1 + dlls/imm32/Makefile.in | 1 + dlls/imm32/tests/Makefile.in | 1 + dlls/inetcomm/Makefile.in | 1 + dlls/inetcomm/tests/Makefile.in | 1 + dlls/inetcpl.cpl/Makefile.in | 1 + dlls/inetmib1/Makefile.in | 1 + dlls/inetmib1/tests/Makefile.in | 1 + dlls/infosoft/Makefile.in | 1 + dlls/infosoft/tests/Makefile.in | 1 + dlls/inseng/Makefile.in | 1 + dlls/iphlpapi/Makefile.in | 1 + dlls/iphlpapi/tests/Makefile.in | 1 + dlls/itss/Makefile.in | 1 + dlls/itss/tests/Makefile.in | 1 + dlls/joy.cpl/Makefile.in | 1 + dlls/jscript/Makefile.in | 1 + dlls/jscript/tests/Makefile.in | 1 + dlls/jsproxy/Makefile.in | 1 + dlls/jsproxy/tests/Makefile.in | 1 + dlls/kerberos/Makefile.in | 1 + dlls/kernel32/Makefile.in | 2 +- dlls/kernel32/tests/Makefile.in | 1 + dlls/kernelbase/Makefile.in | 2 +- dlls/kernelbase/tests/Makefile.in | 1 + dlls/krnl386.exe16/Makefile.in | 1 + dlls/ktmw32/Makefile.in | 1 + dlls/l3codeca.acm/Makefile.in | 1 + dlls/localspl/Makefile.in | 1 + dlls/localspl/tests/Makefile.in | 1 + dlls/localui/Makefile.in | 1 + dlls/localui/tests/Makefile.in | 1 + dlls/lz32/tests/Makefile.in | 1 + dlls/mapi32/Makefile.in | 1 + dlls/mapi32/tests/Makefile.in | 1 + dlls/mciavi32/Makefile.in | 1 + dlls/mcicda/Makefile.in | 1 + dlls/mciqtz32/Makefile.in | 1 + dlls/mciseq/Makefile.in | 1 + dlls/mciwave/Makefile.in | 1 + dlls/mf/Makefile.in | 1 + dlls/mf/tests/Makefile.in | 1 + dlls/mfmediaengine/Makefile.in | 1 + dlls/mfmediaengine/tests/Makefile.in | 1 + dlls/mfplat/Makefile.in | 1 + dlls/mfplat/tests/Makefile.in | 1 + dlls/mfplay/Makefile.in | 1 + dlls/mfplay/tests/Makefile.in | 1 + dlls/mfreadwrite/Makefile.in | 1 + dlls/mfreadwrite/tests/Makefile.in | 1 + dlls/midimap/Makefile.in | 1 + dlls/mlang/Makefile.in | 1 + dlls/mlang/tests/Makefile.in | 1 + dlls/mmcndmgr/tests/Makefile.in | 1 + dlls/mmdevapi/Makefile.in | 1 + dlls/mmdevapi/tests/Makefile.in | 1 + dlls/mmdevldr.vxd/Makefile.in | 1 + dlls/mmsystem.dll16/Makefile.in | 1 + dlls/monodebg.vxd/Makefile.in | 1 + dlls/mountmgr.sys/Makefile.in | 1 + dlls/mp3dmod/Makefile.in | 1 + dlls/mp3dmod/tests/Makefile.in | 1 + dlls/mpr/Makefile.in | 1 + dlls/mpr/tests/Makefile.in | 1 + dlls/mprapi/Makefile.in | 1 + dlls/msacm.dll16/Makefile.in | 1 + dlls/msacm32.drv/Makefile.in | 1 + dlls/msacm32/Makefile.in | 1 + dlls/msacm32/tests/Makefile.in | 1 + dlls/msado15/Makefile.in | 1 + dlls/msado15/tests/Makefile.in | 1 + dlls/msadp32.acm/Makefile.in | 1 + dlls/msasn1/Makefile.in | 1 + dlls/msasn1/tests/Makefile.in | 1 + dlls/mscms/Makefile.in | 1 + dlls/mscms/tests/Makefile.in | 1 + dlls/mscoree/Makefile.in | 1 + dlls/mscoree/tests/Makefile.in | 1 + dlls/msctf/Makefile.in | 1 + dlls/msctf/tests/Makefile.in | 1 + dlls/msctfmonitor/Makefile.in | 1 + dlls/msdaps/Makefile.in | 1 + dlls/msdasql/Makefile.in | 1 + dlls/msdasql/tests/Makefile.in | 1 + dlls/msdmo/Makefile.in | 1 + dlls/msdmo/tests/Makefile.in | 1 + dlls/msftedit/tests/Makefile.in | 1 + dlls/msg711.acm/Makefile.in | 1 + dlls/msgsm32.acm/Makefile.in | 1 + dlls/mshtml/Makefile.in | 1 + dlls/mshtml/tests/Makefile.in | 1 + dlls/msi/Makefile.in | 1 + dlls/msi/tests/Makefile.in | 1 + dlls/msident/Makefile.in | 1 + dlls/msimtf/Makefile.in | 1 + dlls/msisip/Makefile.in | 1 + dlls/msnet32/Makefile.in | 1 + dlls/mspatcha/Makefile.in | 1 + dlls/mspatcha/tests/Makefile.in | 1 + dlls/msrle32/Makefile.in | 1 + dlls/msrle32/tests/Makefile.in | 1 + dlls/msscript.ocx/Makefile.in | 1 + dlls/msscript.ocx/tests/Makefile.in | 1 + dlls/mssign32/Makefile.in | 1 + dlls/mstask/Makefile.in | 1 + dlls/mstask/tests/Makefile.in | 1 + dlls/msv1_0/Makefile.in | 1 + dlls/msvcirt/Makefile.in | 2 +- dlls/msvcirt/tests/Makefile.in | 1 + dlls/msvcp100/Makefile.in | 2 +- dlls/msvcp110/Makefile.in | 2 +- dlls/msvcp120/Makefile.in | 2 +- dlls/msvcp120/tests/Makefile.in | 1 + dlls/msvcp140/Makefile.in | 2 +- dlls/msvcp140/tests/Makefile.in | 1 + dlls/msvcp140_atomic_wait/tests/Makefile.in | 1 + dlls/msvcp60/Makefile.in | 2 +- dlls/msvcp70/Makefile.in | 2 +- dlls/msvcp71/Makefile.in | 2 +- dlls/msvcp80/Makefile.in | 2 +- dlls/msvcp90/Makefile.in | 2 +- dlls/msvcp90/tests/Makefile.in | 1 + dlls/msvcr100/Makefile.in | 2 +- dlls/msvcr100/tests/Makefile.in | 1 + dlls/msvcr110/Makefile.in | 2 +- dlls/msvcr120/Makefile.in | 2 +- dlls/msvcr120/tests/Makefile.in | 1 + dlls/msvcr70/Makefile.in | 2 +- dlls/msvcr71/Makefile.in | 2 +- dlls/msvcr80/Makefile.in | 2 +- dlls/msvcr90/Makefile.in | 2 +- dlls/msvcr90/tests/Makefile.in | 1 + dlls/msvcrt/Makefile.in | 2 +- dlls/msvcrt/tests/Makefile.in | 1 + dlls/msvcrtd/Makefile.in | 2 +- dlls/msvcrtd/tests/Makefile.in | 1 + dlls/msvfw32/Makefile.in | 1 + dlls/msvfw32/tests/Makefile.in | 1 + dlls/msvidc32/Makefile.in | 1 + dlls/msvideo.dll16/Makefile.in | 1 + dlls/msxml3/Makefile.in | 1 + dlls/msxml3/tests/Makefile.in | 1 + dlls/ncrypt/Makefile.in | 1 + dlls/nddeapi/Makefile.in | 1 + dlls/ndis.sys/Makefile.in | 1 + dlls/ndis.sys/tests/Makefile.in | 1 + dlls/netapi32/Makefile.in | 2 +- dlls/netapi32/tests/Makefile.in | 1 + dlls/netcfgx/Makefile.in | 1 + dlls/netcfgx/tests/Makefile.in | 1 + dlls/netio.sys/Makefile.in | 1 + dlls/netprofm/Makefile.in | 1 + dlls/netprofm/tests/Makefile.in | 1 + dlls/newdev/Makefile.in | 1 + dlls/ninput/tests/Makefile.in | 1 + dlls/nsi/Makefile.in | 1 + dlls/nsi/tests/Makefile.in | 1 + dlls/nsiproxy.sys/Makefile.in | 1 + dlls/ntdll/Makefile.in | 2 +- dlls/ntdll/tests/Makefile.in | 1 + dlls/ntdsapi/Makefile.in | 1 + dlls/ntdsapi/tests/Makefile.in | 1 + dlls/ntoskrnl.exe/Makefile.in | 1 + dlls/ntoskrnl.exe/tests/Makefile.in | 1 + dlls/ntprint/Makefile.in | 1 + dlls/ntprint/tests/Makefile.in | 1 + dlls/odbc32/Makefile.in | 1 + dlls/odbccp32/Makefile.in | 1 + dlls/odbccp32/tests/Makefile.in | 1 + dlls/ole2.dll16/Makefile.in | 1 + dlls/ole2disp.dll16/Makefile.in | 1 + dlls/ole32/Makefile.in | 2 +- dlls/ole32/tests/Makefile.in | 1 + dlls/oleacc/Makefile.in | 1 + dlls/oleacc/tests/Makefile.in | 1 + dlls/oleaut32/Makefile.in | 2 +- dlls/oleaut32/tests/Makefile.in | 1 + dlls/olecli.dll16/Makefile.in | 1 + dlls/olecli32/Makefile.in | 1 + dlls/oledb32/Makefile.in | 1 + dlls/oledb32/tests/Makefile.in | 1 + dlls/oledlg/Makefile.in | 1 + dlls/oledlg/tests/Makefile.in | 1 + dlls/olesvr.dll16/Makefile.in | 1 + dlls/olesvr32/Makefile.in | 1 + dlls/opcservices/Makefile.in | 1 + dlls/opcservices/tests/Makefile.in | 1 + dlls/opengl32/Makefile.in | 2 +- dlls/opengl32/tests/Makefile.in | 1 + dlls/packager/Makefile.in | 1 + dlls/packager/tests/Makefile.in | 1 + dlls/pdh/Makefile.in | 1 + dlls/pdh/tests/Makefile.in | 1 + dlls/powrprof/Makefile.in | 1 + dlls/printui/Makefile.in | 1 + dlls/prntvpt/Makefile.in | 1 + dlls/prntvpt/tests/Makefile.in | 1 + dlls/propsys/Makefile.in | 1 + dlls/propsys/tests/Makefile.in | 1 + dlls/psapi/tests/Makefile.in | 1 + dlls/pstorec/Makefile.in | 1 + dlls/pstorec/tests/Makefile.in | 1 + dlls/qasf/Makefile.in | 1 + dlls/qasf/tests/Makefile.in | 1 + dlls/qcap/Makefile.in | 1 + dlls/qcap/tests/Makefile.in | 1 + dlls/qdvd/Makefile.in | 1 + dlls/qdvd/tests/Makefile.in | 1 + dlls/qedit/Makefile.in | 1 + dlls/qedit/tests/Makefile.in | 1 + dlls/qmgr/Makefile.in | 1 + dlls/qmgr/tests/Makefile.in | 1 + dlls/quartz/Makefile.in | 1 + dlls/quartz/tests/Makefile.in | 1 + dlls/query/Makefile.in | 1 + dlls/qwave/Makefile.in | 1 + dlls/qwave/tests/Makefile.in | 1 + dlls/rasapi32/Makefile.in | 1 + dlls/rasapi32/tests/Makefile.in | 1 + dlls/riched20/Makefile.in | 1 + dlls/riched20/tests/Makefile.in | 1 + dlls/riched32/tests/Makefile.in | 1 + dlls/rpcrt4/Makefile.in | 2 +- dlls/rpcrt4/tests/Makefile.in | 2 +- dlls/rsaenh/Makefile.in | 1 + dlls/rsaenh/tests/Makefile.in | 1 + dlls/rstrtmgr/Makefile.in | 1 + dlls/rtutils/Makefile.in | 1 + dlls/rtworkq/Makefile.in | 1 + dlls/rtworkq/tests/Makefile.in | 1 + dlls/sane.ds/Makefile.in | 1 + dlls/sapi/Makefile.in | 1 + dlls/sapi/tests/Makefile.in | 1 + dlls/schannel/Makefile.in | 1 + dlls/schannel/tests/Makefile.in | 1 + dlls/schedsvc/Makefile.in | 1 + dlls/schedsvc/tests/Makefile.in | 1 + dlls/scrobj/Makefile.in | 1 + dlls/scrobj/tests/Makefile.in | 1 + dlls/scrrun/Makefile.in | 1 + dlls/scrrun/tests/Makefile.in | 1 + dlls/sechost/Makefile.in | 1 + dlls/secur32/Makefile.in | 1 + dlls/secur32/tests/Makefile.in | 1 + dlls/serialui/Makefile.in | 1 + dlls/serialui/tests/Makefile.in | 1 + dlls/setupapi/Makefile.in | 2 +- dlls/setupapi/tests/Makefile.in | 1 + dlls/setupx.dll16/Makefile.in | 1 + dlls/sfc_os/Makefile.in | 1 + dlls/shcore/Makefile.in | 1 + dlls/shcore/tests/Makefile.in | 1 + dlls/shdocvw/Makefile.in | 2 +- dlls/shdocvw/tests/Makefile.in | 1 + dlls/shell.dll16/Makefile.in | 1 + dlls/shell32/Makefile.in | 2 +- dlls/shell32/tests/Makefile.in | 1 + dlls/shlwapi/Makefile.in | 2 +- dlls/shlwapi/tests/Makefile.in | 1 + dlls/slc/tests/Makefile.in | 1 + dlls/snmpapi/Makefile.in | 1 + dlls/sound.drv16/Makefile.in | 1 + dlls/spoolss/Makefile.in | 1 + dlls/spoolss/tests/Makefile.in | 1 + dlls/sppc/Makefile.in | 1 + dlls/sti/Makefile.in | 1 + dlls/sti/tests/Makefile.in | 1 + dlls/storage.dll16/Makefile.in | 1 + dlls/stress.dll16/Makefile.in | 1 + dlls/sxs/Makefile.in | 1 + dlls/sxs/tests/Makefile.in | 1 + dlls/t2embed/Makefile.in | 1 + dlls/t2embed/tests/Makefile.in | 1 + dlls/tapi32/Makefile.in | 1 + dlls/tapi32/tests/Makefile.in | 1 + dlls/taskschd/Makefile.in | 1 + dlls/taskschd/tests/Makefile.in | 1 + dlls/toolhelp.dll16/Makefile.in | 1 + dlls/traffic/Makefile.in | 1 + dlls/twain_32/Makefile.in | 1 + dlls/twain_32/tests/Makefile.in | 1 + dlls/typelib.dll16/Makefile.in | 1 + dlls/ucrtbase/Makefile.in | 2 +- dlls/ucrtbase/tests/Makefile.in | 2 +- dlls/uianimation/Makefile.in | 1 + dlls/uianimation/tests/Makefile.in | 1 + dlls/uiautomationcore/Makefile.in | 1 + dlls/uiautomationcore/tests/Makefile.in | 1 + dlls/uiribbon/Makefile.in | 1 + dlls/url/Makefile.in | 1 + dlls/urlmon/Makefile.in | 2 +- dlls/urlmon/tests/Makefile.in | 1 + dlls/usbd.sys/Makefile.in | 1 + dlls/user.exe16/Makefile.in | 1 + dlls/user32/Makefile.in | 2 +- dlls/user32/tests/Makefile.in | 1 + dlls/userenv/Makefile.in | 1 + dlls/userenv/tests/Makefile.in | 1 + dlls/usp10/tests/Makefile.in | 1 + dlls/uxtheme/Makefile.in | 1 + dlls/uxtheme/tests/Makefile.in | 1 + dlls/vbscript/Makefile.in | 1 + dlls/vbscript/tests/Makefile.in | 1 + dlls/vcomp/Makefile.in | 1 + dlls/vcomp/tests/Makefile.in | 1 + dlls/vcomp100/Makefile.in | 1 + dlls/vcomp110/Makefile.in | 1 + dlls/vcomp110/tests/Makefile.in | 1 + dlls/vcomp120/Makefile.in | 1 + dlls/vcomp140/Makefile.in | 1 + dlls/vcruntime140/Makefile.in | 1 + dlls/vcruntime140_1/Makefile.in | 1 + dlls/vdhcp.vxd/Makefile.in | 1 + dlls/vdmdbg/Makefile.in | 1 + dlls/ver.dll16/Makefile.in | 1 + dlls/version/Makefile.in | 1 + dlls/version/tests/Makefile.in | 1 + dlls/virtdisk/Makefile.in | 1 + dlls/virtdisk/tests/Makefile.in | 1 + dlls/vmm.vxd/Makefile.in | 1 + dlls/vnbt.vxd/Makefile.in | 1 + dlls/vnetbios.vxd/Makefile.in | 1 + dlls/vssapi/Makefile.in | 1 + dlls/vtdapi.vxd/Makefile.in | 1 + dlls/vulkan-1/tests/Makefile.in | 1 + dlls/vwin32.vxd/Makefile.in | 1 + dlls/w32sys.dll16/Makefile.in | 1 + dlls/wbemdisp/Makefile.in | 1 + dlls/wbemdisp/tests/Makefile.in | 1 + dlls/wbemprox/Makefile.in | 1 + dlls/wbemprox/tests/Makefile.in | 1 + dlls/webservices/Makefile.in | 1 + dlls/webservices/tests/Makefile.in | 1 + dlls/wer/Makefile.in | 1 + dlls/wer/tests/Makefile.in | 1 + dlls/wevtapi/Makefile.in | 1 + dlls/wevtapi/tests/Makefile.in | 1 + dlls/wevtsvc/Makefile.in | 1 + dlls/wiaservc/Makefile.in | 1 + dlls/wiaservc/tests/Makefile.in | 1 + dlls/wimgapi/Makefile.in | 1 + dlls/win32u/Makefile.in | 1 + dlls/win32u/tests/Makefile.in | 1 + dlls/win87em.dll16/Makefile.in | 1 + dlls/windows.devices.enumeration/Makefile.in | 1 + dlls/windows.gaming.input/Makefile.in | 1 + dlls/windows.gaming.input/tests/Makefile.in | 1 + dlls/windows.globalization/Makefile.in | 1 + dlls/windows.globalization/tests/Makefile.in | 1 + dlls/windows.media.devices/Makefile.in | 1 + dlls/windows.media.devices/tests/Makefile.in | 1 + dlls/windows.media.speech/Makefile.in | 1 + dlls/windows.media.speech/tests/Makefile.in | 1 + dlls/windowscodecs/Makefile.in | 1 + dlls/windowscodecs/tests/Makefile.in | 1 + dlls/windowscodecsext/tests/Makefile.in | 1 + dlls/winealsa.drv/Makefile.in | 1 + dlls/wineandroid.drv/Makefile.in | 1 + dlls/winebus.sys/Makefile.in | 1 + dlls/winecoreaudio.drv/Makefile.in | 1 + dlls/winecrt0/Makefile.in | 1 + dlls/wined3d/Makefile.in | 1 + dlls/winegstreamer/Makefile.in | 1 + dlls/winehid.sys/Makefile.in | 1 + dlls/winemac.drv/Makefile.in | 1 + dlls/winemapi/Makefile.in | 1 + dlls/wineoss.drv/Makefile.in | 1 + dlls/wineps.drv/Makefile.in | 1 + dlls/winepulse.drv/Makefile.in | 1 + dlls/wineusb.sys/Makefile.in | 1 + dlls/winevulkan/Makefile.in | 1 + dlls/winex11.drv/Makefile.in | 1 + dlls/winexinput.sys/Makefile.in | 1 + dlls/wing.dll16/Makefile.in | 1 + dlls/winhttp/Makefile.in | 1 + dlls/winhttp/tests/Makefile.in | 1 + dlls/wininet/Makefile.in | 1 + dlls/wininet/tests/Makefile.in | 1 + dlls/winmm/Makefile.in | 2 +- dlls/winmm/tests/Makefile.in | 1 + dlls/winscard/Makefile.in | 1 + dlls/winspool.drv/Makefile.in | 2 +- dlls/winspool.drv/tests/Makefile.in | 1 + dlls/winsta/Makefile.in | 1 + dlls/wintab.dll16/Makefile.in | 1 + dlls/wintab32/Makefile.in | 1 + dlls/wintab32/tests/Makefile.in | 1 + dlls/wintrust/Makefile.in | 1 + dlls/wintrust/tests/Makefile.in | 1 + dlls/wlanapi/Makefile.in | 1 + dlls/wlanapi/tests/Makefile.in | 1 + dlls/wldap32/Makefile.in | 1 + dlls/wldap32/tests/Makefile.in | 1 + dlls/wmiutils/Makefile.in | 1 + dlls/wmiutils/tests/Makefile.in | 1 + dlls/wmp/Makefile.in | 1 + dlls/wmp/tests/Makefile.in | 1 + dlls/wmphoto/Makefile.in | 1 + dlls/wmvcore/Makefile.in | 1 + dlls/wmvcore/tests/Makefile.in | 1 + dlls/wnaspi32/Makefile.in | 1 + dlls/wow64/Makefile.in | 1 + dlls/wpc/tests/Makefile.in | 1 + dlls/ws2_32/Makefile.in | 1 + dlls/ws2_32/tests/Makefile.in | 1 + dlls/wsdapi/Makefile.in | 1 + dlls/wsdapi/tests/Makefile.in | 1 + dlls/wshom.ocx/Makefile.in | 1 + dlls/wshom.ocx/tests/Makefile.in | 1 + dlls/wsock32/Makefile.in | 1 + dlls/wtsapi32/Makefile.in | 1 + dlls/wtsapi32/tests/Makefile.in | 1 + dlls/xactengine2_0/Makefile.in | 2 +- dlls/xactengine2_4/Makefile.in | 2 +- dlls/xactengine2_7/Makefile.in | 2 +- dlls/xactengine2_9/Makefile.in | 2 +- dlls/xactengine3_0/Makefile.in | 2 +- dlls/xactengine3_1/Makefile.in | 2 +- dlls/xactengine3_2/Makefile.in | 2 +- dlls/xactengine3_3/Makefile.in | 2 +- dlls/xactengine3_4/Makefile.in | 2 +- dlls/xactengine3_5/Makefile.in | 2 +- dlls/xactengine3_6/Makefile.in | 2 +- dlls/xactengine3_7/Makefile.in | 2 +- dlls/xactengine3_7/tests/Makefile.in | 1 + dlls/xapofx1_1/Makefile.in | 2 +- dlls/xapofx1_2/Makefile.in | 2 +- dlls/xapofx1_3/Makefile.in | 2 +- dlls/xapofx1_4/Makefile.in | 2 +- dlls/xapofx1_5/Makefile.in | 2 +- dlls/xaudio2_0/Makefile.in | 2 +- dlls/xaudio2_1/Makefile.in | 2 +- dlls/xaudio2_2/Makefile.in | 2 +- dlls/xaudio2_3/Makefile.in | 2 +- dlls/xaudio2_4/Makefile.in | 2 +- dlls/xaudio2_5/Makefile.in | 2 +- dlls/xaudio2_6/Makefile.in | 2 +- dlls/xaudio2_7/Makefile.in | 2 +- dlls/xaudio2_7/tests/Makefile.in | 1 + dlls/xaudio2_8/Makefile.in | 2 +- dlls/xaudio2_9/Makefile.in | 2 +- dlls/xinput1_1/Makefile.in | 1 + dlls/xinput1_2/Makefile.in | 1 + dlls/xinput1_3/Makefile.in | 1 + dlls/xinput1_3/tests/Makefile.in | 1 + dlls/xinput1_4/Makefile.in | 1 + dlls/xinput9_1_0/Makefile.in | 1 + dlls/xmllite/Makefile.in | 1 + dlls/xmllite/tests/Makefile.in | 1 + dlls/xolehlp/Makefile.in | 1 + include/basetsd.h | 10 ++++++---- include/ntdef.h | 2 +- include/windef.h | 4 ++-- include/winnt.h | 2 +- libs/strmbase/Makefile.in | 1 + programs/attrib/Makefile.in | 1 + programs/cabarc/Makefile.in | 1 +
programs/chcp.com/Makefile.in
| 1 + programs/cmd/Makefile.in | 1 + programs/cmd/tests/Makefile.in | 1 + programs/conhost/Makefile.in | 1 + programs/conhost/tests/Makefile.in | 1 + programs/cscript/Makefile.in | 2 +- programs/dxdiag/Makefile.in | 1 + programs/eject/Makefile.in | 1 + programs/explorer/Makefile.in | 1 + programs/find/tests/Makefile.in | 1 + programs/fsutil/Makefile.in | 1 + programs/fsutil/tests/Makefile.in | 1 + programs/msiexec/Makefile.in | 1 + programs/net/Makefile.in | 1 + programs/netstat/Makefile.in | 1 + programs/ping/Makefile.in | 1 + programs/plugplay/Makefile.in | 1 + programs/presentationfontcache/Makefile.in | 1 + programs/reg/Makefile.in | 1 + programs/reg/tests/Makefile.in | 1 + programs/regedit/Makefile.in | 1 + programs/regedit/tests/Makefile.in | 1 + programs/regsvr32/Makefile.in | 1 + programs/rpcss/Makefile.in | 1 + programs/sc/Makefile.in | 1 + programs/schtasks/Makefile.in | 1 + programs/schtasks/tests/Makefile.in | 1 + programs/services/Makefile.in | 1 + programs/services/tests/Makefile.in | 1 + programs/spoolsv/Makefile.in | 1 + programs/start/Makefile.in | 1 + programs/svchost/Makefile.in | 1 + programs/termsv/Makefile.in | 1 + programs/uninstaller/Makefile.in | 1 + programs/whoami/Makefile.in | 1 + programs/wineboot/Makefile.in | 1 + programs/winebrowser/Makefile.in | 1 + programs/winecfg/Makefile.in | 1 + programs/wineconsole/Makefile.in | 1 + programs/winedbg/Makefile.in | 1 + programs/winedevice/Makefile.in | 1 + programs/winemenubuilder/Makefile.in | 1 + programs/winemsibuilder/Makefile.in | 1 + programs/winetest/Makefile.in | 1 + programs/winhlp32/Makefile.in | 1 + programs/winmgmt/Makefile.in | 1 + programs/winoldap.mod16/Makefile.in | 1 + programs/wordpad/Makefile.in | 1 + programs/wscript/Makefile.in | 1 + programs/wscript/tests/Makefile.in | 1 + programs/wuauserv/Makefile.in | 1 + programs/wusa/Makefile.in | 1 + programs/xcopy/Makefile.in | 1 + programs/xcopy/tests/Makefile.in | 1 + tools/winedump/Makefile.in | 1 + 749 files changed, 755 insertions(+), 128 deletions(-) Diff:
https://source.winehq.org/git/wine.git/?a=commitdiff;h=f0cd33c69e879177559c…
1
0
0
0
Rémi Bernon : plugplay: Use ncacn_np instead of ncalrpc transport.
by Alexandre Julliard
27 Jan '22
27 Jan '22
Module: wine Branch: master Commit: baebd3c14f86c1438a5a822b7fc44ab438233d17 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=baebd3c14f86c1438a5a822b…
Author: Rémi Bernon <rbernon(a)codeweavers.com> Date: Wed Jan 26 10:50:20 2022 +0100 plugplay: Use ncacn_np instead of ncalrpc transport. The ncacn_np should be used when the endpoint is a pipe, ncalrpc should only be used with arbitrary named ports, which we translate into \\pipe\lrpc\xxx pipe names. Signed-off-by: Rémi Bernon <rbernon(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/ntoskrnl.exe/pnp.c | 2 +- dlls/sechost/service.c | 2 +- include/wine/plugplay.idl | 1 + programs/plugplay/main.c | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dlls/ntoskrnl.exe/pnp.c b/dlls/ntoskrnl.exe/pnp.c index 6d53d79267e..8d3481b2a72 100644 --- a/dlls/ntoskrnl.exe/pnp.c +++ b/dlls/ntoskrnl.exe/pnp.c @@ -1084,7 +1084,7 @@ void pnp_manager_start(void) { static const WCHAR driver_nameW[] = {'\\','D','r','i','v','e','r','\\','P','n','p','M','a','n','a','g','e','r',0}; WCHAR endpoint[] = L"\\pipe\\wine_plugplay"; - WCHAR protseq[] = L"ncalrpc"; + WCHAR protseq[] = L"ncacn_np"; UNICODE_STRING driver_nameU; RPC_WSTR binding_str; NTSTATUS status; diff --git a/dlls/sechost/service.c b/dlls/sechost/service.c index e6f4eb75db0..4dfb40b4bac 100644 --- a/dlls/sechost/service.c +++ b/dlls/sechost/service.c @@ -1988,7 +1988,7 @@ struct device_notify_registration static DWORD WINAPI device_notify_proc( void *arg ) { WCHAR endpoint[] = L"\\pipe\\wine_plugplay"; - WCHAR protseq[] = L"ncalrpc"; + WCHAR protseq[] = L"ncacn_np"; RPC_WSTR binding_str; DWORD err = ERROR_SUCCESS; struct device_notify_registration *registration; diff --git a/include/wine/plugplay.idl b/include/wine/plugplay.idl index 8123b733ad1..a3e7b04bf30 100644 --- a/include/wine/plugplay.idl +++ b/include/wine/plugplay.idl @@ -20,6 +20,7 @@ import "wtypes.idl"; [ uuid(57c680ac-7bce-4f39-97fd-ffea566754d5), + endpoint("ncacn_np:[\\pipe\\wine_plugplay]"), implicit_handle(handle_t plugplay_binding_handle) ] interface plugplay diff --git a/programs/plugplay/main.c b/programs/plugplay/main.c index 1156cb9f036..366be9c2b46 100644 --- a/programs/plugplay/main.c +++ b/programs/plugplay/main.c @@ -200,7 +200,7 @@ static DWORD WINAPI service_handler( DWORD ctrl, DWORD event_type, LPVOID event_ static void WINAPI ServiceMain( DWORD argc, LPWSTR *argv ) { unsigned char endpoint[] = "\\pipe\\wine_plugplay"; - unsigned char protseq[] = "ncalrpc"; + unsigned char protseq[] = "ncacn_np"; SERVICE_STATUS status; RPC_STATUS err;
1
0
0
0
Rémi Bernon : wine.inf: Start EventLogService on prefix initialization.
by Alexandre Julliard
27 Jan '22
27 Jan '22
Module: wine Branch: master Commit: 0c88a524401867ed0c0b72b644462805c76bf965 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=0c88a524401867ed0c0b72b6…
Author: Rémi Bernon <rbernon(a)codeweavers.com> Date: Wed Jan 26 10:50:19 2022 +0100 wine.inf: Start EventLogService on prefix initialization. The service has StartType=2, and should start automatically. Signed-off-by: Rémi Bernon <rbernon(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- loader/wine.inf.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/loader/wine.inf.in b/loader/wine.inf.in index 3af8dabca64..2fd4fbd22ea 100644 --- a/loader/wine.inf.in +++ b/loader/wine.inf.in @@ -171,7 +171,7 @@ WineFakeDlls=FakeDllsWin32 [DefaultInstall.Services] AddService=BITS,0,BITSService -AddService=EventLog,0,EventLogService +AddService=EventLog,0x800,EventLogService AddService=HTTP,0,HTTPService AddService=MSIServer,0,MSIService AddService=RpcSs,0,RpcSsService @@ -190,7 +190,7 @@ AddService=nsiproxy,0x800,NsiProxyService [DefaultInstall.NT.Services] AddService=BITS,0,BITSService -AddService=EventLog,0,EventLogService +AddService=EventLog,0x800,EventLogService AddService=HTTP,0,HTTPService AddService=MSIServer,0,MSIService AddService=RpcSs,0,RpcSsService @@ -209,7 +209,7 @@ AddService=nsiproxy,0x800,NsiProxyService [DefaultInstall.ntamd64.Services] AddService=BITS,0,BITSService -AddService=EventLog,0,EventLogService +AddService=EventLog,0x800,EventLogService AddService=HTTP,0,HTTPService AddService=MSIServer,0,MSIService AddService=RpcSs,0,RpcSsService @@ -228,7 +228,7 @@ AddService=nsiproxy,0x800,NsiProxyService [DefaultInstall.ntarm64.Services] AddService=BITS,0,BITSService -AddService=EventLog,0,EventLogService +AddService=EventLog,0x800,EventLogService AddService=HTTP,0,HTTPService AddService=MSIServer,0,MSIService AddService=RpcSs,0,RpcSsService
1
0
0
0
Rémi Bernon : dinput/tests: Add some RegisterDeviceNotificationA and hotplug tests.
by Alexandre Julliard
27 Jan '22
27 Jan '22
Module: wine Branch: master Commit: 22f9f5caead14be79751879ec117d9a2760eb4d2 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=22f9f5caead14be79751879e…
Author: Rémi Bernon <rbernon(a)codeweavers.com> Date: Wed Jan 26 10:50:18 2022 +0100 dinput/tests: Add some RegisterDeviceNotificationA and hotplug tests. Signed-off-by: Rémi Bernon <rbernon(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/dinput/tests/dinput_test.h | 1 + dlls/dinput/tests/hid.c | 86 ++++++++++++ dlls/dinput/tests/hotplug.c | 283 +++++++++++++++++++++++++++++++++++++++- 3 files changed, 369 insertions(+), 1 deletion(-) Diff:
https://source.winehq.org/git/wine.git/?a=commitdiff;h=22f9f5caead14be79751…
1
0
0
0
Rémi Bernon : wine.inf: Start PlugPlay service on prefix initialization.
by Alexandre Julliard
27 Jan '22
27 Jan '22
Module: wine Branch: master Commit: b0ca06efd19c4d759261e990ad0921969e0acc97 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=b0ca06efd19c4d759261e990…
Author: Rémi Bernon <rbernon(a)codeweavers.com> Date: Wed Jan 26 10:50:17 2022 +0100 wine.inf: Start PlugPlay service on prefix initialization. Device drivers may be installed and started on prefix initialization but if PlugPlay is missing they won't be able to send plugplay notifications until the prefix is restarted. The service has StartType=2, and should start automatically. Signed-off-by: Rémi Bernon <rbernon(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- loader/wine.inf.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/loader/wine.inf.in b/loader/wine.inf.in index c0251934dfc..3af8dabca64 100644 --- a/loader/wine.inf.in +++ b/loader/wine.inf.in @@ -178,7 +178,7 @@ AddService=RpcSs,0,RpcSsService AddService=Spooler,0,SpoolerService AddService=StiSvc,0,StiService AddService=TermService,0,TerminalServices -AddService=PlugPlay,0,PlugPlayService +AddService=PlugPlay,0x800,PlugPlayService AddService=FontCache3.0.0.0,0,WPFFontCacheService AddService=LanmanServer,0,LanmanServerService AddService=FontCache,0,FontCacheService @@ -197,7 +197,7 @@ AddService=RpcSs,0,RpcSsService AddService=Spooler,0,SpoolerService AddService=StiSvc,0,StiService AddService=TermService,0,TerminalServices -AddService=PlugPlay,0,PlugPlayService +AddService=PlugPlay,0x800,PlugPlayService AddService=FontCache3.0.0.0,0,WPFFontCacheService AddService=LanmanServer,0,LanmanServerService AddService=FontCache,0,FontCacheService @@ -216,7 +216,7 @@ AddService=RpcSs,0,RpcSsService AddService=Spooler,0,SpoolerService AddService=StiSvc,0,StiService AddService=TermService,0,TerminalServices -AddService=PlugPlay,0,PlugPlayService +AddService=PlugPlay,0x800,PlugPlayService AddService=FontCache3.0.0.0,0,WPFFontCacheService AddService=LanmanServer,0,LanmanServerService AddService=FontCache,0,FontCacheService @@ -235,7 +235,7 @@ AddService=RpcSs,0,RpcSsService AddService=Spooler,0,SpoolerService AddService=StiSvc,0,StiService AddService=TermService,0,TerminalServices -AddService=PlugPlay,0,PlugPlayService +AddService=PlugPlay,0x800,PlugPlayService AddService=FontCache3.0.0.0,0,WPFFontCacheService AddService=LanmanServer,0,LanmanServerService AddService=FontCache,0,FontCacheService
1
0
0
0
Rémi Bernon : setupapi/tests: Add some service installation flags tests.
by Alexandre Julliard
27 Jan '22
27 Jan '22
Module: wine Branch: master Commit: 919ee014b93ba633ead2cfe44bcf475dbda55ecd URL:
https://source.winehq.org/git/wine.git/?a=commit;h=919ee014b93ba633ead2cfe4…
Author: Rémi Bernon <rbernon(a)codeweavers.com> Date: Thu Jan 27 13:30:05 2022 +0100 setupapi/tests: Add some service installation flags tests. Signed-off-by: Rémi Bernon <rbernon(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/setupapi/tests/install.c | 188 +++++++++++++++++++++++++++++++++++------- 1 file changed, 157 insertions(+), 31 deletions(-) diff --git a/dlls/setupapi/tests/install.c b/dlls/setupapi/tests/install.c index 758a0761037..44b7d09d1e5 100644 --- a/dlls/setupapi/tests/install.c +++ b/dlls/setupapi/tests/install.c @@ -609,13 +609,26 @@ static void test_install_svc_from(void) /* TODO: Test the Flags */ } -static void test_driver_install(void) +static void test_service_install(const char *executable, const char *argument) { - HANDLE handle; + struct + { + const char *add_service_flags; + const char *service_type; + const char *start_type; + DWORD expect_start_error; + } tests[] = + { + {.add_service_flags = "", .service_type = "1", .start_type = "4", .expect_start_error = ERROR_SERVICE_DISABLED}, + {.add_service_flags = "", .service_type = "0x10", .start_type = "2", .expect_start_error = 0}, + {.add_service_flags = "0x800", .service_type = "0x10", .start_type = "2", .expect_start_error = ERROR_SERVICE_ALREADY_RUNNING}, + }; + SC_HANDLE scm_handle, svc_handle; + SERVICE_STATUS status; BOOL ret; char path[MAX_PATH + 9], windir[MAX_PATH], driver[MAX_PATH]; - DWORD attrs; + DWORD i, attrs; /* Minimal stuff needed */ static const char *inf = "[Version]\n" @@ -625,14 +638,15 @@ static void test_driver_install(void) "[DefaultInstall]\n" "CopyFiles=Winetest.DriverFiles\n" "[DefaultInstall.Services]\n" - "AddService=Winetest,,Winetest.Service\n" + "AddService=Winetest,%s,Winetest.Service\n" "[Winetest.Service]\n" - "ServiceBinary=%12%\\winetest.sys\n" - "ServiceType=1\n" - "StartType=4\n" + "ServiceBinary=%%12%%\\winetest.sys %s service\n" + "ServiceType=%s\n" + "StartType=%s\n" "ErrorControl=1\n" "[Winetest.DriverFiles]\n" "winetest.sys"; + char buffer[1024]; /* Bail out if we don't have enough rights */ SetLastError(0xdeadbeef); @@ -649,36 +663,70 @@ static void test_driver_install(void) lstrcpyA(driver, windir); lstrcatA(driver, "\\system32\\drivers\\winetest.sys"); - /* Create a dummy driver file */ - handle = CreateFileA("winetest.sys", GENERIC_WRITE, 0, NULL, - CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); - CloseHandle(handle); + ret = CopyFileA(executable, "winetest.sys", TRUE); + ok(ret, "CopyFileA failed, error %u\n", GetLastError()); - create_inf_file(inffile, inf); - sprintf(path, "%s\\%s", CURR_DIR, inffile); - run_cmdline("DefaultInstall", 128, path); + for (i = 0; i < ARRAY_SIZE(tests); ++i) + { + winetest_push_context("%u", i); - /* Driver should have been installed */ - attrs = GetFileAttributesA(driver); - ok(attrs != INVALID_FILE_ATTRIBUTES, "Expected driver to exist\n"); + sprintf(buffer, inf, tests[i].add_service_flags, argument, tests[i].service_type, tests[i].start_type); + create_inf_file(inffile, buffer); + sprintf(path, "%s\\%s", CURR_DIR, inffile); + run_cmdline("DefaultInstall", 128, path); - scm_handle = OpenSCManagerA(NULL, NULL, GENERIC_ALL); + /* Driver should have been installed */ + attrs = GetFileAttributesA(driver); + ok(attrs != INVALID_FILE_ATTRIBUTES, "Expected driver to exist\n"); - /* Open the service to see if it's really there */ - svc_handle = OpenServiceA(scm_handle, "Winetest", DELETE); - ok(svc_handle != NULL, "Service was not created\n"); + scm_handle = OpenSCManagerA(NULL, NULL, GENERIC_ALL); - SetLastError(0xdeadbeef); - ret = DeleteService(svc_handle); - ok(ret, "Service could not be deleted : %d\n", GetLastError()); + /* Open the service to see if it's really there */ + svc_handle = OpenServiceA(scm_handle, "Winetest", SERVICE_START|SERVICE_STOP|SERVICE_QUERY_STATUS|DELETE); + ok(svc_handle != NULL, "Service was not created\n"); - CloseServiceHandle(svc_handle); - CloseServiceHandle(scm_handle); + ret = StartServiceA(svc_handle, 0, NULL); + if (!tests[i].expect_start_error) + ok(ret, "StartServiceA failed, error %u\n", GetLastError()); + else + { + ok(!ret, "StartServiceA succeeded\n"); + ok(GetLastError() == tests[i].expect_start_error, "got error %u\n", GetLastError()); + } + + ret = QueryServiceStatus(svc_handle, &status); + ok(ret, "QueryServiceStatus failed: %u\n", GetLastError()); + while (status.dwCurrentState == SERVICE_START_PENDING) + { + Sleep(100); + ret = QueryServiceStatus(svc_handle, &status); + ok(ret, "QueryServiceStatus failed: %u\n", GetLastError()); + } + + ret = ControlService(svc_handle, SERVICE_CONTROL_STOP, &status); + while (status.dwCurrentState == SERVICE_STOP_PENDING) + { + Sleep(100); + ret = QueryServiceStatus(svc_handle, &status); + ok(ret, "QueryServiceStatus failed: %u\n", GetLastError()); + } + ok(status.dwCurrentState == SERVICE_STOPPED, "expected SERVICE_STOPPED, got %d\n", status.dwCurrentState); + + SetLastError(0xdeadbeef); + ret = DeleteService(svc_handle); + ok(ret, "Service could not be deleted : %d\n", GetLastError()); + + CloseServiceHandle(svc_handle); + CloseServiceHandle(scm_handle); + + /* File cleanup */ + DeleteFileA(inffile); + DeleteFileA(driver); + + winetest_pop_context(); + } - /* File cleanup */ - DeleteFileA(inffile); DeleteFileA("winetest.sys"); - DeleteFileA(driver); } static void test_profile_items(void) @@ -2132,11 +2180,89 @@ static void test_register_dlls(void) ok(ret, "Failed to delete test DLL, error %u.\n", GetLastError()); } +static WCHAR service_name[] = L"Wine Test Service"; +static SERVICE_STATUS_HANDLE service_handle; +static HANDLE stop_event; + +static DWORD WINAPI service_handler( DWORD ctrl, DWORD event_type, LPVOID event_data, LPVOID context ) +{ + SERVICE_STATUS status; + + status.dwServiceType = SERVICE_WIN32; + status.dwControlsAccepted = SERVICE_ACCEPT_STOP; + status.dwWin32ExitCode = 0; + status.dwServiceSpecificExitCode = 0; + status.dwCheckPoint = 0; + status.dwWaitHint = 0; + + switch(ctrl) + { + case SERVICE_CONTROL_STOP: + case SERVICE_CONTROL_SHUTDOWN: + trace( "shutting down\n" ); + status.dwCurrentState = SERVICE_STOP_PENDING; + status.dwControlsAccepted = 0; + SetServiceStatus( service_handle, &status ); + SetEvent( stop_event ); + return NO_ERROR; + default: + trace( "got service ctrl %x\n", ctrl ); + status.dwCurrentState = SERVICE_RUNNING; + SetServiceStatus( service_handle, &status ); + return NO_ERROR; + } +} + +static void WINAPI ServiceMain( DWORD argc, LPWSTR *argv ) +{ + SERVICE_STATUS status; + + trace( "starting service\n" ); + + stop_event = CreateEventW( NULL, TRUE, FALSE, NULL ); + + service_handle = RegisterServiceCtrlHandlerExW( L"Wine Test Service", service_handler, NULL ); + if (!service_handle) + return; + + status.dwServiceType = SERVICE_WIN32; + status.dwCurrentState = SERVICE_RUNNING; + status.dwControlsAccepted = SERVICE_ACCEPT_STOP | SERVICE_ACCEPT_SHUTDOWN; + status.dwWin32ExitCode = 0; + status.dwServiceSpecificExitCode = 0; + status.dwCheckPoint = 0; + status.dwWaitHint = 10000; + SetServiceStatus( service_handle, &status ); + + WaitForSingleObject( stop_event, INFINITE ); + + status.dwCurrentState = SERVICE_STOPPED; + status.dwControlsAccepted = 0; + SetServiceStatus( service_handle, &status ); + trace( "service stopped\n" ); +} + START_TEST(install) { - char temp_path[MAX_PATH], prev_path[MAX_PATH]; + char temp_path[MAX_PATH], prev_path[MAX_PATH], path[MAX_PATH]; + char **argv; DWORD len; + int argc; + + argc = winetest_get_mainargs(&argv); + if (argc > 2 && !strcmp( argv[2], "service" )) + { + static const SERVICE_TABLE_ENTRYW service_table[] = + { + { service_name, ServiceMain }, + { NULL, NULL } + }; + + StartServiceCtrlDispatcherW( service_table ); + return; + } + GetFullPathNameA(argv[0], ARRAY_SIZE(path), path, NULL); GetCurrentDirectoryA(MAX_PATH, prev_path); GetTempPathA(MAX_PATH, temp_path); SetCurrentDirectoryA(temp_path); @@ -2154,7 +2280,7 @@ START_TEST(install) test_registry(); test_install_from(); test_install_svc_from(); - test_driver_install(); + test_service_install(path, argv[1]); test_dirid(); test_install_files_queue(); test_need_media();
1
0
0
0
Rémi Bernon : setupapi/tests: Add possible test_need_media results for Win10.
by Alexandre Julliard
27 Jan '22
27 Jan '22
Module: wine Branch: master Commit: 68b83a8a093d59d9ee085574c4c1ef64e6b28807 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=68b83a8a093d59d9ee085574…
Author: Rémi Bernon <rbernon(a)codeweavers.com> Date: Thu Jan 27 13:30:04 2022 +0100 setupapi/tests: Add possible test_need_media results for Win10. Signed-off-by: Rémi Bernon <rbernon(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/setupapi/tests/install.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/dlls/setupapi/tests/install.c b/dlls/setupapi/tests/install.c index c085b724b59..758a0761037 100644 --- a/dlls/setupapi/tests/install.c +++ b/dlls/setupapi/tests/install.c @@ -1120,7 +1120,7 @@ static void test_install_files_queue(void) ok(ret, "Failed to delete INF file, error %u.\n", GetLastError()); } -static unsigned int got_need_media, got_copy_error; +static unsigned int got_need_media, got_copy_error, got_start_copy; static unsigned int testmode; static UINT WINAPI need_media_cb(void *context, UINT message, UINT_PTR param1, UINT_PTR param2) @@ -1332,6 +1332,7 @@ static UINT WINAPI need_media_newpath_cb(void *context, UINT message, UINT_PTR p else return FILEOP_SKIP; } + else if (message == SPFILENOTIFY_STARTCOPY) got_start_copy++; return SetupDefaultQueueCallbackA(context, message, param1, param2); } @@ -1901,7 +1902,7 @@ static void test_need_media(void) ok(delete_file("dst/three.txt"), "Destination file should exist.\n"); testmode = 6; - got_need_media = got_copy_error = 0; + got_need_media = got_copy_error = got_start_copy = 0; queue = SetupOpenFileQueue(); ok(queue != INVALID_HANDLE_VALUE, "Failed to open queue, error %#x.\n", GetLastError()); copy_params.QueueHandle = queue; @@ -1915,9 +1916,10 @@ static void test_need_media(void) run_queue(queue, need_media_newpath_cb); ok(got_need_media == 1, "Got %u callbacks.\n", got_need_media); ok(!got_copy_error, "Got %u copy errors.\n", got_copy_error); - ok(delete_file("dst/one.txt"), "Destination file should exist.\n"); + if (got_start_copy) ok(delete_file("dst/one.txt"), "Destination file should exist.\n"); + else ok(!file_exists("dst/one.txt"), "Destination file should not exist.\n"); - got_need_media = got_copy_error = 0; + got_need_media = got_copy_error = got_start_copy = 0; queue = SetupOpenFileQueue(); ok(queue != INVALID_HANDLE_VALUE, "Failed to open queue, error %#x.\n", GetLastError()); copy_params.LayoutInf = hinf; @@ -1928,7 +1930,8 @@ static void test_need_media(void) run_queue(queue, need_media_newpath_cb); ok(got_need_media == 1, "Got %u callbacks.\n", got_need_media); ok(!got_copy_error, "Got %u copy errors.\n", got_copy_error); - ok(delete_file("dst/one.txt"), "Destination file should exist.\n"); + if (got_start_copy) ok(delete_file("dst/one.txt"), "Destination file should exist.\n"); + else ok(!file_exists("dst/one.txt"), "Destination file should not exist.\n"); } else SetupCloseFileQueue(queue); @@ -1963,7 +1966,7 @@ static void test_close_queue(void) SetupTermDefaultQueueCallback(context); } -static unsigned int got_start_copy, start_copy_ret; +static unsigned int start_copy_ret; static UINT WINAPI start_copy_cb(void *context, UINT message, UINT_PTR param1, UINT_PTR param2) {
1
0
0
0
Andrew Eikum : winmm: Don't process audio data during waveOutWrite while playing.
by Alexandre Julliard
27 Jan '22
27 Jan '22
Module: wine Branch: master Commit: 362e39a4a7154807c9707331cb5c707ff6c718d9 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=362e39a4a7154807c9707331…
Author: Andrew Eikum <aeikum(a)codeweavers.com> Date: Thu Jan 27 10:23:21 2022 -0600 winmm: Don't process audio data during waveOutWrite while playing. Signed-off-by: Andrew Eikum <aeikum(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/winmm/tests/wave.c | 1 - dlls/winmm/waveform.c | 16 +++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/dlls/winmm/tests/wave.c b/dlls/winmm/tests/wave.c index 56501367190..5e46a2f46e5 100644 --- a/dlls/winmm/tests/wave.c +++ b/dlls/winmm/tests/wave.c @@ -1640,7 +1640,6 @@ static void CALLBACK test_reentrant_callback_func(HWAVEOUT hwo, UINT uMsg, case WOM_DONE: /* verify that WOM_DONE is not sent during the following waveOutWrite */ - todo_wine_if(wom_done_count == 1) ok(g_tid == 0, "callback called reentrantly\n"); g_tid = GetCurrentThreadId(); diff --git a/dlls/winmm/waveform.c b/dlls/winmm/waveform.c index 1159b48b483..ecffa700662 100644 --- a/dlls/winmm/waveform.c +++ b/dlls/winmm/waveform.c @@ -191,6 +191,7 @@ static LRESULT WOD_Close(HWAVEOUT hwave); static LRESULT WID_Open(WINMM_OpenInfo *info); static LRESULT WID_Close(HWAVEIN hwave); static MMRESULT WINMM_BeginPlaying(WINMM_Device *device); +static void WOD_PushData(WINMM_Device *device); void WINMM_DeleteWaveform(void) { @@ -775,8 +776,11 @@ static HRESULT reroute_mapper_device(WINMM_Device *device, BOOL is_out) HeapFree(GetProcessHeap(), 0, info.format); - if(!stopped) + if(!stopped){ + if(is_out) + WOD_PushData(device); WINMM_BeginPlaying(device); + } LeaveCriticalSection(&device->lock); @@ -1948,10 +1952,6 @@ static MMRESULT WINMM_BeginPlaying(WINMM_Device *device) TRACE("(%p)\n", device->handle); - if(device->render) - /* prebuffer data before starting */ - WOD_PushData(device); - if(device->stopped){ device->stopped = FALSE; @@ -2893,6 +2893,9 @@ UINT WINAPI waveOutWrite(HWAVEOUT hWaveOut, WAVEHDR *header, UINT uSize) header->dwFlags &= ~WHDR_DONE; header->dwFlags |= WHDR_INQUEUE; + if(device->stopped) + WOD_PushData(device); + mr = WINMM_BeginPlaying(device); LeaveCriticalSection(&device->lock); @@ -2970,6 +2973,9 @@ UINT WINAPI waveOutRestart(HWAVEOUT hWaveOut) device->stopped = TRUE; + if(device->render) + WOD_PushData(device); + mr = WINMM_BeginPlaying(device); LeaveCriticalSection(&device->lock);
1
0
0
0
Liam Murphy : winmm/tests: Demonstrate that WOM_DONE is not invoked reentrantly.
by Alexandre Julliard
27 Jan '22
27 Jan '22
Module: wine Branch: master Commit: bf65b96b01fc95d23d6e9a6a7b8b18f1752e83e4 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=bf65b96b01fc95d23d6e9a6a…
Author: Liam Murphy <liampm32(a)gmail.com> Date: Thu Jan 27 10:22:59 2022 -0600 winmm/tests: Demonstrate that WOM_DONE is not invoked reentrantly. Signed-off-by: Andrew Eikum <aeikum(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/winmm/tests/wave.c | 103 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) diff --git a/dlls/winmm/tests/wave.c b/dlls/winmm/tests/wave.c index 2f0c8443363..56501367190 100644 --- a/dlls/winmm/tests/wave.c +++ b/dlls/winmm/tests/wave.c @@ -1626,6 +1626,108 @@ static void test_fragmentsize(void) CloseHandle(hevent); } +static void CALLBACK test_reentrant_callback_func(HWAVEOUT hwo, UINT uMsg, + DWORD_PTR dwInstance, + DWORD_PTR dwParam1, DWORD_PTR dwParam2) +{ + static int wom_done_count = 0; + + switch(uMsg){ + case WOM_OPEN: + case WOM_CLOSE: + ok(GetCurrentThreadId() == g_tid, "Got different thread ID\n"); + break; + + case WOM_DONE: + /* verify that WOM_DONE is not sent during the following waveOutWrite */ + todo_wine_if(wom_done_count == 1) + ok(g_tid == 0, "callback called reentrantly\n"); + + g_tid = GetCurrentThreadId(); + + if(wom_done_count++ == 0){ + Sleep(125); /* ensure 2nd header is done playing before waveOutWrite */ + waveOutWrite(hwo, (WAVEHDR *)dwParam1, sizeof(WAVEHDR)); + } + + break; + } + + g_tid = 0; + SetEvent((HANDLE)dwInstance); +} + +static void test_reentrant_callback(void) +{ + MMRESULT rc; + WAVEHDR hdr[2]; + HWAVEOUT wout; + WAVEFORMATEX fmt; + DWORD wait; + HANDLE hevent; + + if(waveOutGetNumDevs() == 0) + return; + + fmt.wFormatTag = WAVE_FORMAT_PCM; + fmt.nChannels = 2; + fmt.nSamplesPerSec = 44100; + fmt.wBitsPerSample = 16; + fmt.nBlockAlign = fmt.nChannels * fmt.wBitsPerSample / 8; + fmt.nAvgBytesPerSec = fmt.nBlockAlign * fmt.nSamplesPerSec; + fmt.cbSize = sizeof(WAVEFORMATEX); + + hevent = CreateEventW(NULL, FALSE, FALSE, NULL); + g_tid = GetCurrentThreadId(); + + rc = waveOutOpen(&wout, WAVE_MAPPER, &fmt, (DWORD_PTR)test_reentrant_callback_func, + (DWORD_PTR)hevent, CALLBACK_FUNCTION); + ok(rc == MMSYSERR_NOERROR || rc == WAVERR_BADFORMAT || + rc == MMSYSERR_INVALFLAG || rc == MMSYSERR_INVALPARAM, + "waveOutOpen(%s) failed: %s\n", dev_name(WAVE_MAPPER), wave_out_error(rc)); + if(rc != MMSYSERR_NOERROR){ + CloseHandle(hevent); + return; + } + + wait = WaitForSingleObject(hevent, 1000); + ok(wait == WAIT_OBJECT_0, "wave open callback missed\n"); + + memset(hdr, 0, sizeof(hdr)); + hdr[0].dwBufferLength = (fmt.nSamplesPerSec * fmt.nBlockAlign / 10); + hdr[1].dwBufferLength = hdr[0].dwBufferLength; + hdr[1].lpData = hdr[0].lpData = + HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, hdr[0].dwBufferLength); + + rc = waveOutPrepareHeader(wout, &hdr[0], sizeof(hdr[0])); + ok(rc == MMSYSERR_NOERROR, "waveOutPrepareHeader failed: %s\n", wave_out_error(rc)); + + rc = waveOutPrepareHeader(wout, &hdr[1], sizeof(hdr[1])); + ok(rc == MMSYSERR_NOERROR, "waveOutPrepareHeader failed: %s\n", wave_out_error(rc)); + + rc = waveOutWrite(wout, &hdr[0], sizeof(hdr[0])); + ok(rc == MMSYSERR_NOERROR, "waveOutWrite failed: %s\n", wave_out_error(rc)); + + rc = waveOutWrite(wout, &hdr[1], sizeof(hdr[1])); + ok(rc == MMSYSERR_NOERROR, "waveOutWrite failed: %s\n", wave_out_error(rc)); + + wait = WaitForSingleObject(hevent, 1000); + ok(wait == WAIT_OBJECT_0, "header 1 callback missed\n"); + + wait = WaitForSingleObject(hevent, 1000); + ok(wait == WAIT_OBJECT_0, "header 2 callback missed\n"); + + wait = WaitForSingleObject(hevent, 1000); + ok(wait == WAIT_OBJECT_0, "header 3 callback missed\n"); + + g_tid = GetCurrentThreadId(); + rc = waveOutClose(wout); + ok(rc == MMSYSERR_NOERROR, "waveOutClose failed: %s\n", wave_out_error(rc)); + + HeapFree(GetProcessHeap(), 0, hdr[0].lpData); + CloseHandle(hevent); +} + static void create_wav_file(char *temp_file) { WAVEFORMATEX format; @@ -1727,5 +1829,6 @@ START_TEST(wave) wave_out_tests(); test_sndPlaySound(); test_fragmentsize(); + test_reentrant_callback(); test_PlaySound(); }
1
0
0
0
← Newer
1
...
13
14
15
16
17
18
19
...
73
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
Results per page:
10
25
50
100
200