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
d9570c39
Commit
d9570c39
authored
Feb 10, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxgi: Return DXGI_ERROR_INVALID_CALL when given a NULL mode_count in…
dxgi: Return DXGI_ERROR_INVALID_CALL when given a NULL mode_count in dxgi_output_GetDisplayModeList().
parent
4d7bd4ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
output.c
dlls/dxgi/output.c
+1
-3
device.c
dlls/dxgi/tests/device.c
+2
-2
No files found.
dlls/dxgi/output.c
View file @
d9570c39
...
...
@@ -132,9 +132,7 @@ static HRESULT STDMETHODCALLTYPE dxgi_output_GetDisplayModeList(IDXGIOutput *ifa
iface
,
debug_dxgi_format
(
format
),
flags
,
mode_count
,
desc
);
if
(
!
mode_count
)
{
return
S_OK
;
}
return
DXGI_ERROR_INVALID_CALL
;
if
(
format
==
DXGI_FORMAT_UNKNOWN
)
{
...
...
dlls/dxgi/tests/device.c
View file @
d9570c39
...
...
@@ -279,7 +279,7 @@ static void test_output(void)
ok
(
SUCCEEDED
(
hr
),
"EnumOutputs failed, hr %#x.
\n
"
,
hr
);
hr
=
IDXGIOutput_GetDisplayModeList
(
output
,
DXGI_FORMAT_R8G8B8A8_UNORM
,
0
,
NULL
,
NULL
);
todo_wine
ok
(
hr
==
DXGI_ERROR_INVALID_CALL
,
"Got unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
DXGI_ERROR_INVALID_CALL
,
"Got unexpected hr %#x.
\n
"
,
hr
);
hr
=
IDXGIOutput_GetDisplayModeList
(
output
,
DXGI_FORMAT_R8G8B8A8_UNORM
,
0
,
&
mode_count
,
NULL
);
ok
(
SUCCEEDED
(
hr
)
...
...
@@ -309,7 +309,7 @@ static void test_output(void)
hr
=
IDXGIOutput_GetDisplayModeList
(
output
,
DXGI_FORMAT_R8G8B8A8_UNORM
,
DXGI_ENUM_MODES_SCALING
,
NULL
,
modes
);
todo_wine
ok
(
hr
==
DXGI_ERROR_INVALID_CALL
,
"Got unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
DXGI_ERROR_INVALID_CALL
,
"Got unexpected hr %#x.
\n
"
,
hr
);
ok
(
!
modes
[
0
].
Height
,
"No output was expected.
\n
"
);
mode_count
=
0
;
...
...
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