Module: wine Branch: master Commit: a40b2139f7c5b5fa23ac606dc789c2672524451c URL: https://gitlab.winehq.org/wine/wine/-/commit/a40b2139f7c5b5fa23ac606dc789c26...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Jul 13 11:57:18 2023 +0200
hhctrl.ocx: Use nameless unions/structs.
---
dlls/hhctrl.ocx/content.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/dlls/hhctrl.ocx/content.c b/dlls/hhctrl.ocx/content.c index 8ad088c16ff..c6f01b80d97 100644 --- a/dlls/hhctrl.ocx/content.c +++ b/dlls/hhctrl.ocx/content.c @@ -17,8 +17,6 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */
-#define NONAMELESSUNION - #include "hhctrl.h" #include "stream.h" #include "resource.h" @@ -267,12 +265,12 @@ static void insert_content_item(HWND hwnd, ContentItem *parent, ContentItem *ite TVINSERTSTRUCTW tvis;
memset(&tvis, 0, sizeof(tvis)); - tvis.u.item.mask = TVIF_TEXT|TVIF_PARAM|TVIF_IMAGE|TVIF_SELECTEDIMAGE; - tvis.u.item.cchTextMax = lstrlenW(item->name)+1; - tvis.u.item.pszText = item->name; - tvis.u.item.lParam = (LPARAM)item; - tvis.u.item.iImage = item->child ? HHTV_FOLDER : HHTV_DOCUMENT; - tvis.u.item.iSelectedImage = item->child ? HHTV_FOLDER : HHTV_DOCUMENT; + tvis.item.mask = TVIF_TEXT|TVIF_PARAM|TVIF_IMAGE|TVIF_SELECTEDIMAGE; + tvis.item.cchTextMax = lstrlenW(item->name)+1; + tvis.item.pszText = item->name; + tvis.item.lParam = (LPARAM)item; + tvis.item.iImage = item->child ? HHTV_FOLDER : HHTV_DOCUMENT; + tvis.item.iSelectedImage = item->child ? HHTV_FOLDER : HHTV_DOCUMENT; tvis.hParent = parent ? parent->id : 0; tvis.hInsertAfter = TVI_LAST;