Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a40b2139
Commit
a40b2139
authored
Jul 13, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hhctrl.ocx: Use nameless unions/structs.
parent
313e4d0e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
content.c
dlls/hhctrl.ocx/content.c
+6
-8
No files found.
dlls/hhctrl.ocx/content.c
View file @
a40b2139
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment