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
a72af310
Commit
a72af310
authored
Dec 22, 2009
by
Andrew Nguyen
Committed by
Alexandre Julliard
Dec 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxdiagn: Validate the dwDxDiagHeaderVersion member in IDxDiagProvider::Initialize.
parent
e1dd6a86
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
provider.c
dlls/dxdiagn/provider.c
+2
-1
provider.c
dlls/dxdiagn/tests/provider.c
+0
-1
No files found.
dlls/dxdiagn/provider.c
View file @
a72af310
...
...
@@ -96,7 +96,8 @@ static HRESULT WINAPI IDxDiagProviderImpl_Initialize(PDXDIAGPROVIDER iface, DXDI
if
(
NULL
==
pParams
)
{
return
E_POINTER
;
}
if
(
pParams
->
dwSize
!=
sizeof
(
DXDIAG_INIT_PARAMS
))
{
if
(
pParams
->
dwSize
!=
sizeof
(
DXDIAG_INIT_PARAMS
)
||
pParams
->
dwDxDiagHeaderVersion
!=
DXDIAG_DX9_SDK_VERSION
)
{
return
E_INVALIDARG
;
}
...
...
dlls/dxdiagn/tests/provider.c
View file @
a72af310
...
...
@@ -61,7 +61,6 @@ static void test_Initialize(void)
params
.
bAllowWHQLChecks
=
FALSE
;
params
.
pReserved
=
NULL
;
hr
=
IDxDiagProvider_Initialize
(
pddp
,
&
params
);
todo_wine
ok
(
hr
==
E_INVALIDARG
,
"Expected IDxDiagProvider::Initialize to return E_INVALIDARG, got %x
\n
"
,
hr
);
...
...
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