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
73d98ccd
Commit
73d98ccd
authored
Apr 06, 2008
by
Rico Schüller
Committed by
Alexandre Julliard
Apr 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Filter out invalid stuff in SetStreamSourceFreq().
parent
65f9abc8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
device.c
dlls/wined3d/device.c
+14
-0
No files found.
dlls/wined3d/device.c
View file @
73d98ccd
...
...
@@ -2567,6 +2567,20 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetStreamSourceFreq(IWineD3DDevice *ifa
UINT
oldFlags
=
This
->
updateStateBlock
->
streamFlags
[
StreamNumber
];
UINT
oldFreq
=
This
->
updateStateBlock
->
streamFreq
[
StreamNumber
];
/* Verify input at least in d3d9 this is invalid*/
if
(
(
Divider
&
WINED3DSTREAMSOURCE_INSTANCEDATA
)
&&
(
Divider
&
WINED3DSTREAMSOURCE_INDEXEDDATA
)){
WARN
(
"INSTANCEDATA and INDEXEDDATA were set, returning D3DERR_INVALIDCALL
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
if
(
(
Divider
&
WINED3DSTREAMSOURCE_INSTANCEDATA
)
&&
StreamNumber
==
0
){
WARN
(
"INSTANCEDATA used on stream 0, returning D3DERR_INVALIDCALL
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
if
(
Divider
==
0
){
WARN
(
"Divider is 0, returning D3DERR_INVALIDCALL
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
TRACE
(
"(%p) StreamNumber(%d), Divider(%d)
\n
"
,
This
,
StreamNumber
,
Divider
);
This
->
updateStateBlock
->
streamFlags
[
StreamNumber
]
=
Divider
&
(
WINED3DSTREAMSOURCE_INSTANCEDATA
|
WINED3DSTREAMSOURCE_INDEXEDDATA
);
...
...
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