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
September 2020
----- 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
703 discussions
Start a n
N
ew thread
Michael Stefaniuc : advapi32: Remove superfluous cast to self.
by Alexandre Julliard
22 Sep '20
22 Sep '20
Module: wine Branch: master Commit: d6c4efec1ab726b70a660b8a3195eb43003793b5 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=d6c4efec1ab726b70a660b8a…
Author: Michael Stefaniuc <mstefani(a)winehq.org> Date: Tue Sep 22 20:52:39 2020 +0200 advapi32: Remove superfluous cast to self. Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/advapi32/service.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/advapi32/service.c b/dlls/advapi32/service.c index 846a2b8d45..8a1024ff80 100644 --- a/dlls/advapi32/service.c +++ b/dlls/advapi32/service.c @@ -179,12 +179,12 @@ EnumServicesStatusW( SC_HANDLE manager, DWORD type, DWORD state, ENUM_SERVICE_ST for (i = 0; i < *ret_count; i++) { lstrcpyW( p, status_ex[i].lpServiceName ); - status[i].lpServiceName = (WCHAR *)p; + status[i].lpServiceName = p; p += lstrlenW( p ) + 1; if (status_ex[i].lpDisplayName) { lstrcpyW( p, status_ex[i].lpDisplayName ); - status[i].lpDisplayName = (WCHAR *)p; + status[i].lpDisplayName = p; p += lstrlenW( p ) + 1; } else status[i].lpDisplayName = NULL;
1
0
0
0
Michael Stefaniuc : xactengine3_7: Remove superfluous cast to self.
by Alexandre Julliard
22 Sep '20
22 Sep '20
Module: wine Branch: master Commit: 2e408a6be5ebab5db76bc9fe803e5a566007c45a URL:
https://source.winehq.org/git/wine.git/?a=commit;h=2e408a6be5ebab5db76bc9fe…
Author: Michael Stefaniuc <mstefani(a)winehq.org> Date: Tue Sep 22 20:52:40 2020 +0200 xactengine3_7: Remove superfluous cast to self. Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/xactengine3_7/xact_dll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/xactengine3_7/xact_dll.c b/dlls/xactengine3_7/xact_dll.c index 742fe86cc9..84ed35d2c4 100644 --- a/dlls/xactengine3_7/xact_dll.c +++ b/dlls/xactengine3_7/xact_dll.c @@ -259,7 +259,7 @@ static HRESULT WINAPI IXACT3SoundBankImpl_Prepare(IXACT3SoundBank *iface, cue->IXACT3Cue_iface.lpVtbl = &XACT3Cue_Vtbl; cue->fact_cue = fcue; - *ppCue = (IXACT3Cue*)&cue->IXACT3Cue_iface; + *ppCue = &cue->IXACT3Cue_iface; TRACE("Created Cue: %p\n", cue); @@ -301,7 +301,7 @@ static HRESULT WINAPI IXACT3SoundBankImpl_Play(IXACT3SoundBank *iface, cue->IXACT3Cue_iface.lpVtbl = &XACT3Cue_Vtbl; cue->fact_cue = fcue; - *ppCue = (IXACT3Cue*)&cue->IXACT3Cue_iface; + *ppCue = &cue->IXACT3Cue_iface; } return hr;
1
0
0
0
Jacek Caban : kernel32: Move Beep() to kernelbase.
by Alexandre Julliard
22 Sep '20
22 Sep '20
Module: wine Branch: master Commit: e8e1f1e634634a05aaed8e5d0fad9d72da499e02 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=e8e1f1e634634a05aaed8e5d…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Sep 22 16:48:25 2020 +0200 kernel32: Move Beep() to kernelbase. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/kernel32/console.c | 12 ------------ dlls/kernel32/kernel32.spec | 2 +- dlls/kernelbase/console.c | 13 +++++++++++++ dlls/kernelbase/kernelbase.spec | 2 +- 4 files changed, 15 insertions(+), 14 deletions(-) diff --git a/dlls/kernel32/console.c b/dlls/kernel32/console.c index 24f86a9e51..19a58f259e 100644 --- a/dlls/kernel32/console.c +++ b/dlls/kernel32/console.c @@ -68,18 +68,6 @@ HWND WINAPI GetConsoleWindow(void) } -/*********************************************************************** - * Beep (KERNEL32.@) - */ -BOOL WINAPI Beep( DWORD dwFreq, DWORD dwDur ) -{ - /* FIXME: we should not require a console to be attached */ - DeviceIoControl( RtlGetCurrentPeb()->ProcessParameters->ConsoleHandle, - IOCTL_CONDRV_BEEP, NULL, 0, NULL, 0, NULL, NULL ); - return TRUE; -} - - /****************************************************************** * OpenConsoleW (KERNEL32.@) * diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec index 33767cd447..4b09f359b9 100644 --- a/dlls/kernel32/kernel32.spec +++ b/dlls/kernel32/kernel32.spec @@ -195,7 +195,7 @@ # @ stub BasepFreeActivationContextActivationBlock # @ stub BasepFreeAppCompatData # @ stub BasepMapModuleHandle -@ stdcall Beep(long long) +@ stdcall -import Beep(long long) @ stdcall BeginUpdateResourceA(str long) @ stdcall BeginUpdateResourceW(wstr long) @ stdcall BindIoCompletionCallback(long ptr long) diff --git a/dlls/kernelbase/console.c b/dlls/kernelbase/console.c index cc9d88acf4..ce041020a3 100644 --- a/dlls/kernelbase/console.c +++ b/dlls/kernelbase/console.c @@ -1658,6 +1658,19 @@ BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleOutputCharacterW( HANDLE handle, LPCWS return ret; } + +/*********************************************************************** + * Beep (kernelbase.@) + */ +BOOL WINAPI Beep( DWORD frequency, DWORD duration ) +{ + /* FIXME: we should not require a console to be attached */ + console_ioctl( RtlGetCurrentPeb()->ProcessParameters->ConsoleHandle, + IOCTL_CONDRV_BEEP, NULL, 0, NULL, 0, NULL ); + return TRUE; +} + + static HANDLE create_pseudo_console( COORD size, HANDLE input, HANDLE output, HANDLE signal, DWORD flags, HANDLE *process ) { diff --git a/dlls/kernelbase/kernelbase.spec b/dlls/kernelbase/kernelbase.spec index dd74e9d6e9..1ba1c52b21 100644 --- a/dlls/kernelbase/kernelbase.spec +++ b/dlls/kernelbase/kernelbase.spec @@ -93,7 +93,7 @@ # @ stub BasepCopyFileCallback # @ stub BasepCopyFileExW # @ stub BasepNotifyTrackingService -@ stdcall Beep(long long) kernel32.Beep +@ stdcall Beep(long long) @ stub BemCopyReference @ stub BemCreateContractFrom @ stub BemCreateReference
1
0
0
0
Jacek Caban : kernel32: Move Beep implementation to conhost.
by Alexandre Julliard
22 Sep '20
22 Sep '20
Module: wine Branch: master Commit: 810873eb7561e147dff871aa20315e930d1f01bb URL:
https://source.winehq.org/git/wine.git/?a=commit;h=810873eb7561e147dff871aa…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Sep 22 16:48:04 2020 +0200 kernel32: Move Beep implementation to conhost. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/kernel32/console.c | 17 +++-------------- include/wine/condrv.h | 1 + programs/conhost/conhost.c | 9 +++++++++ 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/dlls/kernel32/console.c b/dlls/kernel32/console.c index fc83b2db12..24f86a9e51 100644 --- a/dlls/kernel32/console.c +++ b/dlls/kernel32/console.c @@ -23,21 +23,10 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -/* Reference applications: - * - IDA (interactive disassembler) full version 3.75. Works. - * - LYNX/W32. Works mostly, some keys crash it. - */ - -#include "config.h" -#include "wine/port.h" - #include <stdarg.h> #include <stdio.h> #include <string.h> #include <limits.h> -#ifdef HAVE_UNISTD_H -# include <unistd.h> -#endif #define NONAMELESSUNION #include "ntstatus.h" @@ -84,9 +73,9 @@ HWND WINAPI GetConsoleWindow(void) */ BOOL WINAPI Beep( DWORD dwFreq, DWORD dwDur ) { - static const char beep = '\a'; - /* dwFreq and dwDur are ignored by Win95 */ - if (isatty(2)) write( 2, &beep, 1 ); + /* FIXME: we should not require a console to be attached */ + DeviceIoControl( RtlGetCurrentPeb()->ProcessParameters->ConsoleHandle, + IOCTL_CONDRV_BEEP, NULL, 0, NULL, 0, NULL, NULL ); return TRUE; } diff --git a/include/wine/condrv.h b/include/wine/condrv.h index a5633998db..dd870c2157 100644 --- a/include/wine/condrv.h +++ b/include/wine/condrv.h @@ -38,6 +38,7 @@ #define IOCTL_CONDRV_GET_TITLE CTL_CODE(FILE_DEVICE_CONSOLE, 16, METHOD_BUFFERED, FILE_READ_ACCESS) #define IOCTL_CONDRV_SET_TITLE CTL_CODE(FILE_DEVICE_CONSOLE, 17, METHOD_BUFFERED, FILE_WRITE_ACCESS) #define IOCTL_CONDRV_CTRL_EVENT CTL_CODE(FILE_DEVICE_CONSOLE, 18, METHOD_BUFFERED, FILE_WRITE_ACCESS) +#define IOCTL_CONDRV_BEEP CTL_CODE(FILE_DEVICE_CONSOLE, 19, METHOD_BUFFERED, FILE_ANY_ACCESS) /* console output ioctls */ #define IOCTL_CONDRV_WRITE_CONSOLE CTL_CODE(FILE_DEVICE_CONSOLE, 30, METHOD_BUFFERED, FILE_WRITE_ACCESS) diff --git a/programs/conhost/conhost.c b/programs/conhost/conhost.c index 82cee8bdf0..a775e74961 100644 --- a/programs/conhost/conhost.c +++ b/programs/conhost/conhost.c @@ -2569,6 +2569,15 @@ static NTSTATUS console_input_ioctl( struct console *console, unsigned int code, if (in_size % sizeof(WCHAR) || *out_size) return STATUS_INVALID_PARAMETER; return set_console_title( console, in_data, in_size ); + case IOCTL_CONDRV_BEEP: + if (in_size || *out_size) return STATUS_INVALID_PARAMETER; + if (console->is_unix) + { + tty_write( console, "\a", 1 ); + tty_sync( console ); + } + return STATUS_SUCCESS; + default: FIXME( "unsupported ioctl %x\n", code ); return STATUS_NOT_SUPPORTED;
1
0
0
0
Jacek Caban : kernelbase: Move ReadConsoleInput.
by Alexandre Julliard
22 Sep '20
22 Sep '20
Module: wine Branch: master Commit: cd9f96c7ce868514c481b02412ca2db157022f61 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=cd9f96c7ce868514c481b024…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Sep 22 17:50:45 2020 +0200 kernelbase: Move ReadConsoleInput. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/kernel32/console.c | 63 ----------------------------------------- dlls/kernel32/kernel32.spec | 4 +-- dlls/kernelbase/console.c | 28 ++++++++++++++++++ dlls/kernelbase/kernelbase.spec | 4 +-- 4 files changed, 32 insertions(+), 67 deletions(-) diff --git a/dlls/kernel32/console.c b/dlls/kernel32/console.c index 0832823c38..fc83b2db12 100644 --- a/dlls/kernel32/console.c +++ b/dlls/kernel32/console.c @@ -58,33 +58,9 @@ WINE_DEFAULT_DEBUG_CHANNEL(console); -static CRITICAL_SECTION CONSOLE_CritSect; -static CRITICAL_SECTION_DEBUG critsect_debug = -{ - 0, 0, &CONSOLE_CritSect, - { &critsect_debug.ProcessLocksList, &critsect_debug.ProcessLocksList }, - 0, 0, { (DWORD_PTR)(__FILE__ ": CONSOLE_CritSect") } -}; -static CRITICAL_SECTION CONSOLE_CritSect = { &critsect_debug, -1, 0, 0, 0, 0 }; - static const WCHAR coninW[] = {'C','O','N','I','N','$',0}; static const WCHAR conoutW[] = {'C','O','N','O','U','T','$',0}; -/* map input records to ASCII */ -static void input_records_WtoA( INPUT_RECORD *buffer, int count ) -{ - UINT cp = GetConsoleCP(); - int i; - char ch; - - for (i = 0; i < count; i++) - { - if (buffer[i].EventType != KEY_EVENT) continue; - WideCharToMultiByte( cp, 0, &buffer[i].Event.KeyEvent.uChar.UnicodeChar, 1, &ch, 1, NULL, NULL ); - buffer[i].Event.KeyEvent.uChar.AsciiChar = ch; - } -} - /****************************************************************************** * GetConsoleWindow [KERNEL32.@] Get hwnd of the console window. * @@ -395,45 +371,6 @@ BOOL WINAPI ReadConsoleW(HANDLE hConsoleInput, LPVOID lpBuffer, } -/*********************************************************************** - * ReadConsoleInputA (KERNEL32.@) - */ -BOOL WINAPI ReadConsoleInputA( HANDLE handle, INPUT_RECORD *buffer, DWORD length, DWORD *count ) -{ - DWORD read; - - if (!ReadConsoleInputW( handle, buffer, length, &read )) return FALSE; - input_records_WtoA( buffer, read ); - if (count) *count = read; - return TRUE; -} - - -/*********************************************************************** - * ReadConsoleInputW (KERNEL32.@) - */ -BOOL WINAPI ReadConsoleInputW(HANDLE hConsoleInput, PINPUT_RECORD lpBuffer, - DWORD nLength, LPDWORD lpNumberOfEventsRead) -{ - DWORD idx = 0; - DWORD timeout = INFINITE; - - if (!nLength) - { - if (lpNumberOfEventsRead) *lpNumberOfEventsRead = 0; - return TRUE; - } - - /* loop until we get at least one event */ - while (read_console_input(hConsoleInput, &lpBuffer[idx], timeout) == rci_gotone && - ++idx < nLength) - timeout = 0; - - if (lpNumberOfEventsRead) *lpNumberOfEventsRead = idx; - return idx != 0; -} - - /*********************************************************************** * GetNumberOfConsoleMouseButtons (KERNEL32.@) */ diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec index 0111f0e446..33767cd447 100644 --- a/dlls/kernel32/kernel32.spec +++ b/dlls/kernel32/kernel32.spec @@ -1194,10 +1194,10 @@ @ stdcall -import RaiseException(long long long ptr) # @ stub RaiseFailFastException @ stdcall ReadConsoleA(long ptr long ptr ptr) -@ stdcall ReadConsoleInputA(long ptr long ptr) +@ stdcall -import ReadConsoleInputA(long ptr long ptr) @ stub ReadConsoleInputExA @ stub ReadConsoleInputExW -@ stdcall ReadConsoleInputW(long ptr long ptr) +@ stdcall -import ReadConsoleInputW(long ptr long ptr) @ stdcall -import ReadConsoleOutputA(long ptr long long ptr) @ stdcall -import ReadConsoleOutputAttribute(long ptr long long ptr) @ stdcall -import ReadConsoleOutputCharacterA(long ptr long long ptr) diff --git a/dlls/kernelbase/console.c b/dlls/kernelbase/console.c index 0d105199fc..cc9d88acf4 100644 --- a/dlls/kernelbase/console.c +++ b/dlls/kernelbase/console.c @@ -1393,6 +1393,34 @@ BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleWindowInfo( HANDLE handle, BOOL absolute } +/*********************************************************************** + * ReadConsoleInputA (kernelbase.@) + */ +BOOL WINAPI ReadConsoleInputA( HANDLE handle, INPUT_RECORD *buffer, DWORD length, DWORD *count ) +{ + DWORD read; + + if (!ReadConsoleInputW( handle, buffer, length, &read )) return FALSE; + input_records_WtoA( buffer, read ); + if (count) *count = read; + return TRUE; +} + + +/*********************************************************************** + * ReadConsoleInputW (kernelbase.@) + */ +BOOL WINAPI ReadConsoleInputW( HANDLE handle, INPUT_RECORD *buffer, DWORD length, DWORD *count ) +{ + int blocking = 1; + if (!console_ioctl( handle, IOCTL_CONDRV_READ_INPUT, &blocking, sizeof(blocking), + buffer, length * sizeof(*buffer), count )) + return FALSE; + *count /= sizeof(*buffer); + return TRUE; +} + + /****************************************************************************** * WriteConsoleInputA (kernelbase.@) */ diff --git a/dlls/kernelbase/kernelbase.spec b/dlls/kernelbase/kernelbase.spec index a794e33faf..dd74e9d6e9 100644 --- a/dlls/kernelbase/kernelbase.spec +++ b/dlls/kernelbase/kernelbase.spec @@ -1238,10 +1238,10 @@ # @ stub RaiseFailFastException @ stdcall ReOpenFile(ptr long long long) @ stdcall ReadConsoleA(long ptr long ptr ptr) kernel32.ReadConsoleA -@ stdcall ReadConsoleInputA(long ptr long ptr) kernel32.ReadConsoleInputA +@ stdcall ReadConsoleInputA(long ptr long ptr) @ stub ReadConsoleInputExA @ stub ReadConsoleInputExW -@ stdcall ReadConsoleInputW(long ptr long ptr) kernel32.ReadConsoleInputW +@ stdcall ReadConsoleInputW(long ptr long ptr) @ stdcall ReadConsoleOutputA(long ptr long long ptr) @ stdcall ReadConsoleOutputAttribute(long ptr long long ptr) @ stdcall ReadConsoleOutputCharacterA(long ptr long long ptr)
1
0
0
0
Jacek Caban : server: Remove support for creating bare consoles.
by Alexandre Julliard
22 Sep '20
22 Sep '20
Module: wine Branch: master Commit: 79cb33e192be9b41d9d077564b0197b53c1a228c URL:
https://source.winehq.org/git/wine.git/?a=commit;h=79cb33e192be9b41d9d07756…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Sep 22 16:47:10 2020 +0200 server: Remove support for creating bare consoles. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- include/wine/server_protocol.h | 6 +-- programs/wineconsole/wineconsole.c | 2 - server/console.c | 89 +++++++------------------------------- server/protocol.def | 2 - server/request.h | 4 +- server/trace.c | 2 - 6 files changed, 18 insertions(+), 87 deletions(-) Diff:
https://source.winehq.org/git/wine.git/?a=commitdiff;h=79cb33e192be9b41d9d0…
1
0
0
0
Jacek Caban : configure: Remove curses checks.
by Alexandre Julliard
22 Sep '20
22 Sep '20
Module: wine Branch: master Commit: 26c715f85b490eda36fa06473a24218bda40a56e URL:
https://source.winehq.org/git/wine.git/?a=commit;h=26c715f85b490eda36fa0647…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Sep 22 16:46:33 2020 +0200 configure: Remove curses checks. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- configure | 150 ---------------------------------------------------- configure.ac | 20 ------- include/config.h.in | 15 ------ 3 files changed, 185 deletions(-) diff --git a/configure b/configure index e8d97610f2..a623a72256 100755 --- a/configure +++ b/configure @@ -845,7 +845,6 @@ with_capi with_cms with_coreaudio with_cups -with_curses with_dbus with_faudio with_float_abi @@ -2576,7 +2575,6 @@ Optional Packages: --without-cms do not use CMS (color management support) --without-coreaudio do not use the CoreAudio sound support --without-cups do not use CUPS - --without-curses do not use (n)curses --without-dbus do not use DBus (dynamic device support) --without-faudio do not use FAudio (XAudio2 support) --with-float-abi=abi specify the ABI (soft|softfp|hard) for ARM platforms @@ -3928,12 +3926,6 @@ if test "${with_cups+set}" = set; then : fi -# Check whether --with-curses was given. -if test "${with_curses+set}" = set; then : - withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi -fi - - # Check whether --with-dbus was given. if test "${with_dbus+set}" = set; then : withval=$with_dbus; @@ -7407,7 +7399,6 @@ for ac_header in \ arpa/nameser.h \ asm/types.h \ asm/user.h \ - curses.h \ dirent.h \ dlfcn.h \ elf.h \ @@ -7444,7 +7435,6 @@ for ac_header in \ machine/cpu.h \ machine/sysarch.h \ mntent.h \ - ncurses.h \ netdb.h \ netinet/in.h \ netinet/in_systm.h \ @@ -13669,146 +13659,6 @@ esac fi -CURSES_LIBS="" -if test "$ac_cv_header_ncurses_h" = "yes" -then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5 -$as_echo_n "checking for -lncurses... " >&6; } -if ${ac_cv_lib_soname_ncurses+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_soname_save_LIBS=$LIBS -LIBS="-lncurses $LIBS" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char waddch (); -int -main () -{ -return waddch (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - case "$LIBEXT" in - dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;; - dylib) ac_cv_lib_soname_ncurses=`$OTOOL -L conftest$ac_exeext | grep "libncursesw\\{0,1\\}\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libncursesw\\{0,1\\}\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; - *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncursesw\\{0,1\\}\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncursesw\\{0,1\\}\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'` - if ${ac_cv_lib_soname_ncurses:+false} :; then : - ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncursesw\\{0,1\\}\\.$LIBEXT" | sed -e "s/^.*\(libncursesw\\{0,1\\}\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` -fi ;; - esac -else - ac_cv_lib_soname_ncurses= -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LIBS=$ac_check_soname_save_LIBS -fi -if ${ac_cv_lib_soname_ncurses:+false} :; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 -$as_echo "not found" >&6; } - -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5 -$as_echo "$ac_cv_lib_soname_ncurses" >&6; } - -cat >>confdefs.h <<_ACEOF -#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses" -_ACEOF - - CURSES_LIBS="-lncurses" -fi -elif test "$ac_cv_header_curses_h" = "yes" -then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5 -$as_echo_n "checking for -lcurses... " >&6; } -if ${ac_cv_lib_soname_curses+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_soname_save_LIBS=$LIBS -LIBS="-lcurses $LIBS" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char waddch (); -int -main () -{ -return waddch (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - case "$LIBEXT" in - dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;; - dylib) ac_cv_lib_soname_curses=`$OTOOL -L conftest$ac_exeext | grep "libcurses\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcurses\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; - *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'` - if ${ac_cv_lib_soname_curses:+false} :; then : - ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` -fi ;; - esac -else - ac_cv_lib_soname_curses= -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LIBS=$ac_check_soname_save_LIBS -fi -if ${ac_cv_lib_soname_curses:+false} :; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 -$as_echo "not found" >&6; } - -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5 -$as_echo "$ac_cv_lib_soname_curses" >&6; } - -cat >>confdefs.h <<_ACEOF -#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses" -_ACEOF - - CURSES_LIBS="-lcurses" -fi -fi -ac_save_LIBS="$LIBS" -LIBS="$LIBS $CURSES_LIBS" -for ac_func in mousemask -do : - ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask" -if test "x$ac_cv_func_mousemask" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_MOUSEMASK 1 -_ACEOF - -fi -done - -LIBS="$ac_save_LIBS" -if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then : - case "x$with_curses" in - x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;; - xno) ;; - *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported. -This is an error since --with-curses was requested." "$LINENO" 5 ;; -esac - -fi - if test "x$with_sane" != "xno" then if ${SANE_CFLAGS:+false} :; then : diff --git a/configure.ac b/configure.ac index 20ae7577fa..cb9fc47f45 100644 --- a/configure.ac +++ b/configure.ac @@ -40,8 +40,6 @@ AC_ARG_WITH(cms, AS_HELP_STRING([--without-cms],[do not use CMS (color man AC_ARG_WITH(coreaudio, AS_HELP_STRING([--without-coreaudio],[do not use the CoreAudio sound support]), [if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi]) AC_ARG_WITH(cups, AS_HELP_STRING([--without-cups],[do not use CUPS])) -AC_ARG_WITH(curses, AS_HELP_STRING([--without-curses],[do not use (n)curses]), - [if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi]) AC_ARG_WITH(dbus, AS_HELP_STRING([--without-dbus],[do not use DBus (dynamic device support)])) AC_ARG_WITH(faudio, AS_HELP_STRING([--without-faudio],[do not use FAudio (XAudio2 support)])) AC_ARG_WITH(float-abi, AS_HELP_STRING([--with-float-abi=abi],[specify the ABI (soft|softfp|hard) for ARM platforms])) @@ -436,7 +434,6 @@ AC_CHECK_HEADERS(\ arpa/nameser.h \ asm/types.h \ asm/user.h \ - curses.h \ dirent.h \ dlfcn.h \ elf.h \ @@ -473,7 +470,6 @@ AC_CHECK_HEADERS(\ machine/cpu.h \ machine/sysarch.h \ mntent.h \ - ncurses.h \ netdb.h \ netinet/in.h \ netinet/in_systm.h \ @@ -1450,22 +1446,6 @@ fi WINE_WARNING_WITH(gnutls,[test "x$ac_cv_lib_soname_gnutls" = "x"], [libgnutls ${notice_platform}development files not found, no schannel support.]) -dnl **** Check which curses lib to use *** -CURSES_LIBS="" -if test "$ac_cv_header_ncurses_h" = "yes" -then - WINE_CHECK_SONAME(ncurses,waddch,[CURSES_LIBS="-lncurses"],,,[[libncursesw\\{0,1\\}]]) -elif test "$ac_cv_header_curses_h" = "yes" -then - WINE_CHECK_SONAME(curses,waddch,[CURSES_LIBS="-lcurses"]) -fi -ac_save_LIBS="$LIBS" -LIBS="$LIBS $CURSES_LIBS" -AC_CHECK_FUNCS(mousemask) -LIBS="$ac_save_LIBS" -WINE_NOTICE_WITH(curses,[test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"], - [lib(n)curses ${notice_platform}development files not found, curses won't be supported.]) - dnl **** Check for SANE **** if test "x$with_sane" != "xno" then diff --git a/include/config.h.in b/include/config.h.in index 4309920ffa..f7702c5aaf 100644 --- a/include/config.h.in +++ b/include/config.h.in @@ -94,9 +94,6 @@ /* Define to 1 if you have the <cups/ppd.h> header file. */ #undef HAVE_CUPS_PPD_H -/* Define to 1 if you have the <curses.h> header file. */ -#undef HAVE_CURSES_H - /* Define to 1 if you have the <dirent.h> header file. */ #undef HAVE_DIRENT_H @@ -570,18 +567,12 @@ /* Define to 1 if you have the <mntent.h> header file. */ #undef HAVE_MNTENT_H -/* Define to 1 if you have the `mousemask' function. */ -#undef HAVE_MOUSEMASK - /* Define to 1 if you have the <mpg123.h> header file. */ #undef HAVE_MPG123_H /* Define if MTLDevice protocol has registryID property. */ #undef HAVE_MTLDEVICE_REGISTRYID -/* Define to 1 if you have the <ncurses.h> header file. */ -#undef HAVE_NCURSES_H - /* Define to 1 if you have the `nearbyint' function. */ #undef HAVE_NEARBYINT @@ -1331,9 +1322,6 @@ /* Define to the soname of the libcups library. */ #undef SONAME_LIBCUPS -/* Define to the soname of the libcurses library. */ -#undef SONAME_LIBCURSES - /* Define to the soname of the libdbus-1 library. */ #undef SONAME_LIBDBUS_1 @@ -1379,9 +1367,6 @@ /* Define to the soname of the libMoltenVK library. */ #undef SONAME_LIBMOLTENVK -/* Define to the soname of the libncurses library. */ -#undef SONAME_LIBNCURSES - /* Define to the soname of the libnetapi library. */ #undef SONAME_LIBNETAPI
1
0
0
0
Jacek Caban : wineconsole: Remove curses backend.
by Alexandre Julliard
22 Sep '20
22 Sep '20
Module: wine Branch: master Commit: 05628e169db4c8aa4ad36953d07b13d71ff3a5e0 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=05628e169db4c8aa4ad36953…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Sep 22 16:46:25 2020 +0200 wineconsole: Remove curses backend. Default conhost Unix console handling should cover its use cases. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- po/ar.po | 80 +-- po/ast.po | 78 +-- po/bg.po | 78 +-- po/ca.po | 82 +-- po/cs.po | 80 +-- po/da.po | 82 +-- po/de.po | 81 +-- po/el.po | 78 +-- po/en.po | 82 +-- po/en_US.po | 82 +-- po/eo.po | 78 +-- po/es.po | 82 +-- po/fa.po | 78 +-- po/fi.po | 80 +-- po/fr.po | 82 +-- po/he.po | 82 +-- po/hi.po | 78 +-- po/hr.po | 78 +-- po/hu.po | 81 +-- po/it.po | 82 +-- po/ja.po | 81 +-- po/ko.po | 81 +-- po/lt.po | 81 +-- po/ml.po | 78 +-- po/nb_NO.po | 81 +-- po/nl.po | 83 +-- po/or.po | 78 +-- po/pa.po | 78 +-- po/pl.po | 81 +-- po/pt_BR.po | 81 +-- po/pt_PT.po | 82 +-- po/rm.po | 78 +-- po/ro.po | 81 +-- po/ru.po | 81 +-- po/si.po | 80 +-- po/sk.po | 78 +-- po/sl.po | 82 +-- po/sr_RS(a)cyrillic.po | 78 +-- po/sr_RS(a)latin.po | 78 +-- po/sv.po | 82 +-- po/ta.po | 78 +-- po/te.po | 78 +-- po/th.po | 78 +-- po/tr.po | 81 +-- po/uk.po | 80 +-- po/wa.po | 78 +-- po/wine.pot | 78 +-- po/zh_CN.po | 80 +-- po/zh_TW.po | 80 +-- programs/wineconsole/Makefile.in | 1 - programs/wineconsole/curses.c | 1126 -------------------------------- programs/wineconsole/winecon_private.h | 1 - programs/wineconsole/wineconsole.c | 88 +-- programs/wineconsole/wineconsole.rc | 2 - programs/wineconsole/wineconsole_res.h | 1 - 55 files changed, 1743 insertions(+), 3394 deletions(-) Diff:
https://source.winehq.org/git/wine.git/?a=commitdiff;h=05628e169db4c8aa4ad3…
1
0
0
0
Jacek Caban : conhost: Fix a leak in create_screen_buffer.
by Alexandre Julliard
22 Sep '20
22 Sep '20
Module: wine Branch: master Commit: c840de2839f67793483bae633362b2daf00e3949 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=c840de2839f67793483bae63…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Sep 22 16:46:09 2020 +0200 conhost: Fix a leak in create_screen_buffer. Based on patch by Haidong Yu. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- programs/conhost/conhost.c | 44 ++++++++++++++++++-------------------------- 1 file changed, 18 insertions(+), 26 deletions(-) diff --git a/programs/conhost/conhost.c b/programs/conhost/conhost.c index c0a0e08e6d..82cee8bdf0 100644 --- a/programs/conhost/conhost.c +++ b/programs/conhost/conhost.c @@ -166,41 +166,48 @@ static int screen_buffer_compare_id( const void *key, const struct wine_rb_entry static struct wine_rb_tree screen_buffer_map = { screen_buffer_compare_id }; +static void destroy_screen_buffer( struct screen_buffer *screen_buffer ) +{ + if (screen_buffer->console->active == screen_buffer) + screen_buffer->console->active = NULL; + wine_rb_remove( &screen_buffer_map, &screen_buffer->entry ); + free( screen_buffer->data ); + free( screen_buffer ); +} + static struct screen_buffer *create_screen_buffer( struct console *console, int id, int width, int height ) { struct screen_buffer *screen_buffer; unsigned int i; - if (!(screen_buffer = malloc( sizeof(*screen_buffer) ))) return NULL; + if (!(screen_buffer = calloc( 1, sizeof(*screen_buffer) ))) return NULL; screen_buffer->console = console; screen_buffer->id = id; screen_buffer->mode = ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT; screen_buffer->cursor_size = 100; screen_buffer->cursor_visible = 1; - screen_buffer->cursor_x = 0; - screen_buffer->cursor_y = 0; screen_buffer->width = width; screen_buffer->height = height; screen_buffer->attr = 0x07; screen_buffer->popup_attr = 0xf5; screen_buffer->max_width = 80; screen_buffer->max_height = 25; - screen_buffer->win.left = 0; screen_buffer->win.right = min( screen_buffer->max_width - 1, width - 1 ); - screen_buffer->win.top = 0; screen_buffer->win.bottom = min( screen_buffer->max_height - 1, height - 1); - screen_buffer->font.width = 0; - screen_buffer->font.height = 0; screen_buffer->font.weight = FW_NORMAL; screen_buffer->font.pitch_family = FIXED_PITCH | FF_DONTCARE; - screen_buffer->font.face_name = NULL; - screen_buffer->font.face_len = 0; - memset( screen_buffer->color_map, 0, sizeof(screen_buffer->color_map) ); + + if (wine_rb_put( &screen_buffer_map, LongToPtr(id), &screen_buffer->entry )) + { + free( screen_buffer ); + ERR( "id %x already exists\n", id ); + return NULL; + } if (!(screen_buffer->data = malloc( screen_buffer->width * screen_buffer->height * sizeof(*screen_buffer->data) ))) { - free( screen_buffer ); + destroy_screen_buffer( screen_buffer ); return NULL; } @@ -211,24 +218,9 @@ static struct screen_buffer *create_screen_buffer( struct console *console, int memcpy( &screen_buffer->data[i * screen_buffer->width], screen_buffer->data, screen_buffer->width * sizeof(char_info_t) ); - if (wine_rb_put( &screen_buffer_map, LongToPtr(id), &screen_buffer->entry )) - { - ERR( "id %x already exists\n", id ); - return NULL; - } - return screen_buffer; } -static void destroy_screen_buffer( struct screen_buffer *screen_buffer ) -{ - if (screen_buffer->console->active == screen_buffer) - screen_buffer->console->active = NULL; - wine_rb_remove( &screen_buffer_map, &screen_buffer->entry ); - free( screen_buffer->data ); - free( screen_buffer ); -} - static BOOL is_active( struct screen_buffer *screen_buffer ) { return screen_buffer == screen_buffer->console->active;
1
0
0
0
Gijs Vermeulen : msvcirt: Implement ofstream class.
by Alexandre Julliard
22 Sep '20
22 Sep '20
Module: wine Branch: master Commit: d18a9b963081cae4d3e824fa77756f2f9035319c URL:
https://source.winehq.org/git/wine.git/?a=commit;h=d18a9b963081cae4d3e824fa…
Author: Gijs Vermeulen <gijsvrm(a)gmail.com> Date: Tue Sep 22 16:07:55 2020 +0200 msvcirt: Implement ofstream class. Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=31342
Signed-off-by: Gijs Vermeulen <gijsvrm(a)gmail.com> Signed-off-by: Piotr Caban <piotr(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/msvcirt/msvcirt.c | 205 ++++++++++++++++++++++- dlls/msvcirt/msvcirt.spec | 72 ++++---- dlls/msvcirt/tests/msvcirt.c | 388 +++++++++++++++++++++++++++++++++++++++++++ dlls/msvcrt20/msvcrt20.spec | 72 ++++---- dlls/msvcrt40/msvcrt40.spec | 72 ++++---- 5 files changed, 699 insertions(+), 110 deletions(-) Diff:
https://source.winehq.org/git/wine.git/?a=commitdiff;h=d18a9b963081cae4d3e8…
1
0
0
0
← Newer
1
...
19
20
21
22
23
24
25
...
71
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
Results per page:
10
25
50
100
200