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
7d08ae9b
Commit
7d08ae9b
authored
Sep 04, 2012
by
Rico Schüller
Committed by
Alexandre Julliard
Sep 04, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Make '\0' the default case in get_constant_by_name().
parent
b999ab16
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
shader.c
dlls/d3dx9_36/shader.c
+2
-6
No files found.
dlls/d3dx9_36/shader.c
View file @
7d08ae9b
...
...
@@ -752,7 +752,7 @@ static struct ctab_constant *get_constant_by_name(struct ID3DXConstantTableImpl
handles
=
constant
->
constants
;
}
length
=
strcspn
(
name
,
"[."
);
length
=
strcspn
(
name
,
"[."
);
part
=
name
+
length
;
for
(
i
=
0
;
i
<
count
;
i
++
)
...
...
@@ -767,13 +767,9 @@ static struct ctab_constant *get_constant_by_name(struct ID3DXConstantTableImpl
case
'['
:
return
get_constant_element_by_name
(
&
handles
[
i
],
part
);
case
'\0'
:
default
:
TRACE
(
"Returning parameter %p
\n
"
,
&
handles
[
i
]);
return
&
handles
[
i
];
default:
FIXME
(
"Unhandled case
\"
%c
\"\n
"
,
*--
part
);
break
;
}
}
}
...
...
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