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
8a8ad1cc
Commit
8a8ad1cc
authored
Sep 06, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Avoid a memcpy() in IWineD3DImpl_FillGLCaps().
And associated stack buffer.
parent
d9b463af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
directx.c
dlls/wined3d/directx.c
+4
-6
No files found.
dlls/wined3d/directx.c
View file @
8a8ad1cc
...
...
@@ -2336,22 +2336,20 @@ static BOOL IWineD3DImpl_FillGLCaps(struct wined3d_adapter *adapter)
while
(
*
GL_Extensions
)
{
const
char
*
start
;
char
current_ext
[
256
];
while
(
isspace
(
*
GL_Extensions
))
++
GL_Extensions
;
start
=
GL_Extensions
;
while
(
!
isspace
(
*
GL_Extensions
)
&&
*
GL_Extensions
)
++
GL_Extensions
;
len
=
GL_Extensions
-
start
;
if
(
!
len
||
len
>=
sizeof
(
current_ext
)
)
continue
;
if
(
!
len
)
continue
;
memcpy
(
current_ext
,
start
,
len
);
current_ext
[
len
]
=
'\0'
;
TRACE_
(
d3d_caps
)(
"- %s
\n
"
,
debugstr_a
(
current_ext
));
TRACE_
(
d3d_caps
)(
"- %s
\n
"
,
debugstr_an
(
start
,
len
));
for
(
i
=
0
;
i
<
(
sizeof
(
EXTENSION_MAP
)
/
sizeof
(
*
EXTENSION_MAP
));
++
i
)
{
if
(
!
strcmp
(
current_ext
,
EXTENSION_MAP
[
i
].
extension_string
))
if
(
len
==
strlen
(
EXTENSION_MAP
[
i
].
extension_string
)
&&
!
memcmp
(
start
,
EXTENSION_MAP
[
i
].
extension_string
,
len
))
{
TRACE_
(
d3d_caps
)(
" FOUND: %s support.
\n
"
,
EXTENSION_MAP
[
i
].
extension_string
);
gl_info
->
supported
[
EXTENSION_MAP
[
i
].
extension
]
=
TRUE
;
...
...
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