mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[WINESYNC] d3dx9: Remove redundant "not NULL" checks (coccinellery).
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id be30aab1e21e5b6811470a351ec0d6100e6e7687 by Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
parent
6760065ef2
commit
393ec322ef
2 changed files with 21 additions and 46 deletions
|
@ -952,15 +952,14 @@ struct d3dx_parameter *get_parameter_by_name(struct d3dx9_base_effect *base,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
count = parameter ? parameter->member_count : base->parameter_count;
|
||||
count = parameter->member_count;
|
||||
|
||||
length = strcspn( name, "[.@" );
|
||||
part = name + length;
|
||||
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
temp_parameter = !parameter ? &base->parameters[i].param
|
||||
: ¶meter->members[i];
|
||||
temp_parameter = ¶meter->members[i];
|
||||
|
||||
if (!strcmp(temp_parameter->name, name))
|
||||
{
|
||||
|
@ -975,13 +974,8 @@ struct d3dx_parameter *get_parameter_by_name(struct d3dx9_base_effect *base,
|
|||
return get_parameter_by_name(base, temp_parameter, part);
|
||||
|
||||
case '@':
|
||||
{
|
||||
struct d3dx_top_level_parameter *top_param
|
||||
= top_level_parameter_from_parameter(temp_parameter);
|
||||
return NULL;
|
||||
|
||||
return parameter ? NULL : get_annotation_by_name(base, top_param->annotation_count,
|
||||
top_param->annotations, part);
|
||||
}
|
||||
case '[':
|
||||
return get_parameter_element_by_name(base, temp_parameter, part);
|
||||
|
||||
|
|
|
@ -1,37 +1,18 @@
|
|||
directories:
|
||||
dlls/d3dx9_24: dll/directx/wine/d3dx9_24
|
||||
dlls/d3dx9_25: dll/directx/wine/d3dx9_25
|
||||
dlls/d3dx9_26: dll/directx/wine/d3dx9_26
|
||||
dlls/d3dx9_27: dll/directx/wine/d3dx9_27
|
||||
dlls/d3dx9_28: dll/directx/wine/d3dx9_28
|
||||
dlls/d3dx9_29: dll/directx/wine/d3dx9_29
|
||||
dlls/d3dx9_30: dll/directx/wine/d3dx9_30
|
||||
dlls/d3dx9_31: dll/directx/wine/d3dx9_31
|
||||
dlls/d3dx9_32: dll/directx/wine/d3dx9_32
|
||||
dlls/d3dx9_33: dll/directx/wine/d3dx9_33
|
||||
dlls/d3dx9_34: dll/directx/wine/d3dx9_34
|
||||
dlls/d3dx9_35: dll/directx/wine/d3dx9_35
|
||||
dlls/d3dx9_36: dll/directx/wine/d3dx9_36
|
||||
dlls/d3dx9_36/tests: modules/rostests/winetests/d3dx9_36
|
||||
dlls/d3dx9_37: dll/directx/wine/d3dx9_37
|
||||
dlls/d3dx9_38: dll/directx/wine/d3dx9_38
|
||||
dlls/d3dx9_39: dll/directx/wine/d3dx9_39
|
||||
dlls/d3dx9_40: dll/directx/wine/d3dx9_40
|
||||
dlls/d3dx9_41: dll/directx/wine/d3dx9_41
|
||||
dlls/d3dx9_42: dll/directx/wine/d3dx9_42
|
||||
dlls/d3dx9_43: dll/directx/wine/d3dx9_43
|
||||
files:
|
||||
include/d3dx9.h: sdk/include/dxsdk/d3dx9.h
|
||||
include/d3dx9anim.h: sdk/include/dxsdk/d3dx9anim.h
|
||||
include/d3dx9core.h: sdk/include/dxsdk/d3dx9core.h
|
||||
include/d3dx9effect.h: sdk/include/dxsdk/d3dx9effect.h
|
||||
include/d3dx9math.h: sdk/include/dxsdk/d3dx9math.h
|
||||
include/d3dx9math.inl: sdk/include/dxsdk/d3dx9math.inl
|
||||
include/d3dx9mesh.h: sdk/include/dxsdk/d3dx9mesh.h
|
||||
include/d3dx9of.h: sdk/include/dxsdk/d3dx9of.h
|
||||
include/d3dx9shader.h: sdk/include/dxsdk/d3dx9shader.h
|
||||
include/d3dx9shape.h: sdk/include/dxsdk/d3dx9shape.h
|
||||
include/d3dx9tex.h: sdk/include/dxsdk/d3dx9tex.h
|
||||
include/d3dx9xof.h: sdk/include/dxsdk/d3dx9xof.h
|
||||
tags:
|
||||
wine: wine-4.2
|
||||
directories: {dlls/d3dx9_24: dll/directx/wine/d3dx9_24, dlls/d3dx9_25: dll/directx/wine/d3dx9_25,
|
||||
dlls/d3dx9_26: dll/directx/wine/d3dx9_26, dlls/d3dx9_27: dll/directx/wine/d3dx9_27,
|
||||
dlls/d3dx9_28: dll/directx/wine/d3dx9_28, dlls/d3dx9_29: dll/directx/wine/d3dx9_29,
|
||||
dlls/d3dx9_30: dll/directx/wine/d3dx9_30, dlls/d3dx9_31: dll/directx/wine/d3dx9_31,
|
||||
dlls/d3dx9_32: dll/directx/wine/d3dx9_32, dlls/d3dx9_33: dll/directx/wine/d3dx9_33,
|
||||
dlls/d3dx9_34: dll/directx/wine/d3dx9_34, dlls/d3dx9_35: dll/directx/wine/d3dx9_35,
|
||||
dlls/d3dx9_36: dll/directx/wine/d3dx9_36, dlls/d3dx9_36/tests: modules/rostests/winetests/d3dx9_36,
|
||||
dlls/d3dx9_37: dll/directx/wine/d3dx9_37, dlls/d3dx9_38: dll/directx/wine/d3dx9_38,
|
||||
dlls/d3dx9_39: dll/directx/wine/d3dx9_39, dlls/d3dx9_40: dll/directx/wine/d3dx9_40,
|
||||
dlls/d3dx9_41: dll/directx/wine/d3dx9_41, dlls/d3dx9_42: dll/directx/wine/d3dx9_42,
|
||||
dlls/d3dx9_43: dll/directx/wine/d3dx9_43}
|
||||
files: {include/d3dx9.h: sdk/include/dxsdk/d3dx9.h, include/d3dx9anim.h: sdk/include/dxsdk/d3dx9anim.h,
|
||||
include/d3dx9core.h: sdk/include/dxsdk/d3dx9core.h, include/d3dx9effect.h: sdk/include/dxsdk/d3dx9effect.h,
|
||||
include/d3dx9math.h: sdk/include/dxsdk/d3dx9math.h, include/d3dx9math.inl: sdk/include/dxsdk/d3dx9math.inl,
|
||||
include/d3dx9mesh.h: sdk/include/dxsdk/d3dx9mesh.h, include/d3dx9of.h: sdk/include/dxsdk/d3dx9of.h,
|
||||
include/d3dx9shader.h: sdk/include/dxsdk/d3dx9shader.h, include/d3dx9shape.h: sdk/include/dxsdk/d3dx9shape.h,
|
||||
include/d3dx9tex.h: sdk/include/dxsdk/d3dx9tex.h, include/d3dx9xof.h: sdk/include/dxsdk/d3dx9xof.h}
|
||||
tags: {wine: be30aab1e21e5b6811470a351ec0d6100e6e7687}
|
||||
|
|
Loading…
Reference in a new issue