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
July
June
May
April
March
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
July 2020
----- 2025 -----
July 2025
June 2025
May 2025
April 2025
March 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
826 discussions
Start a n
N
ew thread
Alexandre Julliard : ntdll: Use malloc() to allocate the logical processor information.
by Alexandre Julliard
14 Jul '20
14 Jul '20
Module: wine Branch: master Commit: fe7b8d70d5229c693dc16b743ef0ec7f76a1569f URL:
https://source.winehq.org/git/wine.git/?a=commit;h=fe7b8d70d5229c693dc16b74…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 14 10:34:31 2020 +0200 ntdll: Use malloc() to allocate the logical processor information. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/ntdll/unix/system.c | 99 +++++++++++++++++++----------------------------- 1 file changed, 40 insertions(+), 59 deletions(-) diff --git a/dlls/ntdll/unix/system.c b/dlls/ntdll/unix/system.c index 3557df6108..eedd67fba1 100644 --- a/dlls/ntdll/unix/system.c +++ b/dlls/ntdll/unix/system.c @@ -496,32 +496,24 @@ void init_cpu_info(void) cpu_info.Architecture, cpu_info.Level, cpu_info.Revision, cpu_info.FeatureSet ); } -static BOOL grow_logical_proc_buf( SYSTEM_LOGICAL_PROCESSOR_INFORMATION **pdata, - SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX **pdataex, DWORD *max_len ) +static BOOL grow_logical_proc_buf( SYSTEM_LOGICAL_PROCESSOR_INFORMATION **pdata, DWORD *max_len ) { - if (pdata) - { - SYSTEM_LOGICAL_PROCESSOR_INFORMATION *new_data; - - *max_len *= 2; - new_data = RtlReAllocateHeap(GetProcessHeap(), 0, *pdata, *max_len*sizeof(*new_data)); - if (!new_data) - return FALSE; - - *pdata = new_data; - } - else - { - SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX *new_dataex; - - *max_len *= 2; - new_dataex = RtlReAllocateHeap(GetProcessHeap(), HEAP_ZERO_MEMORY, *pdataex, *max_len*sizeof(*new_dataex)); - if (!new_dataex) - return FALSE; + SYSTEM_LOGICAL_PROCESSOR_INFORMATION *new_data; - *pdataex = new_dataex; - } + *max_len *= 2; + if (!(new_data = realloc( *pdata, *max_len*sizeof(*new_data) ))) return FALSE; + *pdata = new_data; + return TRUE; +} +static BOOL grow_logical_proc_ex_buf( SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX **pdataex, DWORD *max_len ) +{ + SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX *new_dataex; + DWORD new_len = *max_len * 2; + if (!(new_dataex = realloc( *pdataex, new_len * sizeof(*new_dataex) ))) return FALSE; + memset( new_dataex + *max_len, 0, (new_len - *max_len) * sizeof(*new_dataex) ); + *pdataex = new_dataex; + *max_len = new_len; return TRUE; } @@ -570,7 +562,7 @@ static BOOL logical_proc_info_add_by_id( SYSTEM_LOGICAL_PROCESSOR_INFORMATION ** while (*len == *pmax_len) { - if (!grow_logical_proc_buf(pdata, NULL, pmax_len)) return FALSE; + if (!grow_logical_proc_buf(pdata, pmax_len)) return FALSE; } (*pdata)[i].Relationship = rel; @@ -606,7 +598,7 @@ static BOOL logical_proc_info_add_by_id( SYSTEM_LOGICAL_PROCESSOR_INFORMATION ** while (ofs + log_proc_ex_size_plus(sizeof(PROCESSOR_RELATIONSHIP)) > *pmax_len) { - if (!grow_logical_proc_buf(NULL, pdataex, pmax_len)) return FALSE; + if (!grow_logical_proc_ex_buf(pdataex, pmax_len)) return FALSE; } dataex = (SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX *)(((char *)*pdataex) + ofs); @@ -647,7 +639,7 @@ static BOOL logical_proc_info_add_cache( SYSTEM_LOGICAL_PROCESSOR_INFORMATION ** } while (*len == *pmax_len) - if (!grow_logical_proc_buf(pdata, NULL, pmax_len)) return FALSE; + if (!grow_logical_proc_buf(pdata, pmax_len)) return FALSE; (*pdata)[i].Relationship = RelationCache; (*pdata)[i].ProcessorMask = mask; @@ -670,7 +662,7 @@ static BOOL logical_proc_info_add_cache( SYSTEM_LOGICAL_PROCESSOR_INFORMATION ** while (ofs + log_proc_ex_size_plus(sizeof(CACHE_RELATIONSHIP)) > *pmax_len) { - if (!grow_logical_proc_buf(NULL, pdataex, pmax_len)) return FALSE; + if (!grow_logical_proc_ex_buf(pdataex, pmax_len)) return FALSE; } dataex = (SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX *)(((char *)*pdataex) + ofs); @@ -698,7 +690,7 @@ static BOOL logical_proc_info_add_numa_node( SYSTEM_LOGICAL_PROCESSOR_INFORMATIO if (pdata) { while (*len == *pmax_len) - if (!grow_logical_proc_buf(pdata, NULL, pmax_len)) return FALSE; + if (!grow_logical_proc_buf(pdata, pmax_len)) return FALSE; (*pdata)[*len].Relationship = RelationNumaNode; (*pdata)[*len].ProcessorMask = mask; @@ -711,7 +703,7 @@ static BOOL logical_proc_info_add_numa_node( SYSTEM_LOGICAL_PROCESSOR_INFORMATIO while (*len + log_proc_ex_size_plus(sizeof(NUMA_NODE_RELATIONSHIP)) > *pmax_len) { - if (!grow_logical_proc_buf(NULL, pdataex, pmax_len)) return FALSE; + if (!grow_logical_proc_ex_buf(pdataex, pmax_len)) return FALSE; } dataex = (SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX *)(((char *)*pdataex) + *len); @@ -734,7 +726,7 @@ static BOOL logical_proc_info_add_group( SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX *dataex; while (*len + log_proc_ex_size_plus(sizeof(GROUP_RELATIONSHIP)) > *pmax_len) - if (!grow_logical_proc_buf(NULL, pdataex, pmax_len)) return FALSE; + if (!grow_logical_proc_ex_buf(pdataex, pmax_len)) return FALSE; dataex = (SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX *)(((char *)*pdataex) + *len); @@ -2479,27 +2471,23 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class, /* Each logical processor may use up to 7 entries in returned table: * core, numa node, package, L1i, L1d, L2, L3 */ len = 7 * NtCurrentTeb()->Peb->NumberOfProcessors; - buf = RtlAllocateHeap(GetProcessHeap(), 0, len * sizeof(*buf)); + buf = malloc( len * sizeof(*buf) ); if (!buf) { ret = STATUS_NO_MEMORY; break; } - ret = create_logical_proc_info(&buf, NULL, &len, RelationAll); - if( ret != STATUS_SUCCESS ) + if (!ret) { - RtlFreeHeap(GetProcessHeap(), 0, buf); - break; - } - - if (size >= len) - { - if (!info) ret = STATUS_ACCESS_VIOLATION; - else memcpy( info, buf, len); + if (size >= len) + { + if (!info) ret = STATUS_ACCESS_VIOLATION; + else memcpy( info, buf, len); + } + else ret = STATUS_INFO_LENGTH_MISMATCH; } - else ret = STATUS_INFO_LENGTH_MISMATCH; - RtlFreeHeap(GetProcessHeap(), 0, buf); + free( buf ); break; } @@ -2600,29 +2588,22 @@ NTSTATUS WINAPI NtQuerySystemInformationEx( SYSTEM_INFORMATION_CLASS class, } len = 3 * sizeof(*buf); - buf = RtlAllocateHeap(GetProcessHeap(), 0, len); - if (!buf) + if (!(buf = malloc( len ))) { ret = STATUS_NO_MEMORY; break; } - ret = create_logical_proc_info(NULL, &buf, &len, *(DWORD *)query); - if (ret != STATUS_SUCCESS) - { - RtlFreeHeap(GetProcessHeap(), 0, buf); - break; - } - - if (size >= len) + if (!ret) { - if (!info) ret = STATUS_ACCESS_VIOLATION; - else memcpy(info, buf, len); + if (size >= len) + { + if (!info) ret = STATUS_ACCESS_VIOLATION; + else memcpy(info, buf, len); + } + else ret = STATUS_INFO_LENGTH_MISMATCH; } - else - ret = STATUS_INFO_LENGTH_MISMATCH; - - RtlFreeHeap(GetProcessHeap(), 0, buf); + free( buf ); break; }
1
0
0
0
Alexandre Julliard : ntdll: Use malloc() to allocate temporary process data.
by Alexandre Julliard
14 Jul '20
14 Jul '20
Module: wine Branch: master Commit: 42a2ad202e6a260dc9e3f04939c7dacf270f7434 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=42a2ad202e6a260dc9e3f049…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 14 10:33:57 2020 +0200 ntdll: Use malloc() to allocate temporary process data. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/ntdll/unix/process.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/ntdll/unix/process.c b/dlls/ntdll/unix/process.c index 8b03834df6..83c67737f8 100644 --- a/dlls/ntdll/unix/process.c +++ b/dlls/ntdll/unix/process.c @@ -233,7 +233,7 @@ static startup_info_t *create_startup_info( const RTL_USER_PROCESS_PARAMETERS *p size = (size + 1) & ~1; *info_size = size; - if (!(info = RtlAllocateHeap( GetProcessHeap(), HEAP_ZERO_MEMORY, size ))) return NULL; + if (!(info = calloc( size, 1 ))) return NULL; info->debug_flags = params->DebugFlags; info->console_flags = params->ConsoleFlags; @@ -461,7 +461,7 @@ static ULONG get_env_size( const RTL_USER_PROCESS_PARAMETERS *params, char **win if (!*winedebug && !wcsncmp( ptr, WINEDEBUG, ARRAY_SIZE( WINEDEBUG ) - 1 )) { DWORD len = wcslen(ptr) * 3 + 1; - if ((*winedebug = RtlAllocateHeap( GetProcessHeap(), 0, len ))) + if ((*winedebug = malloc( len ))) ntdll_wcstoumbs( ptr, wcslen(ptr) + 1, *winedebug, len, FALSE ); } ptr += wcslen(ptr) + 1; @@ -991,8 +991,8 @@ done: if (thread_handle) NtClose( thread_handle ); if (socketfd[0] != -1) close( socketfd[0] ); if (unixdir != -1) close( unixdir ); - RtlFreeHeap( GetProcessHeap(), 0, startup_info ); - RtlFreeHeap( GetProcessHeap(), 0, winedebug ); + free( startup_info ); + free( winedebug ); return status; }
1
0
0
0
Alexandre Julliard : ntdll: Use malloc() to allocate temporary filename buffers.
by Alexandre Julliard
14 Jul '20
14 Jul '20
Module: wine Branch: master Commit: 83f9e784e42c404e31172e55a406a8403c8a33de URL:
https://source.winehq.org/git/wine.git/?a=commit;h=83f9e784e42c404e31172e55…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 14 10:33:23 2020 +0200 ntdll: Use malloc() to allocate temporary filename buffers. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/ntdll/unix/file.c | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/dlls/ntdll/unix/file.c b/dlls/ntdll/unix/file.c index c003b08996..bf435f109f 100644 --- a/dlls/ntdll/unix/file.c +++ b/dlls/ntdll/unix/file.c @@ -1503,7 +1503,7 @@ static int get_file_info( const char *path, struct stat *st, ULONG *attr ) /* is a symbolic link and a directory, consider these "reparse points" */ if (S_ISDIR( st->st_mode )) *attr |= FILE_ATTRIBUTE_REPARSE_POINT; } - else if (S_ISDIR( st->st_mode ) && (parent_path = RtlAllocateHeap( GetProcessHeap(), 0, strlen(path) + 4 ))) + else if (S_ISDIR( st->st_mode ) && (parent_path = malloc( strlen(path) + 4 ))) { struct stat parent_st; @@ -1514,7 +1514,7 @@ static int get_file_info( const char *path, struct stat *st, ULONG *attr ) && (st->st_dev != parent_st.st_dev || st->st_ino == parent_st.st_ino)) *attr |= FILE_ATTRIBUTE_REPARSE_POINT; - RtlFreeHeap( GetProcessHeap(), 0, parent_path ); + free( parent_path ); } *attr |= get_file_attributes( st ); return ret; @@ -1858,8 +1858,7 @@ static unsigned int get_drives_info( struct file_identity info[MAX_DOS_DRIVES] ) struct stat st; unsigned int i; - if ((buffer = RtlAllocateHeap( GetProcessHeap(), 0, - strlen(config_dir) + sizeof("/dosdevices/a:") ))) + if ((buffer = malloc( strlen(config_dir) + sizeof("/dosdevices/a:") ))) { strcpy( buffer, config_dir ); strcat( buffer, "/dosdevices/a:" ); @@ -1880,7 +1879,7 @@ static unsigned int get_drives_info( struct file_identity info[MAX_DOS_DRIVES] ) cache[i].ino = 0; } } - RtlFreeHeap( GetProcessHeap(), 0, buffer ); + free( buffer ); } last_update = now; } @@ -1911,7 +1910,7 @@ static int find_dos_device( const char *path ) while (len > 1 && path[len - 1] == '/') len--; /* make a copy of the path */ - if (!(buffer = RtlAllocateHeap( GetProcessHeap(), 0, len + 1 ))) return -1; + if (!(buffer = malloc( len + 1 ))) return -1; memcpy( buffer, path, len ); buffer[len] = 0; @@ -1928,7 +1927,7 @@ static int find_dos_device( const char *path ) if (len == 1) len = 0; /* preserve root slash in returned path */ TRACE( "%s -> drive %c:, root=%s, name=%s\n", debugstr_a(path), 'A' + drive, debugstr_a(buffer), debugstr_a(path + len)); - RtlFreeHeap( GetProcessHeap(), 0, buffer ); + free( buffer ); return drive; } } @@ -1938,7 +1937,7 @@ static int find_dos_device( const char *path ) while (path[len - 1] == '/') len--; buffer[len] = 0; } - RtlFreeHeap( GetProcessHeap(), 0, buffer ); + free( buffer ); return -1; } @@ -3467,13 +3466,13 @@ static NTSTATUS unmount_device( HANDLE handle ) #else static const char umount[] = "umount >/dev/null 2>&1 "; #endif - char *cmd = RtlAllocateHeap( GetProcessHeap(), 0, strlen(mount_point)+sizeof(umount)); + char *cmd = malloc( strlen(mount_point)+sizeof(umount)); if (cmd) { strcpy( cmd, umount ); strcat( cmd, mount_point ); system( cmd ); - RtlFreeHeap( GetProcessHeap(), 0, cmd ); + free( cmd ); #ifdef linux /* umount will fail to release the loop device since we still have a handle to it, so we release it here */ @@ -3993,7 +3992,7 @@ NTSTATUS WINAPI NtQueryInformationFile( HANDLE handle, IO_STATUS_BLOCK *io, char *tmpbuf; ULONG size = info->MaximumMessageSize ? info->MaximumMessageSize : 0x10000; if (size > 0x10000) size = 0x10000; - if ((tmpbuf = RtlAllocateHeap( GetProcessHeap(), 0, size ))) + if ((tmpbuf = malloc( size ))) { if (!server_get_unix_fd( handle, FILE_READ_DATA, &fd, &needs_close, NULL, NULL )) { @@ -4002,7 +4001,7 @@ NTSTATUS WINAPI NtQueryInformationFile( HANDLE handle, IO_STATUS_BLOCK *io, info->NextMessageSize = (res >= 0) ? res : MAILSLOT_NO_MESSAGE; if (needs_close) close( fd ); } - RtlFreeHeap( GetProcessHeap(), 0, tmpbuf ); + free( tmpbuf ); } } }
1
0
0
0
Alexandre Julliard : ntdll: Use malloc() to allocate the directory cache.
by Alexandre Julliard
14 Jul '20
14 Jul '20
Module: wine Branch: master Commit: e9abe3f7395a81dcb6d192b48bd54848dc4f2b5e URL:
https://source.winehq.org/git/wine.git/?a=commit;h=e9abe3f7395a81dcb6d192b4…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 14 10:33:18 2020 +0200 ntdll: Use malloc() to allocate the directory cache. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/ntdll/unix/file.c | 46 ++++++++++++++-------------------------------- 1 file changed, 14 insertions(+), 32 deletions(-) diff --git a/dlls/ntdll/unix/file.c b/dlls/ntdll/unix/file.c index cee9800fc8..c003b08996 100644 --- a/dlls/ntdll/unix/file.c +++ b/dlls/ntdll/unix/file.c @@ -379,8 +379,7 @@ static void *get_dir_data_space( struct dir_data *data, unsigned int size ) { unsigned int new_size = buffer ? buffer->size * 2 : dir_data_buffer_initial_size; if (new_size < size) new_size = size; - if (!(buffer = RtlAllocateHeap( GetProcessHeap(), 0, - offsetof( struct dir_data_buffer, data[new_size] ) ))) return NULL; + if (!(buffer = malloc( offsetof( struct dir_data_buffer, data[new_size] ) ))) return NULL; buffer->pos = 0; buffer->size = new_size; buffer->next = data->buffer; @@ -419,9 +418,7 @@ static BOOL add_dir_data_names( struct dir_data *data, const WCHAR *long_name, { unsigned int new_size = max( data->size * 2, dir_data_names_initial_size ); - if (names) names = RtlReAllocateHeap( GetProcessHeap(), 0, names, new_size * sizeof(*names) ); - else names = RtlAllocateHeap( GetProcessHeap(), 0, new_size * sizeof(*names) ); - if (!names) return FALSE; + if (!(names = realloc( names, new_size * sizeof(*names) ))) return FALSE; data->size = new_size; data->names = names; } @@ -448,10 +445,10 @@ static void free_dir_data( struct dir_data *data ) for (buffer = data->buffer; buffer; buffer = next) { next = buffer->next; - RtlFreeHeap( GetProcessHeap(), 0, buffer ); + free( buffer ); } - RtlFreeHeap( GetProcessHeap(), 0, data->names ); - RtlFreeHeap( GetProcessHeap(), 0, data ); + free( data->names ); + free( data ); } @@ -468,8 +465,7 @@ static struct list dir_queue = LIST_INIT( dir_queue ); static NTSTATUS add_dir_to_queue( const char *name ) { int len = strlen( name ) + 1; - struct dir_name *dir = RtlAllocateHeap( GetProcessHeap(), 0, - FIELD_OFFSET( struct dir_name, name[len] )); + struct dir_name *dir = malloc( offsetof( struct dir_name, name[len] )); if (!dir) return STATUS_NO_MEMORY; strcpy( dir->name, name ); list_add_tail( &dir_queue, &dir->entry ); @@ -484,7 +480,7 @@ static NTSTATUS next_dir_in_queue( char *name ) struct dir_name *dir = LIST_ENTRY( head, struct dir_name, entry ); strcpy( name, dir->name ); list_remove( &dir->entry ); - RtlFreeHeap( GetProcessHeap(), 0, dir ); + free( dir ); return STATUS_SUCCESS; } return STATUS_OBJECT_NAME_NOT_FOUND; @@ -498,7 +494,7 @@ static void flush_dir_queue(void) { struct dir_name *dir = LIST_ENTRY( head, struct dir_name, entry ); list_remove( &dir->entry ); - RtlFreeHeap( GetProcessHeap(), 0, dir ); + free( dir ); } } @@ -2293,8 +2289,7 @@ static NTSTATUS init_cached_dir_data( struct dir_data **data_ret, int fd, const NTSTATUS status; unsigned int i; - if (!(data = RtlAllocateHeap( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*data) ))) - return STATUS_NO_MEMORY; + if (!(data = calloc( 1, sizeof(*data) ))) return STATUS_NO_MEMORY; if ((status = read_directory_data( data, fd, mask ))) { @@ -2310,18 +2305,9 @@ static NTSTATUS init_cached_dir_data( struct dir_data **data_ret, int fd, const if (data->count) { - /* release unused space */ - if (data->buffer) - RtlReAllocateHeap( GetProcessHeap(), HEAP_REALLOC_IN_PLACE_ONLY, data->buffer, - offsetof( struct dir_data_buffer, data[data->buffer->pos] )); - if (data->count < data->size) - RtlReAllocateHeap( GetProcessHeap(), HEAP_REALLOC_IN_PLACE_ONLY, data->names, - data->count * sizeof(*data->names) ); - if (!fstat( fd, &st )) - { - data->id.dev = st.st_dev; - data->id.ino = st.st_ino; - } + fstat( fd, &st ); + data->id.dev = st.st_dev; + data->id.ino = st.st_ino; } TRACE( "mask %s found %u files\n", debugstr_us( mask ), data->count ); @@ -2372,14 +2358,10 @@ static NTSTATUS get_cached_dir_data( HANDLE handle, struct dir_data **data_ret, if (entry >= dir_data_cache_size) { unsigned int size = max( dir_data_cache_initial_size, max( dir_data_cache_size * 2, entry + 1 ) ); - struct dir_data **new_cache; + struct dir_data **new_cache = realloc( dir_data_cache, size * sizeof(*new_cache) ); - if (dir_data_cache) - new_cache = RtlReAllocateHeap( GetProcessHeap(), HEAP_ZERO_MEMORY, dir_data_cache, - size * sizeof(*new_cache) ); - else - new_cache = RtlAllocateHeap( GetProcessHeap(), HEAP_ZERO_MEMORY, size * sizeof(*new_cache) ); if (!new_cache) return STATUS_NO_MEMORY; + memset( new_cache + dir_data_cache_size, 0, (size - dir_data_cache_size) * sizeof(*new_cache) ); dir_data_cache = new_cache; dir_data_cache_size = size; }
1
0
0
0
Alexandre Julliard : ntdll: Use malloc() to allocate the buffer in get_device_mount_point().
by Alexandre Julliard
14 Jul '20
14 Jul '20
Module: wine Branch: master Commit: b2d38f15314e39eeb17ec5e02bc6fe78b26420e3 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=b2d38f15314e39eeb17ec5e0…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 14 10:33:05 2020 +0200 ntdll: Use malloc() to allocate the buffer in get_device_mount_point(). Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/ntdll/unix/file.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/dlls/ntdll/unix/file.c b/dlls/ntdll/unix/file.c index 0b9ad4bc22..cee9800fc8 100644 --- a/dlls/ntdll/unix/file.c +++ b/dlls/ntdll/unix/file.c @@ -947,8 +947,7 @@ static char *get_device_mount_point( dev_t dev ) if (device && !stat( device, &st ) && S_ISBLK(st.st_mode) && st.st_rdev == dev) { - ret = RtlAllocateHeap( GetProcessHeap(), 0, strlen(entry->mnt_dir) + 1 ); - if (ret) strcpy( ret, entry->mnt_dir ); + ret = strdup( entry->mnt_dir ); break; } } @@ -968,8 +967,7 @@ static char *get_device_mount_point( dev_t dev ) if (stat( entry[i].f_mntfromname, &st ) == -1) continue; if (S_ISBLK(st.st_mode) && st.st_rdev == dev) { - ret = RtlAllocateHeap( GetProcessHeap(), 0, strlen(entry[i].f_mntonname) + 1 ); - if (ret) strcpy( ret, entry[i].f_mntonname ); + ret = strdup( entry[i].f_mntonname ); break; } } @@ -1089,11 +1087,11 @@ static int get_dir_case_sensitivity_attr( const char *dir ) attr.volattr = ATTR_VOL_INFO|ATTR_VOL_CAPABILITIES; if (getattrlist( mntpoint, &attr, &caps, sizeof(caps), 0 ) < 0) { - RtlFreeHeap( GetProcessHeap(), 0, mntpoint ); + free( mntpoint ); add_fs_cache( get_fsid.dev, get_fsid.fsid, TRUE ); return TRUE; } - RtlFreeHeap( GetProcessHeap(), 0, mntpoint ); + free( mntpoint ); if (caps.size == sizeof(caps) && (caps.caps.valid[VOL_CAPABILITIES_FORMAT] & (VOL_CAP_FMT_CASE_SENSITIVE | VOL_CAP_FMT_CASE_PRESERVING)) == @@ -3500,7 +3498,7 @@ static NTSTATUS unmount_device( HANDLE handle ) if (major(st.st_rdev) == LOOP_MAJOR) ioctl( unix_fd, 0x4c01 /*LOOP_CLR_FD*/, 0 ); #endif } - RtlFreeHeap( GetProcessHeap(), 0, mount_point ); + free( mount_point ); } } if (needs_close) close( unix_fd );
1
0
0
0
Alexandre Julliard : ntdll: Use malloc() to allocate the buffer in server_get_unix_name().
by Alexandre Julliard
14 Jul '20
14 Jul '20
Module: wine Branch: master Commit: 9ec5be2cea3af2ca631ef0dce3208965058abb59 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=9ec5be2cea3af2ca631ef0dc…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 14 10:32:55 2020 +0200 ntdll: Use malloc() to allocate the buffer in server_get_unix_name(). Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/ntdll/unix/file.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/dlls/ntdll/unix/file.c b/dlls/ntdll/unix/file.c index 51a7c9b5d1..0b9ad4bc22 100644 --- a/dlls/ntdll/unix/file.c +++ b/dlls/ntdll/unix/file.c @@ -1777,8 +1777,7 @@ static NTSTATUS server_get_unix_name( HANDLE handle, char **unix_name ) for (;;) { - name = RtlAllocateHeap( GetProcessHeap(), 0, size + 1 ); - if (!name) return STATUS_NO_MEMORY; + if (!(name = malloc( size + 1 ))) return STATUS_NO_MEMORY; SERVER_START_REQ( get_handle_unix_name ) { @@ -1795,7 +1794,7 @@ static NTSTATUS server_get_unix_name( HANDLE handle, char **unix_name ) *unix_name = name; break; } - RtlFreeHeap( GetProcessHeap(), 0, name ); + free( name ); if (ret != STATUS_BUFFER_OVERFLOW) break; } return ret; @@ -1962,7 +1961,7 @@ static NTSTATUS get_mountmgr_fs_info( HANDLE handle, int fd, struct mountmgr_uni if ((status = server_get_unix_name( handle, &unix_name ))) return status; letter = find_dos_device( unix_name ); - RtlFreeHeap( GetProcessHeap(), 0, unix_name ); + free( unix_name ); if (letter == -1) { @@ -3985,7 +3984,7 @@ NTSTATUS WINAPI NtQueryInformationFile( HANDLE handle, IO_STATUS_BLOCK *io, info->AlignmentInformation.AlignmentRequirement = 1; /* FIXME */ io->u.Status = fill_name_info( unix_name, &info->NameInformation, &name_len ); - RtlFreeHeap( GetProcessHeap(), 0, unix_name ); + free( unix_name ); io->Information = FIELD_OFFSET(FILE_ALL_INFORMATION, NameInformation.FileName) + name_len; } } @@ -4037,7 +4036,7 @@ NTSTATUS WINAPI NtQueryInformationFile( HANDLE handle, IO_STATUS_BLOCK *io, { LONG name_len = len - FIELD_OFFSET(FILE_NAME_INFORMATION, FileName); io->u.Status = fill_name_info( unix_name, info, &name_len ); - RtlFreeHeap( GetProcessHeap(), 0, unix_name ); + free( unix_name ); io->Information = FIELD_OFFSET(FILE_NAME_INFORMATION, FileName) + name_len; } } @@ -4072,7 +4071,7 @@ NTSTATUS WINAPI NtQueryInformationFile( HANDLE handle, IO_STATUS_BLOCK *io, info->EndOfFile = std.EndOfFile; info->FileAttributes = basic.FileAttributes; } - RtlFreeHeap( GetProcessHeap(), 0, unix_name ); + free( unix_name ); } } break; @@ -6395,7 +6394,7 @@ NTSTATUS WINAPI NtQueryObject( HANDLE handle, OBJECT_INFORMATION_CLASS info_clas if (used_len) *used_len = sizeof(*p) + size; free( nt_name ); } - RtlFreeHeap( GetProcessHeap(), 0, unix_name ); + free( unix_name ); break; } else if (status != STATUS_OBJECT_TYPE_MISMATCH) break;
1
0
0
0
Alexandre Julliard : ntdll: Use malloc() to allocate the buffer in nt_to_unix_file_name() and related helpers.
by Alexandre Julliard
14 Jul '20
14 Jul '20
Module: wine Branch: master Commit: 1037bf54bf056090855c3e2dc8c70193f18a243e URL:
https://source.winehq.org/git/wine.git/?a=commit;h=1037bf54bf056090855c3e2d…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 14 10:32:31 2020 +0200 ntdll: Use malloc() to allocate the buffer in nt_to_unix_file_name() and related helpers. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/ntdll/unix/file.c | 63 +++++++++++++++++------------------------------ dlls/ntdll/unix/loader.c | 2 +- dlls/ntdll/unix/process.c | 2 +- 3 files changed, 25 insertions(+), 42 deletions(-) Diff:
https://source.winehq.org/git/wine.git/?a=commitdiff;h=1037bf54bf056090855c…
1
0
0
0
Alexandre Julliard : ntdll: Use malloc() to allocate the buffer in unix_to_nt_file_name().
by Alexandre Julliard
14 Jul '20
14 Jul '20
Module: wine Branch: master Commit: ef01f6ac1338dcb100bc2ff5cd1cf360d7d8520f URL:
https://source.winehq.org/git/wine.git/?a=commit;h=ef01f6ac1338dcb100bc2ff5…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 14 10:32:04 2020 +0200 ntdll: Use malloc() to allocate the buffer in unix_to_nt_file_name(). Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/ntdll/unix/env.c | 4 ++-- dlls/ntdll/unix/file.c | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/dlls/ntdll/unix/env.c b/dlls/ntdll/unix/env.c index 039e5475fe..74cea11be5 100644 --- a/dlls/ntdll/unix/env.c +++ b/dlls/ntdll/unix/env.c @@ -1064,7 +1064,7 @@ static void add_path_var( WCHAR *env, SIZE_T *pos, const char *name, const char { if (unix_to_nt_file_name( path, &nt_name )) return; append_envW( env, pos, name, nt_name ); - RtlFreeHeap( GetProcessHeap(), 0, nt_name ); + free( nt_name ); } } @@ -1217,7 +1217,7 @@ void CDECL get_initial_directory( UNICODE_STRING *dir ) memcpy( dir->Buffer, nt_name, dir->Length ); dir->Buffer[1] = '\\'; } - RtlFreeHeap( GetProcessHeap(), 0, nt_name ); + free( nt_name ); } } diff --git a/dlls/ntdll/unix/file.c b/dlls/ntdll/unix/file.c index 085052225d..79b87cf99b 100644 --- a/dlls/ntdll/unix/file.c +++ b/dlls/ntdll/unix/file.c @@ -1834,7 +1834,7 @@ static NTSTATUS fill_name_info( const char *unix_name, FILE_NAME_INFORMATION *in else *name_len = info->FileNameLength; memcpy( info->FileName, ptr, *name_len ); - RtlFreeHeap( GetProcessHeap(), 0, nt_name ); + free( nt_name ); } return status; @@ -3447,8 +3447,7 @@ NTSTATUS unix_to_nt_file_name( const char *name, WCHAR **nt ) else if (status != STATUS_OBJECT_PATH_NOT_FOUND) return status; lenW = wcslen( prefix ); - if (!(buffer = RtlAllocateHeap( GetProcessHeap(), 0, (lenA + lenW + 1) * sizeof(WCHAR) ))) - return STATUS_NO_MEMORY; + if (!(buffer = malloc( (lenA + lenW + 1) * sizeof(WCHAR) ))) return STATUS_NO_MEMORY; memcpy( buffer, prefix, lenW * sizeof(WCHAR) ); lenW += ntdll_umbstowcs( path, lenA, buffer + lenW, lenA ); buffer[lenW] = 0; @@ -3474,7 +3473,7 @@ NTSTATUS CDECL wine_unix_to_nt_file_name( const char *name, WCHAR *buffer, SIZE_ if (*size > wcslen(nt_name)) wcscpy( buffer, nt_name ); else status = STATUS_BUFFER_TOO_SMALL; *size = wcslen(nt_name) + 1; - RtlFreeHeap( GetProcessHeap(), 0, nt_name ); + free( nt_name ); } return status; } @@ -6411,7 +6410,7 @@ NTSTATUS WINAPI NtQueryObject( HANDLE handle, OBJECT_INFORMATION_CLASS info_clas wcscpy( p->Name.Buffer, nt_name ); } if (used_len) *used_len = sizeof(*p) + size; - RtlFreeHeap( GetProcessHeap(), 0, nt_name ); + free( nt_name ); } RtlFreeHeap( GetProcessHeap(), 0, unix_name ); break;
1
0
0
0
Brendan Shanks : winevulkan: Export VK_KHR_get_surface_capabilities2 functions from vulkan-1.
by Alexandre Julliard
14 Jul '20
14 Jul '20
Module: wine Branch: master Commit: 314cd9cdd542db658ce7a01ef0a7621fc2d9d335 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=314cd9cdd542db658ce7a01e…
Author: Brendan Shanks <bshanks(a)codeweavers.com> Date: Mon Jul 13 11:45:30 2020 -0700 winevulkan: Export VK_KHR_get_surface_capabilities2 functions from vulkan-1. Signed-off-by: Brendan Shanks <bshanks(a)codeweavers.com> Signed-off-by: Liam Middlebrook <lmiddlebrook(a)nvidia.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/vulkan-1/vulkan-1.spec | 2 ++ dlls/winevulkan/make_vulkan | 1 + dlls/winevulkan/vulkan_thunks.c | 4 ++-- dlls/winevulkan/winevulkan.spec | 2 ++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dlls/vulkan-1/vulkan-1.spec b/dlls/vulkan-1/vulkan-1.spec index e8fb64d82b..026bd99dec 100644 --- a/dlls/vulkan-1/vulkan-1.spec +++ b/dlls/vulkan-1/vulkan-1.spec @@ -179,7 +179,9 @@ @ stdcall vkGetPhysicalDeviceQueueFamilyProperties2(ptr ptr ptr) winevulkan.wine_vkGetPhysicalDeviceQueueFamilyProperties2 @ stdcall vkGetPhysicalDeviceSparseImageFormatProperties(ptr long long long long long ptr ptr) winevulkan.wine_vkGetPhysicalDeviceSparseImageFormatProperties @ stdcall vkGetPhysicalDeviceSparseImageFormatProperties2(ptr ptr ptr ptr) winevulkan.wine_vkGetPhysicalDeviceSparseImageFormatProperties2 +@ stdcall vkGetPhysicalDeviceSurfaceCapabilities2KHR(ptr ptr ptr) winevulkan.wine_vkGetPhysicalDeviceSurfaceCapabilities2KHR @ stdcall vkGetPhysicalDeviceSurfaceCapabilitiesKHR(ptr int64 ptr) winevulkan.wine_vkGetPhysicalDeviceSurfaceCapabilitiesKHR +@ stdcall vkGetPhysicalDeviceSurfaceFormats2KHR(ptr ptr ptr ptr) winevulkan.wine_vkGetPhysicalDeviceSurfaceFormats2KHR @ stdcall vkGetPhysicalDeviceSurfaceFormatsKHR(ptr int64 ptr ptr) winevulkan.wine_vkGetPhysicalDeviceSurfaceFormatsKHR @ stdcall vkGetPhysicalDeviceSurfacePresentModesKHR(ptr int64 ptr ptr) winevulkan.wine_vkGetPhysicalDeviceSurfacePresentModesKHR @ stdcall vkGetPhysicalDeviceSurfaceSupportKHR(ptr long int64 ptr) winevulkan.wine_vkGetPhysicalDeviceSurfaceSupportKHR diff --git a/dlls/winevulkan/make_vulkan b/dlls/winevulkan/make_vulkan index b84eb39587..04b263e3e4 100755 --- a/dlls/winevulkan/make_vulkan +++ b/dlls/winevulkan/make_vulkan @@ -130,6 +130,7 @@ UNSUPPORTED_EXTENSIONS = [ CORE_EXTENSIONS = [ "VK_KHR_display", "VK_KHR_display_swapchain", + "VK_KHR_get_surface_capabilities2", "VK_KHR_surface", "VK_KHR_swapchain", "VK_KHR_win32_surface", diff --git a/dlls/winevulkan/vulkan_thunks.c b/dlls/winevulkan/vulkan_thunks.c index 94aa1e3fb7..06d79b8fae 100644 --- a/dlls/winevulkan/vulkan_thunks.c +++ b/dlls/winevulkan/vulkan_thunks.c @@ -4939,7 +4939,7 @@ static VkResult WINAPI wine_vkGetPhysicalDeviceSupportedFramebufferMixedSamplesC return physicalDevice->instance->funcs.p_vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV(physicalDevice->phys_dev, pCombinationCount, pCombinations); } -static VkResult WINAPI wine_vkGetPhysicalDeviceSurfaceCapabilities2KHR(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSurfaceInfo2KHR *pSurfaceInfo, VkSurfaceCapabilities2KHR *pSurfaceCapabilities) +VkResult WINAPI wine_vkGetPhysicalDeviceSurfaceCapabilities2KHR(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSurfaceInfo2KHR *pSurfaceInfo, VkSurfaceCapabilities2KHR *pSurfaceCapabilities) { #if defined(USE_STRUCT_CONVERSION) VkResult result; @@ -4962,7 +4962,7 @@ VkResult WINAPI wine_vkGetPhysicalDeviceSurfaceCapabilitiesKHR(VkPhysicalDevice return physicalDevice->instance->funcs.p_vkGetPhysicalDeviceSurfaceCapabilitiesKHR(physicalDevice->phys_dev, surface, pSurfaceCapabilities); } -static VkResult WINAPI wine_vkGetPhysicalDeviceSurfaceFormats2KHR(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSurfaceInfo2KHR *pSurfaceInfo, uint32_t *pSurfaceFormatCount, VkSurfaceFormat2KHR *pSurfaceFormats) +VkResult WINAPI wine_vkGetPhysicalDeviceSurfaceFormats2KHR(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSurfaceInfo2KHR *pSurfaceInfo, uint32_t *pSurfaceFormatCount, VkSurfaceFormat2KHR *pSurfaceFormats) { #if defined(USE_STRUCT_CONVERSION) VkResult result; diff --git a/dlls/winevulkan/winevulkan.spec b/dlls/winevulkan/winevulkan.spec index 44ac8c6d2f..383e6b9b8f 100644 --- a/dlls/winevulkan/winevulkan.spec +++ b/dlls/winevulkan/winevulkan.spec @@ -182,7 +182,9 @@ @ stdcall -private wine_vkGetPhysicalDeviceQueueFamilyProperties2(ptr ptr ptr) @ stdcall -private wine_vkGetPhysicalDeviceSparseImageFormatProperties(ptr long long long long long ptr ptr) @ stdcall -private wine_vkGetPhysicalDeviceSparseImageFormatProperties2(ptr ptr ptr ptr) +@ stdcall -private wine_vkGetPhysicalDeviceSurfaceCapabilities2KHR(ptr ptr ptr) @ stdcall -private wine_vkGetPhysicalDeviceSurfaceCapabilitiesKHR(ptr int64 ptr) +@ stdcall -private wine_vkGetPhysicalDeviceSurfaceFormats2KHR(ptr ptr ptr ptr) @ stdcall -private wine_vkGetPhysicalDeviceSurfaceFormatsKHR(ptr int64 ptr ptr) @ stdcall -private wine_vkGetPhysicalDeviceSurfacePresentModesKHR(ptr int64 ptr ptr) @ stdcall -private wine_vkGetPhysicalDeviceSurfaceSupportKHR(ptr long int64 ptr)
1
0
0
0
Alistair Leslie-Hughes : ws2_32: Trace SIO_IDEAL_SEND_BACKLOG_* calls.
by Alexandre Julliard
14 Jul '20
14 Jul '20
Module: wine Branch: master Commit: da6386df8b759672e051304711bb6a5dc6ce9bd2 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=da6386df8b759672e0513047…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Tue Jul 14 09:03:47 2020 +1000 ws2_32: Trace SIO_IDEAL_SEND_BACKLOG_* calls. Signed-off-by: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/ws2_32/socket.c | 4 ++-- include/ws2ipdef.h | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c index 69fbb37af2..d7eddde44d 100644 --- a/dlls/ws2_32/socket.c +++ b/dlls/ws2_32/socket.c @@ -4554,8 +4554,8 @@ static const char *debugstr_wsaioctl(DWORD code) IOCTL_NAME(WS_SIO_GET_INTERFACE_LIST); /* IOCTL_NAME(WS_SIO_GET_INTERFACE_LIST_EX); */ IOCTL_NAME(WS_SIO_GET_QOS); - /* IOCTL_NAME(WS_SIO_IDEAL_SEND_BACKLOG_CHANGE); - IOCTL_NAME(WS_SIO_IDEAL_SEND_BACKLOG_QUERY); */ + IOCTL_NAME(WS_SIO_IDEAL_SEND_BACKLOG_CHANGE); + IOCTL_NAME(WS_SIO_IDEAL_SEND_BACKLOG_QUERY); IOCTL_NAME(WS_SIO_KEEPALIVE_VALS); IOCTL_NAME(WS_SIO_MULTIPOINT_LOOPBACK); IOCTL_NAME(WS_SIO_MULTICAST_SCOPE); diff --git a/include/ws2ipdef.h b/include/ws2ipdef.h index 4cae361e5f..fc46580496 100644 --- a/include/ws2ipdef.h +++ b/include/ws2ipdef.h @@ -282,6 +282,14 @@ typedef struct WS(in_pktinfo) { #define SS_PORT(ssp) (((PSOCKADDR_IN)(ssp))->sin_port) +#ifndef USE_WS_PREFIX +#define SIO_IDEAL_SEND_BACKLOG_CHANGE _IO ('t', 122) +#define SIO_IDEAL_SEND_BACKLOG_QUERY _IOR('t', 123, ULONG) +#else +#define WS_SIO_IDEAL_SEND_BACKLOG_CHANGE WS__IO ('t', 122) +#define WS_SIO_IDEAL_SEND_BACKLOG_QUERY WS__IOR('t', 123, ULONG) +#endif + #ifdef __cplusplus extern "C" { #endif
1
0
0
0
← Newer
1
...
50
51
52
53
54
55
56
...
83
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
Results per page:
10
25
50
100
200