quartz/tests: Remove redundant null check from testfilter_JoinFilterGraph.
On Windows, wcsdup(NULL) always returns NULL.
This commit is contained in:
parent
c5700a63fb
commit
b3143850c2
1 changed files with 1 additions and 1 deletions
|
@ -1501,7 +1501,7 @@ static HRESULT WINAPI testfilter_JoinFilterGraph(IBaseFilter *iface, IFilterGrap
|
|||
|
||||
filter->graph = graph;
|
||||
free(filter->name);
|
||||
filter->name = name ? wcsdup(name) : NULL;
|
||||
filter->name = wcsdup(name);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue