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
July 2023
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
1 participants
865 discussions
Start a n
N
ew thread
Davide Beatrici : winepulse: Move session_init_vols into mmdevapi.
by Alexandre Julliard
04 Jul '23
04 Jul '23
Module: wine Branch: master Commit: 8247b00f82c0e4334d5b138d3b643694915ffc65 URL:
https://gitlab.winehq.org/wine/wine/-/commit/8247b00f82c0e4334d5b138d3b6436…
Author: Davide Beatrici <git(a)davidebeatrici.dev> Date: Sun Jul 2 04:37:31 2023 +0200 winepulse: Move session_init_vols into mmdevapi. --- dlls/mmdevapi/session.c | 21 +++++++++++++++++++++ dlls/winepulse.drv/mmdevdrv.c | 21 +-------------------- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/dlls/mmdevapi/session.c b/dlls/mmdevapi/session.c index 6762dad255e..d8e115bca31 100644 --- a/dlls/mmdevapi/session.c +++ b/dlls/mmdevapi/session.c @@ -551,6 +551,27 @@ const ISimpleAudioVolumeVtbl SimpleAudioVolume_Vtbl = simplevolume_GetMute }; +void session_init_vols(struct audio_session *session, UINT channels) +{ + if (session->channel_count < channels) { + UINT i; + + if (session->channel_vols) + session->channel_vols = HeapReAlloc(GetProcessHeap(), 0, session->channel_vols, + sizeof(float) * channels); + else + session->channel_vols = HeapAlloc(GetProcessHeap(), 0, sizeof(float) * channels); + + if (!session->channel_vols) + return; + + for (i = session->channel_count; i < channels; i++) + session->channel_vols[i] = 1.f; + + session->channel_count = channels; + } +} + struct audio_session_wrapper *session_wrapper_create(struct audio_client *client) { struct audio_session_wrapper *ret; diff --git a/dlls/winepulse.drv/mmdevdrv.c b/dlls/winepulse.drv/mmdevdrv.c index dc0f1562d6d..8dbbd61a5bd 100644 --- a/dlls/winepulse.drv/mmdevdrv.c +++ b/dlls/winepulse.drv/mmdevdrv.c @@ -399,26 +399,7 @@ HRESULT WINAPI AUDDRV_GetAudioEndpoint(GUID *guid, IMMDevice *dev, IAudioClient return S_OK; } -static void session_init_vols(AudioSession *session, UINT channels) -{ - if (session->channel_count < channels) { - UINT i; - - if (session->channel_vols) - session->channel_vols = HeapReAlloc(GetProcessHeap(), 0, - session->channel_vols, sizeof(float) * channels); - else - session->channel_vols = HeapAlloc(GetProcessHeap(), 0, - sizeof(float) * channels); - if (!session->channel_vols) - return; - - for(i = session->channel_count; i < channels; ++i) - session->channel_vols[i] = 1.f; - - session->channel_count = channels; - } -} +extern void session_init_vols(AudioSession *session, UINT channels); static AudioSession *create_session(const GUID *guid, IMMDevice *device, UINT num_channels)
1
0
0
0
Alexandre Julliard : shlwapi: Use nameless unions/structs.
by Alexandre Julliard
04 Jul '23
04 Jul '23
Module: wine Branch: master Commit: 09c7cc1e365090474dea676c0b77a83f0568ef6b URL:
https://gitlab.winehq.org/wine/wine/-/commit/09c7cc1e365090474dea676c0b77a8…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 4 12:59:36 2023 +0200 shlwapi: Use nameless unions/structs. --- dlls/shlwapi/istream.c | 2 -- dlls/shlwapi/stopwatch.c | 2 -- dlls/shlwapi/string.c | 46 ++++++++++++++++++++++------------------------ 3 files changed, 22 insertions(+), 28 deletions(-) diff --git a/dlls/shlwapi/istream.c b/dlls/shlwapi/istream.c index 37fa4c6ddcc..b0087209e75 100644 --- a/dlls/shlwapi/istream.c +++ b/dlls/shlwapi/istream.c @@ -21,8 +21,6 @@ #include <string.h> #define COBJMACROS -#define NONAMELESSUNION - #include "windef.h" #include "winbase.h" #include "winerror.h" diff --git a/dlls/shlwapi/stopwatch.c b/dlls/shlwapi/stopwatch.c index 68ffab944ea..8a5d07b14e4 100644 --- a/dlls/shlwapi/stopwatch.c +++ b/dlls/shlwapi/stopwatch.c @@ -27,8 +27,6 @@ #include <string.h> #include <stdlib.h> -#define NONAMELESSUNION - #include "windef.h" #include "winbase.h" #include "winreg.h" diff --git a/dlls/shlwapi/string.c b/dlls/shlwapi/string.c index 2c894198239..b8bf0bb227c 100644 --- a/dlls/shlwapi/string.c +++ b/dlls/shlwapi/string.c @@ -24,8 +24,6 @@ #include <stdio.h> #include <string.h> -#define NONAMELESSUNION - #include "windef.h" #include "winbase.h" #define NO_SHLWAPI_REG @@ -220,16 +218,16 @@ HRESULT WINAPI StrRetToBufA (LPSTRRET src, const ITEMIDLIST *pidl, LPSTR dest, U switch (src->uType) { case STRRET_WSTR: - WideCharToMultiByte(CP_ACP, 0, src->u.pOleStr, -1, dest, len, NULL, NULL); - CoTaskMemFree(src->u.pOleStr); + WideCharToMultiByte(CP_ACP, 0, src->pOleStr, -1, dest, len, NULL, NULL); + CoTaskMemFree(src->pOleStr); break; case STRRET_CSTR: - lstrcpynA(dest, src->u.cStr, len); + lstrcpynA(dest, src->cStr, len); break; case STRRET_OFFSET: - lstrcpynA(dest, ((LPCSTR)&pidl->mkid)+src->u.uOffset, len); + lstrcpynA(dest, ((LPCSTR)&pidl->mkid)+src->uOffset, len); break; default: @@ -263,12 +261,12 @@ HRESULT WINAPI StrRetToBufW (LPSTRRET src, const ITEMIDLIST *pidl, LPWSTR dest, switch (src->uType) { case STRRET_WSTR: { size_t dst_len; - if (!src->u.pOleStr) + if (!src->pOleStr) return E_FAIL; - dst_len = lstrlenW(src->u.pOleStr); - memcpy(dest, src->u.pOleStr, min(dst_len, len-1) * sizeof(WCHAR)); + dst_len = lstrlenW(src->pOleStr); + memcpy(dest, src->pOleStr, min(dst_len, len-1) * sizeof(WCHAR)); dest[min(dst_len, len-1)] = 0; - CoTaskMemFree(src->u.pOleStr); + CoTaskMemFree(src->pOleStr); if (len <= dst_len) { dest[0] = 0; @@ -278,14 +276,14 @@ HRESULT WINAPI StrRetToBufW (LPSTRRET src, const ITEMIDLIST *pidl, LPWSTR dest, } case STRRET_CSTR: - if (!MultiByteToWideChar( CP_ACP, 0, src->u.cStr, -1, dest, len )) + if (!MultiByteToWideChar( CP_ACP, 0, src->cStr, -1, dest, len )) dest[len-1] = 0; break; case STRRET_OFFSET: if (pidl) { - if (!MultiByteToWideChar( CP_ACP, 0, ((LPCSTR)&pidl->mkid)+src->u.uOffset, -1, + if (!MultiByteToWideChar( CP_ACP, 0, ((LPCSTR)&pidl->mkid)+src->uOffset, -1, dest, len )) dest[len-1] = 0; } @@ -320,16 +318,16 @@ HRESULT WINAPI StrRetToStrA(LPSTRRET lpStrRet, const ITEMIDLIST *pidl, LPSTR *pp switch (lpStrRet->uType) { case STRRET_WSTR: - hRet = _SHStrDupAW(lpStrRet->u.pOleStr, ppszName); - CoTaskMemFree(lpStrRet->u.pOleStr); + hRet = _SHStrDupAW(lpStrRet->pOleStr, ppszName); + CoTaskMemFree(lpStrRet->pOleStr); break; case STRRET_CSTR: - hRet = _SHStrDupAA(lpStrRet->u.cStr, ppszName); + hRet = _SHStrDupAA(lpStrRet->cStr, ppszName); break; case STRRET_OFFSET: - hRet = _SHStrDupAA(((LPCSTR)&pidl->mkid) + lpStrRet->u.uOffset, ppszName); + hRet = _SHStrDupAA(((LPCSTR)&pidl->mkid) + lpStrRet->uOffset, ppszName); break; default: @@ -351,16 +349,16 @@ HRESULT WINAPI StrRetToStrW(LPSTRRET lpStrRet, const ITEMIDLIST *pidl, LPWSTR *p switch (lpStrRet->uType) { case STRRET_WSTR: - hRet = SHStrDupW(lpStrRet->u.pOleStr, ppszName); - CoTaskMemFree(lpStrRet->u.pOleStr); + hRet = SHStrDupW(lpStrRet->pOleStr, ppszName); + CoTaskMemFree(lpStrRet->pOleStr); break; case STRRET_CSTR: - hRet = SHStrDupA(lpStrRet->u.cStr, ppszName); + hRet = SHStrDupA(lpStrRet->cStr, ppszName); break; case STRRET_OFFSET: - hRet = SHStrDupA(((LPCSTR)&pidl->mkid) + lpStrRet->u.uOffset, ppszName); + hRet = SHStrDupA(((LPCSTR)&pidl->mkid) + lpStrRet->uOffset, ppszName); break; default: @@ -414,18 +412,18 @@ HRESULT WINAPI StrRetToBSTR(STRRET *lpStrRet, LPCITEMIDLIST pidl, BSTR* pBstrOut switch (lpStrRet->uType) { case STRRET_WSTR: - *pBstrOut = SysAllocString(lpStrRet->u.pOleStr); + *pBstrOut = SysAllocString(lpStrRet->pOleStr); if (*pBstrOut) hRet = S_OK; - CoTaskMemFree(lpStrRet->u.pOleStr); + CoTaskMemFree(lpStrRet->pOleStr); break; case STRRET_CSTR: - hRet = _SHStrDupAToBSTR(lpStrRet->u.cStr, pBstrOut); + hRet = _SHStrDupAToBSTR(lpStrRet->cStr, pBstrOut); break; case STRRET_OFFSET: - hRet = _SHStrDupAToBSTR(((LPCSTR)&pidl->mkid) + lpStrRet->u.uOffset, pBstrOut); + hRet = _SHStrDupAToBSTR(((LPCSTR)&pidl->mkid) + lpStrRet->uOffset, pBstrOut); break; default:
1
0
0
0
Alexandre Julliard : shell32/tests: Use nameless unions/structs.
by Alexandre Julliard
04 Jul '23
04 Jul '23
Module: wine Branch: master Commit: dd1625476f11327df6891463501d12900ddbfb32 URL:
https://gitlab.winehq.org/wine/wine/-/commit/dd1625476f11327df6891463501d12…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 4 12:59:23 2023 +0200 shell32/tests: Use nameless unions/structs. --- dlls/shell32/tests/shelldispatch.c | 3 --- dlls/shell32/tests/shellole.c | 3 +-- dlls/shell32/tests/shfldr_special.c | 9 +++------ dlls/shell32/tests/shlexec.c | 6 +++--- dlls/shell32/tests/shlfolder.c | 10 +++++----- dlls/shell32/tests/string.c | 8 ++++---- 6 files changed, 16 insertions(+), 23 deletions(-) diff --git a/dlls/shell32/tests/shelldispatch.c b/dlls/shell32/tests/shelldispatch.c index 67659f72345..7dfbd476372 100644 --- a/dlls/shell32/tests/shelldispatch.c +++ b/dlls/shell32/tests/shelldispatch.c @@ -19,9 +19,6 @@ */ #define COBJMACROS -#define NONAMELESSUNION -#define NONAMELESSSTRUCT - #include "shldisp.h" #include "shlobj.h" #include "shlwapi.h" diff --git a/dlls/shell32/tests/shellole.c b/dlls/shell32/tests/shellole.c index 4864d35ea9a..5efdb035859 100644 --- a/dlls/shell32/tests/shellole.c +++ b/dlls/shell32/tests/shellole.c @@ -18,7 +18,6 @@ #define COBJMACROS #define CONST_VTABLE -#define NONAMELESSUNION #include <stdio.h> #include <wine/test.h> @@ -117,7 +116,7 @@ static HRESULT WINAPI PropertyStorage_ReadMultiple(IPropertyStorage *This, ULONG ok(rgpropvar != NULL, "rgpropvar = NULL\n"); ok(rgpspec[0].ulKind == PRSPEC_PROPID, "rgpspec[0].ulKind = %ld\n", rgpspec[0].ulKind); - ok(rgpspec[0].u.propid == PID_CODEPAGE, "rgpspec[0].propid = %ld\n", rgpspec[0].u.propid); + ok(rgpspec[0].propid == PID_CODEPAGE, "rgpspec[0].propid = %ld\n", rgpspec[0].propid); rgpropvar[0].vt = VT_I2; rgpropvar[0].iVal = 1234; diff --git a/dlls/shell32/tests/shfldr_special.c b/dlls/shell32/tests/shfldr_special.c index 22749c231f3..61b6a9309bc 100644 --- a/dlls/shell32/tests/shfldr_special.c +++ b/dlls/shell32/tests/shfldr_special.c @@ -23,9 +23,6 @@ #include <stdio.h> #define COBJMACROS -#define NONAMELESSUNION -#define NONAMELESSSTRUCT - #define WIN32_LEAN_AND_MEAN #include <windows.h> #include "shellapi.h" @@ -233,10 +230,10 @@ if (0) hr = IShellFolder2_GetDefaultColumnState(folder, 6, &state); ok(broken(hr == E_NOTIMPL) || hr == E_INVALIDARG /* Win7 */, "got 0x%08lx\n", hr); - details.str.u.pOleStr = NULL; + details.str.pOleStr = NULL; hr = IShellFolder2_GetDetailsOf(folder, NULL, 0, &details); ok(hr == S_OK || broken(hr == E_NOTIMPL) /* W2K */, "got 0x%08lx\n", hr); - if (SHELL_OsIsUnicode()) SHFree(details.str.u.pOleStr); + if (SHELL_OsIsUnicode()) SHFree(details.str.pOleStr); /* test every column if method is implemented */ if (hr == S_OK) @@ -252,7 +249,7 @@ if (0) ok(details.fmt == LVCFMT_LEFT, "got 0x%x\n", details.fmt); /* can't be on w9x at this point, IShellFolder2 unsupported there, check present for running Wine with w9x setup */ - if (SHELL_OsIsUnicode()) SHFree(details.str.u.pOleStr); + if (SHELL_OsIsUnicode()) SHFree(details.str.pOleStr); hr = IShellFolder2_GetDefaultColumnState(folder, i, &state); ok(hr == S_OK, "got 0x%08lx\n", hr); diff --git a/dlls/shell32/tests/shlexec.c b/dlls/shell32/tests/shlexec.c index b84a96a2434..90e96b91586 100644 --- a/dlls/shell32/tests/shlexec.c +++ b/dlls/shell32/tests/shlexec.c @@ -611,7 +611,7 @@ static INT_PTR shell_execute_ex_(const char* file, int line, sei.lpClass=class; sei.hkeyClass=NULL; sei.dwHotKey=0; - U(sei).hIcon=NULL; + sei.hIcon=NULL; sei.hProcess=(HANDLE)0xdeadbeef; /* Out */ DeleteFileA(child_file); @@ -2400,7 +2400,7 @@ static void hook_WaitForInputIdle(DWORD (WINAPI *new_func)(HANDLE, DWORD)) /* Search for the correct imported module by walking the import descriptors */ import_descriptor = (PIMAGE_IMPORT_DESCRIPTOR)(base + import_directory_rva); - while (U(*import_descriptor).OriginalFirstThunk != 0) + while (import_descriptor->OriginalFirstThunk != 0) { char *import_module_name; @@ -2415,7 +2415,7 @@ static void hook_WaitForInputIdle(DWORD (WINAPI *new_func)(HANDLE, DWORD)) * arrays. We need the import name table to find the imported * routine and the import address table to patch the address, so * walk them side by side */ - int_entry = (PIMAGE_THUNK_DATA)(base + U(*import_descriptor).OriginalFirstThunk); + int_entry = (PIMAGE_THUNK_DATA)(base + import_descriptor->OriginalFirstThunk); iat_entry = (PIMAGE_THUNK_DATA)(base + import_descriptor->FirstThunk); while (int_entry->u1.Ordinal != 0) { diff --git a/dlls/shell32/tests/shlfolder.c b/dlls/shell32/tests/shlfolder.c index be22e577c8b..29785793355 100644 --- a/dlls/shell32/tests/shlfolder.c +++ b/dlls/shell32/tests/shlfolder.c @@ -4709,16 +4709,16 @@ static void r_verify_pidl(unsigned l, LPCITEMIDLIST pidl, const WCHAR *path) ok_(__FILE__,l)(filename.uType == STRRET_WSTR || filename.uType == STRRET_CSTR, "Got unexpected string type: %d\n", filename.uType); if(filename.uType == STRRET_WSTR){ - ok_(__FILE__,l)(lstrcmpW(path, U(filename).pOleStr) == 0, + ok_(__FILE__,l)(lstrcmpW(path, filename.pOleStr) == 0, "didn't get expected path (%s), instead: %s\n", - wine_dbgstr_w(path), wine_dbgstr_w(U(filename).pOleStr)); - SHFree(U(filename).pOleStr); + wine_dbgstr_w(path), wine_dbgstr_w(filename.pOleStr)); + SHFree(filename.pOleStr); } else if(filename.uType == STRRET_CSTR) { - WCHAR *strW = make_wstr(U(filename).cStr); + WCHAR *strW = make_wstr(filename.cStr); ok_(__FILE__,l)(!lstrcmpW(path, strW), "didn't get expected path (%s), instead: %s\n", - wine_dbgstr_w(path), U(filename).cStr); + wine_dbgstr_w(path), filename.cStr); free(strW); } diff --git a/dlls/shell32/tests/string.c b/dlls/shell32/tests/string.c index d1d621d9577..d40f6c7fc4f 100644 --- a/dlls/shell32/tests/string.c +++ b/dlls/shell32/tests/string.c @@ -58,21 +58,21 @@ static void test_StrRetToStringNW(void) trace("StrRetToStringNAW is Unicode\n"); strret.uType = STRRET_WSTR; - U(strret).pOleStr = CoDupStrW("Test"); + strret.pOleStr = CoDupStrW("Test"); memset(buff, 0xff, sizeof(buff)); ret = pStrRetToStrNAW(buff, ARRAY_SIZE(buff), &strret, NULL); ok(ret == TRUE && !wcscmp(buff, szTestW), "STRRET_WSTR: dup failed, ret=%d\n", ret); strret.uType = STRRET_CSTR; - lstrcpyA(U(strret).cStr, "Test"); + lstrcpyA(strret.cStr, "Test"); memset(buff, 0xff, sizeof(buff)); ret = pStrRetToStrNAW(buff, ARRAY_SIZE(buff), &strret, NULL); ok(ret == TRUE && !wcscmp(buff, szTestW), "STRRET_CSTR: dup failed, ret=%d\n", ret); strret.uType = STRRET_OFFSET; - U(strret).uOffset = 1; + strret.uOffset = 1; strcpy((char*)&iidl, " Test"); memset(buff, 0xff, sizeof(buff)); ret = pStrRetToStrNAW(buff, ARRAY_SIZE(buff), &strret, iidl); @@ -84,7 +84,7 @@ if (0) { /* Invalid dest - should return FALSE, except NT4 does not, so we don't check. */ strret.uType = STRRET_WSTR; - U(strret).pOleStr = CoDupStrW("Test"); + strret.pOleStr = CoDupStrW("Test"); pStrRetToStrNAW(NULL, ARRAY_SIZE(buff), &strret, NULL); trace("NULL dest: ret=%d\n", ret); }
1
0
0
0
Alexandre Julliard : shell32: Use nameless unions/structs.
by Alexandre Julliard
04 Jul '23
04 Jul '23
Module: wine Branch: master Commit: 5cb72744039587ebed721b49d7bb3ade14aa0bd6 URL:
https://gitlab.winehq.org/wine/wine/-/commit/5cb72744039587ebed721b49d7bb3a…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 4 12:59:05 2023 +0200 shell32: Use nameless unions/structs. --- dlls/shell32/brsfolder.c | 4 +--- dlls/shell32/cpanelfolder.c | 10 ++++------ dlls/shell32/dataobject.c | 12 +++++------- dlls/shell32/ebrowser.c | 8 +++----- dlls/shell32/pidl.c | 8 +++----- dlls/shell32/recyclebin.c | 5 ++--- dlls/shell32/shellitem.c | 20 +++++++++----------- dlls/shell32/shelllink.c | 8 +++----- dlls/shell32/shellole.c | 8 +++----- dlls/shell32/shellstring.c | 18 ++++++++---------- dlls/shell32/shfldr_desktop.c | 12 +++++------- dlls/shell32/shfldr_fs.c | 22 ++++++++++------------ dlls/shell32/shfldr_mycomp.c | 20 +++++++++----------- dlls/shell32/shlfolder.c | 18 ++++++++---------- dlls/shell32/shlview.c | 7 +++---- dlls/shell32/shlview_cmenu.c | 24 +++++++++++------------- dlls/shell32/systray.c | 8 +++----- 17 files changed, 90 insertions(+), 122 deletions(-)
1
0
0
0
Alexandre Julliard : ole32/tests: Use nameless unions/structs.
by Alexandre Julliard
04 Jul '23
04 Jul '23
Module: wine Branch: master Commit: 7c1d8b29e56f77b2740ec0d3c4464091c8389298 URL:
https://gitlab.winehq.org/wine/wine/-/commit/7c1d8b29e56f77b2740ec0d3c44640…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 4 12:49:50 2023 +0200 ole32/tests: Use nameless unions/structs. --- dlls/ole32/tests/clipboard.c | 37 ++++++------ dlls/ole32/tests/marshal.c | 4 +- dlls/ole32/tests/ole2.c | 80 +++++++++++++------------- dlls/ole32/tests/propvariant.c | 90 +++++++++++++++--------------- dlls/ole32/tests/stg_prop.c | 124 ++++++++++++++++++++--------------------- dlls/ole32/tests/storage32.c | 59 ++++++++++---------- dlls/ole32/tests/usrmarshal.c | 34 +++++------ 7 files changed, 212 insertions(+), 216 deletions(-)
1
0
0
0
Alexandre Julliard : ole32: Use nameless unions/structs.
by Alexandre Julliard
04 Jul '23
04 Jul '23
Module: wine Branch: master Commit: 61a06d4bcd1ab1dae2241894a54e54946b0c8682 URL:
https://gitlab.winehq.org/wine/wine/-/commit/61a06d4bcd1ab1dae2241894a54e54…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 4 12:49:26 2023 +0200 ole32: Use nameless unions/structs. --- dlls/ole32/antimoniker.c | 2 - dlls/ole32/clipboard.c | 58 ++++++++++----------- dlls/ole32/compobj.c | 2 - dlls/ole32/datacache.c | 103 ++++++++++++++++++------------------- dlls/ole32/filelockbytes.c | 27 +++++----- dlls/ole32/filemoniker.c | 2 - dlls/ole32/itemmoniker.c | 2 - dlls/ole32/memlockbytes.c | 37 ++++++-------- dlls/ole32/ole2.c | 40 +++++++-------- dlls/ole32/oleobj.c | 4 +- dlls/ole32/pointermoniker.c | 2 - dlls/ole32/stg_prop.c | 36 ++++++------- dlls/ole32/stg_stream.c | 18 +++---- dlls/ole32/storage32.c | 122 ++++++++++++++++++++++---------------------- dlls/ole32/usrmarshal.c | 108 +++++++++++++++++++-------------------- 15 files changed, 265 insertions(+), 298 deletions(-)
1
0
0
0
Alexandre Julliard : oleaut32/tests: Use nameless unions/structs.
by Alexandre Julliard
04 Jul '23
04 Jul '23
Module: wine Branch: master Commit: 34ab144f04e782fe101e3395453bdb9a08708852 URL:
https://gitlab.winehq.org/wine/wine/-/commit/34ab144f04e782fe101e3395453bdb…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 4 12:48:21 2023 +0200 oleaut32/tests: Use nameless unions/structs. --- dlls/oleaut32/tests/olefont.c | 26 +-- dlls/oleaut32/tests/olepicture.c | 103 +++++---- dlls/oleaut32/tests/typelib.c | 451 +++++++++++++++++++-------------------- dlls/oleaut32/tests/vartest.c | 95 +++++---- dlls/oleaut32/tests/vartype.c | 74 +++---- 5 files changed, 373 insertions(+), 376 deletions(-)
1
0
0
0
Alexandre Julliard : oleaut32: Use nameless unions/structs.
by Alexandre Julliard
04 Jul '23
04 Jul '23
Module: wine Branch: master Commit: 374d74e8432b8b56257ac2079cd943f2c4c77ea4 URL:
https://gitlab.winehq.org/wine/wine/-/commit/374d74e8432b8b56257ac2079cd943…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 4 12:47:11 2023 +0200 oleaut32: Use nameless unions/structs. --- dlls/oleaut32/olefont.c | 31 +++--- dlls/oleaut32/olepicture.c | 74 +++++++------ dlls/oleaut32/olepropframe.c | 14 ++- dlls/oleaut32/recinfo.c | 6 +- dlls/oleaut32/typelib.c | 244 +++++++++++++++++++++---------------------- dlls/oleaut32/usrmarshal.c | 24 ++--- 6 files changed, 189 insertions(+), 204 deletions(-)
1
0
0
0
Alexandre Julliard : oleaut32: Get rid of the DECIMAL access macros.
by Alexandre Julliard
04 Jul '23
04 Jul '23
Module: wine Branch: master Commit: 36963b6d27abcf74b58bcf11953ebdf2b7e9767c URL:
https://gitlab.winehq.org/wine/wine/-/commit/36963b6d27abcf74b58bcf11953ebd…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 4 12:42:53 2023 +0200 oleaut32: Get rid of the DECIMAL access macros. --- dlls/oleaut32/variant.c | 83 +++++++------ dlls/oleaut32/variant.h | 20 ---- dlls/oleaut32/vartype.c | 303 +++++++++++++++++++++++------------------------- 3 files changed, 188 insertions(+), 218 deletions(-)
1
0
0
0
Alexandre Julliard : uiautomationcore: Fix some long/LONG mismatches.
by Alexandre Julliard
04 Jul '23
04 Jul '23
Module: wine Branch: master Commit: 641623ffe802577de720ab9d109fdc0ca3e0acbf URL:
https://gitlab.winehq.org/wine/wine/-/commit/641623ffe802577de720ab9d109fdc…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 4 12:25:33 2023 +0200 uiautomationcore: Fix some long/LONG mismatches. --- dlls/uiautomationcore/tests/uiautomation.c | 2 +- dlls/uiautomationcore/uia_client.c | 2 +- dlls/uiautomationcore/uia_event.c | 6 +++--- dlls/uiautomationcore/uia_private.h | 2 +- dlls/uiautomationcore/uia_provider.c | 4 ++-- include/uiautomationcoreapi.h | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/dlls/uiautomationcore/tests/uiautomation.c b/dlls/uiautomationcore/tests/uiautomation.c index 4845fe7ab33..242f800d5db 100644 --- a/dlls/uiautomationcore/tests/uiautomation.c +++ b/dlls/uiautomationcore/tests/uiautomation.c @@ -29,7 +29,7 @@ #include "wine/test.h" -static HRESULT (WINAPI *pUiaProviderFromIAccessible)(IAccessible *, long, DWORD, IRawElementProviderSimple **); +static HRESULT (WINAPI *pUiaProviderFromIAccessible)(IAccessible *, LONG, DWORD, IRawElementProviderSimple **); static HRESULT (WINAPI *pUiaDisconnectProvider)(IRawElementProviderSimple *); #define DEFINE_EXPECT(func) \ diff --git a/dlls/uiautomationcore/uia_client.c b/dlls/uiautomationcore/uia_client.c index 5fe3078bec1..8dac22db066 100644 --- a/dlls/uiautomationcore/uia_client.c +++ b/dlls/uiautomationcore/uia_client.c @@ -539,7 +539,7 @@ static HRESULT WINAPI uia_node_get_hwnd(IWineUiaNode *iface, ULONG *out_hwnd) return S_OK; } -static HRESULT WINAPI uia_node_attach_event(IWineUiaNode *iface, long proc_id, long event_cookie, +static HRESULT WINAPI uia_node_attach_event(IWineUiaNode *iface, LONG proc_id, LONG event_cookie, IWineUiaEvent **ret_event) { struct uia_node *node = impl_from_IWineUiaNode(iface); diff --git a/dlls/uiautomationcore/uia_event.c b/dlls/uiautomationcore/uia_event.c index be3e422c313..563c16066db 100644 --- a/dlls/uiautomationcore/uia_event.c +++ b/dlls/uiautomationcore/uia_event.c @@ -562,7 +562,7 @@ static ULONG WINAPI uia_event_Release(IWineUiaEvent *iface) return ref; } -static HRESULT WINAPI uia_event_advise_events(IWineUiaEvent *iface, BOOL advise_added, long adviser_start_idx) +static HRESULT WINAPI uia_event_advise_events(IWineUiaEvent *iface, BOOL advise_added, LONG adviser_start_idx) { struct uia_event *event = impl_from_IWineUiaEvent(iface); HRESULT hr; @@ -607,7 +607,7 @@ static HRESULT WINAPI uia_event_advise_events(IWineUiaEvent *iface, BOOL advise_ return S_OK; } -static HRESULT WINAPI uia_event_set_event_data(IWineUiaEvent *iface, const GUID *event_guid, long scope, +static HRESULT WINAPI uia_event_set_event_data(IWineUiaEvent *iface, const GUID *event_guid, LONG scope, VARIANT runtime_id, IWineUiaEvent *event_iface) { struct uia_event *event = impl_from_IWineUiaEvent(iface); @@ -1042,7 +1042,7 @@ HRESULT uia_event_add_serverside_event_adviser(IWineUiaEvent *serverside_event, return hr; } -static HRESULT uia_event_advise(struct uia_event *event, BOOL advise_added, long start_idx) +static HRESULT uia_event_advise(struct uia_event *event, BOOL advise_added, LONG start_idx) { IWineUiaEvent *event_iface; HRESULT hr; diff --git a/dlls/uiautomationcore/uia_private.h b/dlls/uiautomationcore/uia_private.h index 727c0be6894..807ca134521 100644 --- a/dlls/uiautomationcore/uia_private.h +++ b/dlls/uiautomationcore/uia_private.h @@ -220,7 +220,7 @@ HRESULT create_base_hwnd_provider(HWND hwnd, IRawElementProviderSimple **elprov) void uia_stop_provider_thread(void) DECLSPEC_HIDDEN; void uia_provider_thread_remove_node(HUIANODE node) DECLSPEC_HIDDEN; LRESULT uia_lresult_from_node(HUIANODE huianode) DECLSPEC_HIDDEN; -HRESULT create_msaa_provider(IAccessible *acc, long child_id, HWND hwnd, BOOL known_root_acc, +HRESULT create_msaa_provider(IAccessible *acc, LONG child_id, HWND hwnd, BOOL known_root_acc, IRawElementProviderSimple **elprov) DECLSPEC_HIDDEN; /* uia_utils.c */ diff --git a/dlls/uiautomationcore/uia_provider.c b/dlls/uiautomationcore/uia_provider.c index faa7e2cb7fa..38ddcd8678f 100644 --- a/dlls/uiautomationcore/uia_provider.c +++ b/dlls/uiautomationcore/uia_provider.c @@ -1133,7 +1133,7 @@ static const ILegacyIAccessibleProviderVtbl msaa_acc_provider_vtbl = { msaa_acc_provider_get_DefaultAction, }; -HRESULT create_msaa_provider(IAccessible *acc, long child_id, HWND hwnd, BOOL known_root_acc, +HRESULT create_msaa_provider(IAccessible *acc, LONG child_id, HWND hwnd, BOOL known_root_acc, IRawElementProviderSimple **elprov) { struct msaa_provider *msaa_prov = heap_alloc_zero(sizeof(*msaa_prov)); @@ -1172,7 +1172,7 @@ HRESULT create_msaa_provider(IAccessible *acc, long child_id, HWND hwnd, BOOL kn /*********************************************************************** * UiaProviderFromIAccessible (uiautomationcore.@) */ -HRESULT WINAPI UiaProviderFromIAccessible(IAccessible *acc, long child_id, DWORD flags, +HRESULT WINAPI UiaProviderFromIAccessible(IAccessible *acc, LONG child_id, DWORD flags, IRawElementProviderSimple **elprov) { IServiceProvider *serv_prov; diff --git a/include/uiautomationcoreapi.h b/include/uiautomationcoreapi.h index 9d131abc6cc..0c2ad7b742d 100644 --- a/include/uiautomationcoreapi.h +++ b/include/uiautomationcoreapi.h @@ -537,7 +537,7 @@ void WINAPI UiaRegisterProviderCallback(UiaProviderCallback *pCallback); LRESULT WINAPI UiaReturnRawElementProvider(HWND hwnd, WPARAM wParam, LPARAM lParam, IRawElementProviderSimple *elprov); BOOL WINAPI UiaTextRangeRelease(HUIATEXTRANGE hobj); HRESULT WINAPI UiaHostProviderFromHwnd(HWND hwnd, IRawElementProviderSimple **elprov); -HRESULT WINAPI UiaProviderFromIAccessible(IAccessible *acc, long child_id, DWORD flags, IRawElementProviderSimple **elprov); +HRESULT WINAPI UiaProviderFromIAccessible(IAccessible *acc, LONG child_id, DWORD flags, IRawElementProviderSimple **elprov); HRESULT WINAPI UiaGetPropertyValue(HUIANODE huianode, PROPERTYID prop_id, VARIANT *out_val); HRESULT WINAPI UiaNodeFromProvider(IRawElementProviderSimple *elprov, HUIANODE *huianode); BOOL WINAPI UiaNodeRelease(HUIANODE huianode);
1
0
0
0
← Newer
1
...
80
81
82
83
84
85
86
87
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Results per page:
10
25
50
100
200