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
a4fad541
Commit
a4fad541
authored
Apr 11, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 12, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Don't write past the end of the buffer's conversion_map.
parent
5f7e0876
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
buffer.c
dlls/wined3d/buffer.c
+5
-4
No files found.
dlls/wined3d/buffer.c
View file @
a4fad541
...
@@ -275,12 +275,13 @@ static BOOL buffer_process_converted_attribute(struct wined3d_buffer *This,
...
@@ -275,12 +275,13 @@ static BOOL buffer_process_converted_attribute(struct wined3d_buffer *This,
attrib_size
=
attrib
->
format_desc
->
component_count
*
attrib
->
format_desc
->
component_size
;
attrib_size
=
attrib
->
format_desc
->
component_count
*
attrib
->
format_desc
->
component_size
;
for
(
i
=
0
;
i
<
attrib_size
;
++
i
)
for
(
i
=
0
;
i
<
attrib_size
;
++
i
)
{
{
if
(
This
->
conversion_map
[
data
+
i
]
!=
conversion_type
)
DWORD_PTR
idx
=
(
data
+
i
)
%
This
->
stride
;
if
(
This
->
conversion_map
[
idx
]
!=
conversion_type
)
{
{
TRACE
(
"Byte %ld in vertex changed
\n
"
,
i
+
data
);
TRACE
(
"Byte %ld in vertex changed
\n
"
,
i
dx
);
TRACE
(
"It was type %d, is %d now
\n
"
,
This
->
conversion_map
[
data
+
i
],
conversion_type
);
TRACE
(
"It was type %d, is %d now
\n
"
,
This
->
conversion_map
[
idx
],
conversion_type
);
ret
=
TRUE
;
ret
=
TRUE
;
This
->
conversion_map
[
data
+
i
]
=
conversion_type
;
This
->
conversion_map
[
idx
]
=
conversion_type
;
}
}
}
}
...
...
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