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
de82b55b
Commit
de82b55b
authored
Oct 26, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Refuse to parse shaders with an invalid version token.
parent
5fbe5ee0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
shader_sm1.c
dlls/wined3d/shader_sm1.c
+12
-1
No files found.
dlls/wined3d/shader_sm1.c
View file @
de82b55b
...
...
@@ -506,7 +506,18 @@ static int shader_skip_unrecognized(const struct wined3d_sm1_data *priv, const D
static
void
*
shader_sm1_init
(
const
DWORD
*
byte_code
,
const
struct
wined3d_shader_signature
*
output_signature
)
{
struct
wined3d_sm1_data
*
priv
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
priv
));
struct
wined3d_sm1_data
*
priv
;
BYTE
major
,
minor
;
major
=
WINED3D_SM1_VERSION_MAJOR
(
*
byte_code
);
minor
=
WINED3D_SM1_VERSION_MINOR
(
*
byte_code
);
if
(
WINED3D_SHADER_VERSION
(
major
,
minor
)
>
WINED3D_SHADER_VERSION
(
3
,
0
))
{
WARN
(
"Invalid shader version %u.%u (%#x).
\n
"
,
major
,
minor
,
*
byte_code
);
return
NULL
;
}
priv
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
priv
));
if
(
!
priv
)
{
ERR
(
"Failed to allocate private data
\n
"
);
...
...
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