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
99ef2dc4
Commit
99ef2dc4
authored
Jun 27, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Jun 28, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Rename initialize_display_settings local variable.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55146
parent
0e5b847f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
desktop.c
programs/explorer/desktop.c
+7
-8
No files found.
programs/explorer/desktop.c
View file @
99ef2dc4
...
...
@@ -939,26 +939,25 @@ static const char *debugstr_devmodew( const DEVMODEW *devmode )
static
void
initialize_display_settings
(
void
)
{
DISPLAY_DEVICEW
d
dW
;
DISPLAY_DEVICEW
d
evice
=
{.
cb
=
sizeof
(
DISPLAY_DEVICEW
)}
;
DWORD
i
=
0
;
/* Store current display mode in the registry */
ddW
.
cb
=
sizeof
(
ddW
);
while
(
EnumDisplayDevicesW
(
NULL
,
i
++
,
&
ddW
,
0
))
while
(
EnumDisplayDevicesW
(
NULL
,
i
++
,
&
device
,
0
))
{
DEVMODEW
devmode
=
{.
dmSize
=
sizeof
(
DEVMODEW
)};
if
(
!
EnumDisplaySettingsExW
(
d
dW
.
DeviceName
,
ENUM_CURRENT_SETTINGS
,
&
devmode
,
0
))
if
(
!
EnumDisplaySettingsExW
(
d
evice
.
DeviceName
,
ENUM_CURRENT_SETTINGS
,
&
devmode
,
0
))
{
ERR
(
"Failed to query current display settings for %s.
\n
"
,
debugstr_w
(
ddW
.
DeviceName
)
);
ERR
(
"Failed to query current display settings for %s.
\n
"
,
debugstr_w
(
device
.
DeviceName
)
);
continue
;
}
TRACE
(
"Device %s current display mode %s.
\n
"
,
debugstr_w
(
d
dW
.
DeviceName
),
debugstr_devmodew
(
&
devmode
)
);
TRACE
(
"Device %s current display mode %s.
\n
"
,
debugstr_w
(
d
evice
.
DeviceName
),
debugstr_devmodew
(
&
devmode
)
);
if
(
ChangeDisplaySettingsExW
(
d
dW
.
DeviceName
,
&
devmode
,
0
,
if
(
ChangeDisplaySettingsExW
(
d
evice
.
DeviceName
,
&
devmode
,
0
,
CDS_GLOBAL
|
CDS_NORESET
|
CDS_UPDATEREGISTRY
,
0
))
ERR
(
"Failed to initialize registry display settings for %s.
\n
"
,
debugstr_w
(
ddW
.
DeviceName
)
);
ERR
(
"Failed to initialize registry display settings for %s.
\n
"
,
debugstr_w
(
device
.
DeviceName
)
);
}
}
...
...
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