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
June 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
633 discussions
Start a n
N
ew thread
Nikolay Sivov : oleaut32: Trace typelib guid in GetRecordInfoFromGuids().
by Alexandre Julliard
20 Jun '23
20 Jun '23
Module: wine Branch: master Commit: 05aa7407871a9a940012bbe553ddebd7b0ef6fdd URL:
https://gitlab.winehq.org/wine/wine/-/commit/05aa7407871a9a940012bbe553ddeb…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Tue Jun 20 13:04:35 2023 +0200 oleaut32: Trace typelib guid in GetRecordInfoFromGuids(). --- dlls/oleaut32/recinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/oleaut32/recinfo.c b/dlls/oleaut32/recinfo.c index 8b6d61adc69..2b1565873d4 100644 --- a/dlls/oleaut32/recinfo.c +++ b/dlls/oleaut32/recinfo.c @@ -595,7 +595,7 @@ HRESULT WINAPI GetRecordInfoFromGuids(REFGUID rGuidTypeLib, ULONG uVerMajor, ITypeLib *pTypeLib; HRESULT hres; - TRACE("%p, %lu, %lu, %#lx, %s, %p.\n", rGuidTypeLib, uVerMajor, uVerMinor, + TRACE("%s, %lu, %lu, %#lx, %s, %p.\n", debugstr_guid(rGuidTypeLib), uVerMajor, uVerMinor, lcid, debugstr_guid(rGuidTypeInfo), ppRecInfo); hres = LoadRegTypeLib(rGuidTypeLib, uVerMajor, uVerMinor, lcid, &pTypeLib);
1
0
0
0
Nikolay Sivov : oleaut32/recinfo: Use CoTaskMem* allocations for the record data.
by Alexandre Julliard
20 Jun '23
20 Jun '23
Module: wine Branch: master Commit: fb083f4f37e5d76ce5350029ff6c50a8e55cbcf4 URL:
https://gitlab.winehq.org/wine/wine/-/commit/fb083f4f37e5d76ce5350029ff6c50…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Tue Jun 20 11:54:10 2023 +0200 oleaut32/recinfo: Use CoTaskMem* allocations for the record data. --- dlls/oleaut32/recinfo.c | 6 ++---- dlls/oleaut32/variant.c | 7 ++++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/dlls/oleaut32/recinfo.c b/dlls/oleaut32/recinfo.c index 7e1cb957af9..8b6d61adc69 100644 --- a/dlls/oleaut32/recinfo.c +++ b/dlls/oleaut32/recinfo.c @@ -524,7 +524,7 @@ static PVOID WINAPI IRecordInfoImpl_RecordCreate(IRecordInfo *iface) TRACE("(%p)\n", This); - record = HeapAlloc(GetProcessHeap(), 0, This->size); + record = CoTaskMemAlloc(This->size); IRecordInfo_RecordInit(iface, record); TRACE("created record at %p\n", record); return record; @@ -555,9 +555,7 @@ static HRESULT WINAPI IRecordInfoImpl_RecordDestroy(IRecordInfo *iface, PVOID pv if(FAILED(hres)) return hres; - if(!HeapFree(GetProcessHeap(), 0, pvRecord)) - return E_INVALIDARG; - + CoTaskMemFree(pvRecord); return S_OK; } diff --git a/dlls/oleaut32/variant.c b/dlls/oleaut32/variant.c index 8c2aa3b729d..8186a0b3856 100644 --- a/dlls/oleaut32/variant.c +++ b/dlls/oleaut32/variant.c @@ -686,11 +686,12 @@ static HRESULT VARIANT_CopyIRecordInfo(VARIANT *dest, const VARIANT *src) hr = IRecordInfo_GetSize(src_rec->pRecInfo, &size); if (FAILED(hr)) return hr; - /* This could look cleaner if only RecordCreate() was used, but native doesn't use it. - Memory should be allocated in a same way as RecordCreate() does, so RecordDestroy() + /* Windows does not use RecordCreate() here, memory should be allocated in compatible way so RecordDestroy() could free it later. */ - dest_rec->pvRecord = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size); + dest_rec->pvRecord = CoTaskMemAlloc(size); if (!dest_rec->pvRecord) return E_OUTOFMEMORY; + if (size) + memset(dest_rec->pvRecord, 0, size); dest_rec->pRecInfo = src_rec->pRecInfo; IRecordInfo_AddRef(src_rec->pRecInfo);
1
0
0
0
Nikolay Sivov : oleaut32/recinfo: Use CRT allocation functions.
by Alexandre Julliard
20 Jun '23
20 Jun '23
Module: wine Branch: master Commit: d9d665705e051852c76c36b5e91033de91eb71a9 URL:
https://gitlab.winehq.org/wine/wine/-/commit/d9d665705e051852c76c36b5e91033…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Tue Jun 20 11:30:22 2023 +0200 oleaut32/recinfo: Use CRT allocation functions. --- dlls/oleaut32/recinfo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/oleaut32/recinfo.c b/dlls/oleaut32/recinfo.c index 7d46d6c4299..7e1cb957af9 100644 --- a/dlls/oleaut32/recinfo.c +++ b/dlls/oleaut32/recinfo.c @@ -179,9 +179,9 @@ static ULONG WINAPI IRecordInfoImpl_Release(IRecordInfo *iface) for(i=0; i<This->n_vars; i++) SysFreeString(This->fields[i].name); SysFreeString(This->name); - HeapFree(GetProcessHeap(), 0, This->fields); + free(This->fields); ITypeInfo_Release(This->pTypeInfo); - HeapFree(GetProcessHeap(), 0, This); + free(This); } return ref; } @@ -667,7 +667,7 @@ HRESULT WINAPI GetRecordInfoFromTypeInfo(ITypeInfo* pTI, IRecordInfo** ppRecInfo return E_INVALIDARG; } - ret = HeapAlloc(GetProcessHeap(), 0, sizeof(*ret)); + ret = calloc(1, sizeof(*ret)); ret->IRecordInfo_iface.lpVtbl = &IRecordInfoImplVtbl; ret->ref = 1; ret->pTypeInfo = pTypeInfo; @@ -687,7 +687,7 @@ HRESULT WINAPI GetRecordInfoFromTypeInfo(ITypeInfo* pTI, IRecordInfo** ppRecInfo ret->name = NULL; } - ret->fields = HeapAlloc(GetProcessHeap(), 0, ret->n_vars*sizeof(fieldstr)); + ret->fields = calloc(ret->n_vars, sizeof(fieldstr)); for(i = 0; i<ret->n_vars; i++) { VARDESC *vardesc; hres = ITypeInfo_GetVarDesc(pTypeInfo, i, &vardesc);
1
0
0
0
Alex Henrie : wbemprox: Fix memory leak on error path in enum_key (scan-build).
by Alexandre Julliard
20 Jun '23
20 Jun '23
Module: wine Branch: master Commit: 078f4dcd44d432dcb8db59612f34d24d41796373 URL:
https://gitlab.winehq.org/wine/wine/-/commit/078f4dcd44d432dcb8db59612f34d2…
Author: Alex Henrie <alexhenrie24(a)gmail.com> Date: Sun Jun 18 22:34:21 2023 -0600 wbemprox: Fix memory leak on error path in enum_key (scan-build). --- dlls/wbemprox/reg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/wbemprox/reg.c b/dlls/wbemprox/reg.c index cd7db81aed7..cdfb5d28007 100644 --- a/dlls/wbemprox/reg.c +++ b/dlls/wbemprox/reg.c @@ -186,6 +186,7 @@ static HRESULT enum_key( HKEY root, const WCHAR *subkey, VARIANT *names, IWbemCo if (!(tmp = realloc( strings, count * sizeof(BSTR) ))) { RegCloseKey( hkey ); + free( strings ); return E_OUTOFMEMORY; } strings = tmp;
1
0
0
0
Alexandre Julliard : wordpad: Use nameless unions/structs.
by Alexandre Julliard
20 Jun '23
20 Jun '23
Module: wine Branch: master Commit: c938f92e4c76744a2ee4d584d0587fbf1b696c3a URL:
https://gitlab.winehq.org/wine/wine/-/commit/c938f92e4c76744a2ee4d584d0587f…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue May 30 11:22:37 2023 +0200 wordpad: Use nameless unions/structs. --- programs/wordpad/wordpad.c | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/programs/wordpad/wordpad.c b/programs/wordpad/wordpad.c index 2a0d380a101..ed55a1d2268 100644 --- a/programs/wordpad/wordpad.c +++ b/programs/wordpad/wordpad.c @@ -37,16 +37,6 @@ #include "wordpad.h" -#ifdef NONAMELESSUNION -# define U(x) (x).u -# define U2(x) (x).u2 -# define U3(x) (x).u3 -#else -# define U(x) (x) -# define U2(x) (x) -# define U3(x) (x) -#endif - /* use LoadString */ static const WCHAR wszAppTitle[] = {'W','i','n','e',' ','W','o','r','d','p','a','d',0}; @@ -1180,7 +1170,7 @@ static void dialog_viewproperties(void) psp[0].dwSize = sizeof(PROPSHEETPAGEW); psp[0].dwFlags = PSP_USETITLE; - U(psp[0]).pszTemplate = MAKEINTRESOURCEW(IDD_FORMATOPTS); + psp[0].pszTemplate = MAKEINTRESOURCEW(IDD_FORMATOPTS); psp[0].pfnDlgProc = formatopts_proc; psp[0].hInstance = hInstance; psp[0].lParam = reg_formatindex(SF_TEXT); @@ -1190,7 +1180,7 @@ static void dialog_viewproperties(void) { psp[i].dwSize = psp[0].dwSize; psp[i].dwFlags = psp[0].dwFlags; - U(psp[i]).pszTemplate = U(psp[0]).pszTemplate; + psp[i].pszTemplate = psp[0].pszTemplate; psp[i].pfnDlgProc = psp[0].pfnDlgProc; psp[i].hInstance = psp[0].hInstance; psp[i].lParam = reg_formatindex(SF_RTF); @@ -1204,13 +1194,13 @@ static void dialog_viewproperties(void) psh.hInstance = hInstance; psh.pszCaption = MAKEINTRESOURCEW(STRING_VIEWPROPS_TITLE); psh.nPages = ARRAY_SIZE(psp); - U3(psh).ppsp = ppsp; - U(psh).pszIcon = MAKEINTRESOURCEW(IDI_WORDPAD); + psh.ppsp = ppsp; + psh.pszIcon = MAKEINTRESOURCEW(IDI_WORDPAD); if(fileFormat & SF_RTF) - U2(psh).nStartPage = 1; + psh.nStartPage = 1; else - U2(psh).nStartPage = 0; + psh.nStartPage = 0; PropertySheetW(&psh); set_bar_states(); target_device(hMainWnd, wordWrap[reg_formatindex(fileFormat)]);
1
0
0
0
Alexandre Julliard : winhlp32: Use nameless unions/structs.
by Alexandre Julliard
20 Jun '23
20 Jun '23
Module: wine Branch: master Commit: 35299b39cbea8d62093acabf1106829f7f7707d3 URL:
https://gitlab.winehq.org/wine/wine/-/commit/35299b39cbea8d62093acabf110682…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Jun 16 17:59:58 2023 +0200 winhlp32: Use nameless unions/structs. --- programs/winhlp32/winhelp.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/programs/winhlp32/winhelp.c b/programs/winhlp32/winhelp.c index 037d319f290..d648cab7982 100644 --- a/programs/winhlp32/winhelp.c +++ b/programs/winhlp32/winhelp.c @@ -28,8 +28,6 @@ #include <stdarg.h> #include <stdlib.h> -#define NONAMELESSUNION - #include "windef.h" #include "winbase.h" #include "wingdi.h" @@ -1565,12 +1563,12 @@ BOOL WINHELP_CreateIndexWindow(BOOL is_search) psp.dwFlags = 0; psp.hInstance = Globals.hInstance; - psp.u.pszTemplate = MAKEINTRESOURCEA(IDD_INDEX); + psp.pszTemplate = MAKEINTRESOURCEA(IDD_INDEX); psp.lParam = (LPARAM)&id; psp.pfnDlgProc = WINHELP_IndexDlgProc; psPage[0] = CreatePropertySheetPageA(&psp); - psp.u.pszTemplate = MAKEINTRESOURCEA(IDD_SEARCH); + psp.pszTemplate = MAKEINTRESOURCEA(IDD_SEARCH); psp.lParam = (LPARAM)&id; psp.pfnDlgProc = WINHELP_SearchDlgProc; psPage[1] = CreatePropertySheetPageA(&psp); @@ -1583,9 +1581,9 @@ BOOL WINHELP_CreateIndexWindow(BOOL is_search) psHead.pszCaption = buf; psHead.nPages = 2; - psHead.u2.nStartPage = is_search ? 1 : 0; + psHead.nStartPage = is_search ? 1 : 0; psHead.hwndParent = Globals.active_win->hMainWnd; - psHead.u3.phpage = psPage; + psHead.phpage = psPage; psHead.dwFlags = PSH_NOAPPLYNOW; PropertySheetA(&psHead);
1
0
0
0
Alexandre Julliard : winemenubuilder: Use nameless unions/structs.
by Alexandre Julliard
20 Jun '23
20 Jun '23
Module: wine Branch: master Commit: 6c9246e022af77f3d71fc190a95a97bb7a7493de URL:
https://gitlab.winehq.org/wine/wine/-/commit/6c9246e022af77f3d71fc190a95a97…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Jun 16 17:59:47 2023 +0200 winemenubuilder: Use nameless unions/structs. --- programs/winemenubuilder/winemenubuilder.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/programs/winemenubuilder/winemenubuilder.c b/programs/winemenubuilder/winemenubuilder.c index ae657d87bb1..c16d22e2a57 100644 --- a/programs/winemenubuilder/winemenubuilder.c +++ b/programs/winemenubuilder/winemenubuilder.c @@ -69,8 +69,6 @@ #include <stdarg.h> #define COBJMACROS -#define NONAMELESSUNION - #include <windows.h> #include <winternl.h> #include <shlobj.h> @@ -2364,9 +2362,9 @@ static BOOL InvokeShellLinkerForURL( IUniformResourceLocatorW *url, LPCWSTR link WINE_TRACE("path : %s\n", wine_dbgstr_w(urlPath)); ps[0].ulKind = PRSPEC_PROPID; - ps[0].u.propid = PID_IS_ICONFILE; + ps[0].propid = PID_IS_ICONFILE; ps[1].ulKind = PRSPEC_PROPID; - ps[1].u.propid = PID_IS_ICONINDEX; + ps[1].propid = PID_IS_ICONINDEX; hr = url->lpVtbl->QueryInterface(url, &IID_IPropertySetStorage, (void **) &pPropSetStg); if (SUCCEEDED(hr))
1
0
0
0
Alexandre Julliard : winefile: Use nameless unions/structs.
by Alexandre Julliard
20 Jun '23
20 Jun '23
Module: wine Branch: master Commit: 63f94c4925e25e853f2f2580f0015f53ac9e777a URL:
https://gitlab.winehq.org/wine/wine/-/commit/63f94c4925e25e853f2f2580f0015f…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue May 30 11:22:22 2023 +0200 winefile: Use nameless unions/structs. --- programs/winefile/winefile.c | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c index 6d18954e05a..018da337d11 100644 --- a/programs/winefile/winefile.c +++ b/programs/winefile/winefile.c @@ -26,12 +26,6 @@ #include "winefile.h" #include "resource.h" -#ifdef NONAMELESSUNION -#define UNION_MEMBER(x) DUMMYUNIONNAME.x -#else -#define UNION_MEMBER(x) x -#endif - #define DEFAULT_SPLIT_POS 300 static const WCHAR registry_key[] = { 'S','o','f','t','w','a','r','e','\\', @@ -449,7 +443,7 @@ static Entry* read_tree_win(Root* root, LPCWSTR path, SORT_ORDER sortOrder, HWND static void free_strret(STRRET* str) { if (str->uType == STRRET_WSTR) - IMalloc_Free(Globals.iMalloc, str->UNION_MEMBER(pOleStr)); + IMalloc_Free(Globals.iMalloc, str->pOleStr); } static LPWSTR wcscpyn(LPWSTR dest, LPCWSTR source, size_t count) @@ -467,15 +461,15 @@ static void get_strretW(STRRET* str, const SHITEMID* shiid, LPWSTR buffer, int l { switch(str->uType) { case STRRET_WSTR: - wcscpyn(buffer, str->UNION_MEMBER(pOleStr), len); + wcscpyn(buffer, str->pOleStr, len); break; case STRRET_OFFSET: - MultiByteToWideChar(CP_ACP, 0, (LPCSTR)shiid+str->UNION_MEMBER(uOffset), -1, buffer, len); + MultiByteToWideChar(CP_ACP, 0, (LPCSTR)shiid+str->uOffset, -1, buffer, len); break; case STRRET_CSTR: - MultiByteToWideChar(CP_ACP, 0, str->UNION_MEMBER(cStr), -1, buffer, len); + MultiByteToWideChar(CP_ACP, 0, str->cStr, -1, buffer, len); } } @@ -673,7 +667,7 @@ static void fill_w32fdata_shell(IShellFolder* folder, LPCITEMIDLIST pidl, SFGAOF IDataObject_Release(pDataObj); if (SUCCEEDED(hr)) { - LPCWSTR path = GlobalLock(medium.UNION_MEMBER(hGlobal)); + LPCWSTR path = GlobalLock(medium.hGlobal); UINT sem_org = SetErrorMode(SEM_FAILCRITICALERRORS); if (GetFileAttributesExW(path, GetFileExInfoStandard, &fad)) { @@ -690,8 +684,8 @@ static void fill_w32fdata_shell(IShellFolder* folder, LPCITEMIDLIST pidl, SFGAOF SetErrorMode(sem_org); - GlobalUnlock(medium.UNION_MEMBER(hGlobal)); - GlobalFree(medium.UNION_MEMBER(hGlobal)); + GlobalUnlock(medium.hGlobal); + GlobalFree(medium.hGlobal); } } }
1
0
0
0
Alexandre Julliard : winedbg: Use nameless unions/structs.
by Alexandre Julliard
20 Jun '23
20 Jun '23
Module: wine Branch: master Commit: f20710d9b32ea5366297729c3f82fe7b20a528e1 URL:
https://gitlab.winehq.org/wine/wine/-/commit/f20710d9b32ea5366297729c3f82fe…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Jun 16 17:59:35 2023 +0200 winedbg: Use nameless unions/structs. --- programs/winedbg/be_arm64.c | 148 ++++++++++++++++---------------- programs/winedbg/be_x86_64.c | 185 ++++++++++++++++++++-------------------- programs/winedbg/debugger.h | 2 - programs/winedbg/gdbproxy.c | 3 - programs/winedbg/tgt_minidump.c | 29 +++---- 5 files changed, 178 insertions(+), 189 deletions(-)
1
0
0
0
Alexandre Julliard : winecfg: Use nameless unions/structs.
by Alexandre Julliard
20 Jun '23
20 Jun '23
Module: wine Branch: master Commit: 4368bd8e601e306610474472b8c3238cbff5309b URL:
https://gitlab.winehq.org/wine/wine/-/commit/4368bd8e601e306610474472b8c323…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Jun 16 17:59:16 2023 +0200 winecfg: Use nameless unions/structs. --- programs/winecfg/audio.c | 1 - programs/winecfg/main.c | 35 +++++++++++++++++------------------ 2 files changed, 17 insertions(+), 19 deletions(-) diff --git a/programs/winecfg/audio.c b/programs/winecfg/audio.c index 0112a897245..a5065ee5c21 100644 --- a/programs/winecfg/audio.c +++ b/programs/winecfg/audio.c @@ -20,7 +20,6 @@ */ #define WIN32_LEAN_AND_MEAN -#define NONAMELESSUNION #include <assert.h> #include <stdlib.h> diff --git a/programs/winecfg/main.c b/programs/winecfg/main.c index 67df9146f3d..d218d79770c 100644 --- a/programs/winecfg/main.c +++ b/programs/winecfg/main.c @@ -22,7 +22,6 @@ */ #define WIN32_LEAN_AND_MEAN -#define NONAMELESSUNION #include <windows.h> #include <commctrl.h> @@ -74,8 +73,8 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner) psp[pg].dwSize = sizeof (PROPSHEETPAGEW); psp[pg].dwFlags = PSP_USETITLE; psp[pg].hInstance = hInstance; - psp[pg].u.pszTemplate = MAKEINTRESOURCEW (IDD_APPCFG); - psp[pg].u2.pszIcon = NULL; + psp[pg].pszTemplate = MAKEINTRESOURCEW (IDD_APPCFG); + psp[pg].pszIcon = NULL; psp[pg].pfnDlgProc = AppDlgProc; psp[pg].pszTitle = load_string (IDS_TAB_APPLICATIONS); psp[pg].lParam = 0; @@ -88,8 +87,8 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner) psp[pg].dwSize = sizeof (PROPSHEETPAGEW); psp[pg].dwFlags = PSP_USETITLE; psp[pg].hInstance = hInstance; - psp[pg].u.pszTemplate = MAKEINTRESOURCEW (IDD_DLLCFG); - psp[pg].u2.pszIcon = NULL; + psp[pg].pszTemplate = MAKEINTRESOURCEW (IDD_DLLCFG); + psp[pg].pszIcon = NULL; psp[pg].pfnDlgProc = LibrariesDlgProc; psp[pg].pszTitle = load_string (IDS_TAB_DLLS); psp[pg].lParam = 0; @@ -102,8 +101,8 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner) psp[pg].dwSize = sizeof (PROPSHEETPAGEW); psp[pg].dwFlags = PSP_USETITLE; psp[pg].hInstance = hInstance; - psp[pg].u.pszTemplate = MAKEINTRESOURCEW (IDD_GRAPHCFG); - psp[pg].u2.pszIcon = NULL; + psp[pg].pszTemplate = MAKEINTRESOURCEW (IDD_GRAPHCFG); + psp[pg].pszIcon = NULL; psp[pg].pfnDlgProc = GraphDlgProc; psp[pg].pszTitle = load_string (IDS_TAB_GRAPHICS); psp[pg].lParam = 0; @@ -112,8 +111,8 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner) psp[pg].dwSize = sizeof (PROPSHEETPAGEW); psp[pg].dwFlags = PSP_USETITLE; psp[pg].hInstance = hInstance; - psp[pg].u.pszTemplate = MAKEINTRESOURCEW (IDD_DESKTOP_INTEGRATION); - psp[pg].u2.pszIcon = NULL; + psp[pg].pszTemplate = MAKEINTRESOURCEW (IDD_DESKTOP_INTEGRATION); + psp[pg].pszIcon = NULL; psp[pg].pfnDlgProc = ThemeDlgProc; psp[pg].pszTitle = load_string (IDS_TAB_DESKTOP_INTEGRATION); psp[pg].lParam = 0; @@ -122,8 +121,8 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner) psp[pg].dwSize = sizeof (PROPSHEETPAGEW); psp[pg].dwFlags = PSP_USETITLE; psp[pg].hInstance = hInstance; - psp[pg].u.pszTemplate = MAKEINTRESOURCEW (IDD_DRIVECFG); - psp[pg].u2.pszIcon = NULL; + psp[pg].pszTemplate = MAKEINTRESOURCEW (IDD_DRIVECFG); + psp[pg].pszIcon = NULL; psp[pg].pfnDlgProc = DriveDlgProc; psp[pg].pszTitle = load_string (IDS_TAB_DRIVES); psp[pg].lParam = 0; @@ -132,8 +131,8 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner) psp[pg].dwSize = sizeof (PROPSHEETPAGEW); psp[pg].dwFlags = PSP_USETITLE; psp[pg].hInstance = hInstance; - psp[pg].u.pszTemplate = MAKEINTRESOURCEW (IDD_AUDIOCFG); - psp[pg].u2.pszIcon = NULL; + psp[pg].pszTemplate = MAKEINTRESOURCEW (IDD_AUDIOCFG); + psp[pg].pszIcon = NULL; psp[pg].pfnDlgProc = AudioDlgProc; psp[pg].pszTitle = load_string (IDS_TAB_AUDIO); psp[pg].lParam = 0; @@ -146,8 +145,8 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner) psp[pg].dwSize = sizeof (PROPSHEETPAGEW); psp[pg].dwFlags = PSP_USETITLE; psp[pg].hInstance = hInstance; - psp[pg].u.pszTemplate = MAKEINTRESOURCEW (IDD_ABOUTCFG); - psp[pg].u2.pszIcon = NULL; + psp[pg].pszTemplate = MAKEINTRESOURCEW (IDD_ABOUTCFG); + psp[pg].pszIcon = NULL; psp[pg].pfnDlgProc = AboutDlgProc; psp[pg].pszTitle = load_string (IDS_TAB_ABOUT); psp[pg].lParam = 0; @@ -160,12 +159,12 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner) psh.dwFlags = PSH_PROPSHEETPAGE | PSH_USEICONID | PSH_USECALLBACK; psh.hwndParent = hOwner; psh.hInstance = hInstance; - psh.u.pszIcon = MAKEINTRESOURCEW (IDI_WINECFG); + psh.pszIcon = MAKEINTRESOURCEW (IDI_WINECFG); psh.pszCaption = load_string (IDS_WINECFG_TITLE); psh.nPages = NUM_PROPERTY_PAGES; - psh.u3.ppsp = psp; + psh.ppsp = psp; psh.pfnCallback = PropSheetCallback; - psh.u2.nStartPage = 0; + psh.nStartPage = 0; /* * Display the modal property sheet
1
0
0
0
← Newer
1
...
26
27
28
29
30
31
32
...
64
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
Results per page:
10
25
50
100
200