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
b1b1399d
Commit
b1b1399d
authored
May 04, 2020
by
Brendan Shanks
Committed by
Alexandre Julliard
May 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Improve DisplayConfigGetDeviceInfo() stub.
Signed-off-by:
Brendan Shanks
<
bshanks@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4e795a8d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
7 deletions
+49
-7
sysparams.c
dlls/user32/sysparams.c
+49
-1
monitor.c
dlls/user32/tests/monitor.c
+0
-6
No files found.
dlls/user32/sysparams.c
View file @
b1b1399d
...
@@ -4528,5 +4528,53 @@ LONG WINAPI QueryDisplayConfig(UINT32 flags, UINT32 *numpathelements, DISPLAYCON
...
@@ -4528,5 +4528,53 @@ LONG WINAPI QueryDisplayConfig(UINT32 flags, UINT32 *numpathelements, DISPLAYCON
LONG
WINAPI
DisplayConfigGetDeviceInfo
(
DISPLAYCONFIG_DEVICE_INFO_HEADER
*
packet
)
LONG
WINAPI
DisplayConfigGetDeviceInfo
(
DISPLAYCONFIG_DEVICE_INFO_HEADER
*
packet
)
{
{
FIXME
(
"stub: %p
\n
"
,
packet
);
FIXME
(
"stub: %p
\n
"
,
packet
);
return
ERROR_NOT_SUPPORTED
;
if
(
!
packet
||
packet
->
size
<
sizeof
(
*
packet
))
return
ERROR_GEN_FAILURE
;
switch
(
packet
->
type
)
{
case
DISPLAYCONFIG_DEVICE_INFO_GET_SOURCE_NAME
:
{
DISPLAYCONFIG_SOURCE_DEVICE_NAME
*
source_name
=
(
DISPLAYCONFIG_SOURCE_DEVICE_NAME
*
)
packet
;
if
(
packet
->
size
<
sizeof
(
*
source_name
))
return
ERROR_INVALID_PARAMETER
;
return
ERROR_NOT_SUPPORTED
;
}
case
DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_NAME
:
{
DISPLAYCONFIG_TARGET_DEVICE_NAME
*
target_name
=
(
DISPLAYCONFIG_TARGET_DEVICE_NAME
*
)
packet
;
if
(
packet
->
size
<
sizeof
(
*
target_name
))
return
ERROR_INVALID_PARAMETER
;
return
ERROR_NOT_SUPPORTED
;
}
case
DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_PREFERRED_MODE
:
{
DISPLAYCONFIG_TARGET_PREFERRED_MODE
*
preferred_mode
=
(
DISPLAYCONFIG_TARGET_PREFERRED_MODE
*
)
packet
;
if
(
packet
->
size
<
sizeof
(
*
preferred_mode
))
return
ERROR_INVALID_PARAMETER
;
return
ERROR_NOT_SUPPORTED
;
}
case
DISPLAYCONFIG_DEVICE_INFO_GET_ADAPTER_NAME
:
{
DISPLAYCONFIG_ADAPTER_NAME
*
adapter_name
=
(
DISPLAYCONFIG_ADAPTER_NAME
*
)
packet
;
if
(
packet
->
size
<
sizeof
(
*
adapter_name
))
return
ERROR_INVALID_PARAMETER
;
return
ERROR_NOT_SUPPORTED
;
}
case
DISPLAYCONFIG_DEVICE_INFO_SET_TARGET_PERSISTENCE
:
case
DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_BASE_TYPE
:
case
DISPLAYCONFIG_DEVICE_INFO_GET_SUPPORT_VIRTUAL_RESOLUTION
:
case
DISPLAYCONFIG_DEVICE_INFO_SET_SUPPORT_VIRTUAL_RESOLUTION
:
case
DISPLAYCONFIG_DEVICE_INFO_GET_ADVANCED_COLOR_INFO
:
case
DISPLAYCONFIG_DEVICE_INFO_SET_ADVANCED_COLOR_STATE
:
case
DISPLAYCONFIG_DEVICE_INFO_GET_SDR_WHITE_LEVEL
:
default
:
FIXME
(
"Unimplemented packet type: %u
\n
"
,
packet
->
type
);
return
ERROR_INVALID_PARAMETER
;
}
}
}
dlls/user32/tests/monitor.c
View file @
b1b1399d
...
@@ -1332,8 +1332,6 @@ static void test_display_config_get_device_info(void)
...
@@ -1332,8 +1332,6 @@ static void test_display_config_get_device_info(void)
DISPLAYCONFIG_TARGET_PREFERRED_MODE
preferred_mode
;
DISPLAYCONFIG_TARGET_PREFERRED_MODE
preferred_mode
;
DISPLAYCONFIG_ADAPTER_NAME
adapter_name
;
DISPLAYCONFIG_ADAPTER_NAME
adapter_name
;
todo_wine
{
ret
=
pDisplayConfigGetDeviceInfo
(
NULL
);
ret
=
pDisplayConfigGetDeviceInfo
(
NULL
);
ok
(
ret
==
ERROR_GEN_FAILURE
,
"got %d
\n
"
,
ret
);
ok
(
ret
==
ERROR_GEN_FAILURE
,
"got %d
\n
"
,
ret
);
...
@@ -1366,7 +1364,6 @@ static void test_display_config_get_device_info(void)
...
@@ -1366,7 +1364,6 @@ static void test_display_config_get_device_info(void)
source_name
.
header
.
size
=
sizeof
(
source_name
)
-
1
;
source_name
.
header
.
size
=
sizeof
(
source_name
)
-
1
;
ret
=
pDisplayConfigGetDeviceInfo
(
&
source_name
.
header
);
ret
=
pDisplayConfigGetDeviceInfo
(
&
source_name
.
header
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"got %d
\n
"
,
ret
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"got %d
\n
"
,
ret
);
}
source_name
.
header
.
type
=
DISPLAYCONFIG_DEVICE_INFO_GET_SOURCE_NAME
;
source_name
.
header
.
type
=
DISPLAYCONFIG_DEVICE_INFO_GET_SOURCE_NAME
;
source_name
.
header
.
size
=
sizeof
(
source_name
);
source_name
.
header
.
size
=
sizeof
(
source_name
);
...
@@ -1379,7 +1376,6 @@ static void test_display_config_get_device_info(void)
...
@@ -1379,7 +1376,6 @@ static void test_display_config_get_device_info(void)
target_name
.
header
.
type
=
DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_NAME
;
target_name
.
header
.
type
=
DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_NAME
;
target_name
.
header
.
size
=
sizeof
(
target_name
)
-
1
;
target_name
.
header
.
size
=
sizeof
(
target_name
)
-
1
;
ret
=
pDisplayConfigGetDeviceInfo
(
&
target_name
.
header
);
ret
=
pDisplayConfigGetDeviceInfo
(
&
target_name
.
header
);
todo_wine
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"got %d
\n
"
,
ret
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"got %d
\n
"
,
ret
);
target_name
.
header
.
type
=
DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_NAME
;
target_name
.
header
.
type
=
DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_NAME
;
...
@@ -1393,7 +1389,6 @@ static void test_display_config_get_device_info(void)
...
@@ -1393,7 +1389,6 @@ static void test_display_config_get_device_info(void)
preferred_mode
.
header
.
type
=
DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_PREFERRED_MODE
;
preferred_mode
.
header
.
type
=
DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_PREFERRED_MODE
;
preferred_mode
.
header
.
size
=
sizeof
(
preferred_mode
)
-
1
;
preferred_mode
.
header
.
size
=
sizeof
(
preferred_mode
)
-
1
;
ret
=
pDisplayConfigGetDeviceInfo
(
&
preferred_mode
.
header
);
ret
=
pDisplayConfigGetDeviceInfo
(
&
preferred_mode
.
header
);
todo_wine
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"got %d
\n
"
,
ret
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"got %d
\n
"
,
ret
);
preferred_mode
.
header
.
type
=
DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_PREFERRED_MODE
;
preferred_mode
.
header
.
type
=
DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_PREFERRED_MODE
;
...
@@ -1407,7 +1402,6 @@ static void test_display_config_get_device_info(void)
...
@@ -1407,7 +1402,6 @@ static void test_display_config_get_device_info(void)
adapter_name
.
header
.
type
=
DISPLAYCONFIG_DEVICE_INFO_GET_ADAPTER_NAME
;
adapter_name
.
header
.
type
=
DISPLAYCONFIG_DEVICE_INFO_GET_ADAPTER_NAME
;
adapter_name
.
header
.
size
=
sizeof
(
adapter_name
)
-
1
;
adapter_name
.
header
.
size
=
sizeof
(
adapter_name
)
-
1
;
ret
=
pDisplayConfigGetDeviceInfo
(
&
adapter_name
.
header
);
ret
=
pDisplayConfigGetDeviceInfo
(
&
adapter_name
.
header
);
todo_wine
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"got %d
\n
"
,
ret
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"got %d
\n
"
,
ret
);
adapter_name
.
header
.
type
=
DISPLAYCONFIG_DEVICE_INFO_GET_ADAPTER_NAME
;
adapter_name
.
header
.
type
=
DISPLAYCONFIG_DEVICE_INFO_GET_ADAPTER_NAME
;
...
...
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