amstream: Avoid wcsncpy().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e85dee1fb7
commit
af34af7bac
|
@ -517,7 +517,7 @@ static HRESULT WINAPI filter_JoinFilterGraph(IMediaStreamFilter *iface,
|
|||
EnterCriticalSection(&filter->cs);
|
||||
|
||||
if (name)
|
||||
wcsncpy(filter->name, name, ARRAY_SIZE(filter->name));
|
||||
lstrcpynW(filter->name, name, ARRAY_SIZE(filter->name));
|
||||
else
|
||||
filter->name[0] = 0;
|
||||
filter->graph = graph;
|
||||
|
|
Loading…
Reference in New Issue