Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f7aefadd
Commit
f7aefadd
authored
Jul 21, 2020
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Jul 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Trace ChangeDisplaySettingsExW() results.
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f8be6935
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
sysparams.c
dlls/user32/sysparams.c
+11
-2
No files found.
dlls/user32/sysparams.c
View file @
f7aefadd
...
...
@@ -3310,12 +3310,18 @@ LONG WINAPI ChangeDisplaySettingsExW( LPCWSTR devname, LPDEVMODEW devmode, HWND
WCHAR
primary_adapter
[
CCHDEVICENAME
];
BOOL
def_mode
=
TRUE
;
DEVMODEW
dm
;
LONG
ret
;
TRACE
(
"%s %p %p %#x %p
\n
"
,
debugstr_w
(
devname
),
devmode
,
hwnd
,
flags
,
lparam
);
TRACE
(
"flags=%s
\n
"
,
_CDS_flags
(
flags
));
if
(
!
devname
&&
!
devmode
)
return
USER_Driver
->
pChangeDisplaySettingsEx
(
NULL
,
NULL
,
hwnd
,
flags
,
lparam
);
{
ret
=
USER_Driver
->
pChangeDisplaySettingsEx
(
NULL
,
NULL
,
hwnd
,
flags
,
lparam
);
if
(
ret
!=
DISP_CHANGE_SUCCESSFUL
)
ERR
(
"Restoring all displays to their registry settings returned %d.
\n
"
,
ret
);
return
ret
;
}
if
(
!
devname
&&
devmode
)
{
...
...
@@ -3359,7 +3365,10 @@ LONG WINAPI ChangeDisplaySettingsExW( LPCWSTR devname, LPDEVMODEW devmode, HWND
return
DISP_CHANGE_BADMODE
;
}
return
USER_Driver
->
pChangeDisplaySettingsEx
(
devname
,
devmode
,
hwnd
,
flags
,
lparam
);
ret
=
USER_Driver
->
pChangeDisplaySettingsEx
(
devname
,
devmode
,
hwnd
,
flags
,
lparam
);
if
(
ret
!=
DISP_CHANGE_SUCCESSFUL
)
ERR
(
"Changing %s display settings returned %d.
\n
"
,
wine_dbgstr_w
(
devname
),
ret
);
return
ret
;
}
...
...
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