Alex Henrie : quartz/tests: Remove redundant null check from testfilter_JoinFilterGraph.
Module: wine Branch: master Commit: b3143850c263b623defdb2885a75b6758b4978c4 URL: https://gitlab.winehq.org/wine/wine/-/commit/b3143850c263b623defdb2885a75b67... Author: Alex Henrie <alexhenrie24(a)gmail.com> Date: Sun Dec 4 20:47:43 2022 -0700 quartz/tests: Remove redundant null check from testfilter_JoinFilterGraph. On Windows, wcsdup(NULL) always returns NULL. --- dlls/quartz/tests/filtergraph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/quartz/tests/filtergraph.c b/dlls/quartz/tests/filtergraph.c index c06041b422f..d6ce9d31ce2 100644 --- a/dlls/quartz/tests/filtergraph.c +++ b/dlls/quartz/tests/filtergraph.c @@ -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; }
participants (1)
-
Alexandre Julliard