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
14518662
Commit
14518662
authored
Jun 16, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Use nameless union/structs.
parent
2e58c9e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
desktop.c
programs/explorer/desktop.c
+1
-4
systray.c
programs/explorer/systray.c
+3
-4
No files found.
programs/explorer/desktop.c
View file @
14518662
...
...
@@ -22,8 +22,6 @@
#include <stdio.h>
#define COBJMACROS
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#define OEMRESOURCE
#include <windows.h>
#include <rpc.h>
...
...
@@ -973,8 +971,7 @@ static void initialize_display_settings(void)
WINE_TRACE
(
"Device %s current display mode %lux%lu %luBits %luHz at %ld,%ld.
\n
"
,
wine_dbgstr_w
(
ddW
.
DeviceName
),
dmW
.
dmPelsWidth
,
dmW
.
dmPelsHeight
,
dmW
.
dmBitsPerPel
,
dmW
.
dmDisplayFrequency
,
dmW
.
u1
.
s2
.
dmPosition
.
x
,
dmW
.
u1
.
s2
.
dmPosition
.
y
);
dmW
.
dmBitsPerPel
,
dmW
.
dmDisplayFrequency
,
dmW
.
dmPosition
.
x
,
dmW
.
dmPosition
.
y
);
if
(
ChangeDisplaySettingsExW
(
ddW
.
DeviceName
,
&
dmW
,
0
,
CDS_GLOBAL
|
CDS_NORESET
|
CDS_UPDATEREGISTRY
,
0
))
...
...
programs/explorer/systray.c
View file @
14518662
...
...
@@ -20,7 +20,6 @@
#include <assert.h>
#define NONAMELESSUNION
#include <windows.h>
#include <commctrl.h>
#include <shellapi.h>
...
...
@@ -412,7 +411,7 @@ static BOOL modify_icon( struct icon *icon, NOTIFYICONDATAW *nid )
lstrcpynW
(
icon
->
info_text
,
nid
->
szInfo
,
ARRAY_SIZE
(
icon
->
info_text
));
lstrcpynW
(
icon
->
info_title
,
nid
->
szInfoTitle
,
ARRAY_SIZE
(
icon
->
info_title
));
icon
->
info_flags
=
nid
->
dwInfoFlags
;
icon
->
info_timeout
=
max
(
min
(
nid
->
u
.
u
Timeout
,
BALLOON_SHOW_MAX_TIMEOUT
),
BALLOON_SHOW_MIN_TIMEOUT
);
icon
->
info_timeout
=
max
(
min
(
nid
->
uTimeout
,
BALLOON_SHOW_MAX_TIMEOUT
),
BALLOON_SHOW_MIN_TIMEOUT
);
icon
->
info_icon
=
nid
->
hBalloonIcon
;
update_balloon
(
icon
);
}
...
...
@@ -536,7 +535,7 @@ static BOOL handle_incoming(HWND hwndSource, COPYDATASTRUCT *cds)
nid
.
hIcon
=
0
;
nid
.
dwState
=
data
->
dwState
;
nid
.
dwStateMask
=
data
->
dwStateMask
;
nid
.
u
.
uTimeout
=
data
->
u
.
uTimeout
;
nid
.
u
Timeout
=
data
->
u
.
uTimeout
;
nid
.
dwInfoFlags
=
data
->
dwInfoFlags
;
nid
.
guidItem
=
data
->
guidItem
;
lstrcpyW
(
nid
.
szTip
,
data
->
szTip
);
...
...
@@ -589,7 +588,7 @@ static BOOL handle_incoming(HWND hwndSource, COPYDATASTRUCT *cds)
case
NIM_SETVERSION
:
if
(
icon
)
{
icon
->
version
=
nid
.
u
.
u
Version
;
icon
->
version
=
nid
.
uVersion
;
ret
=
TRUE
;
}
break
;
...
...
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