schedsvc: Explicitly terminate the received name in the notification buffer.

And print a FIXME if we've got multiple entries.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Dmitry Timoshkov 2018-05-08 17:40:41 +08:00 committed by Alexandre Julliard
parent 18df0bc05b
commit 7d96703016

View file

@ -82,12 +82,17 @@ static DWORD WINAPI tasks_monitor_thread(void *arg)
NULL, &ov, NULL);
if (!ret) break;
if (info.data.NextEntryOffset)
FIXME("got multiple entries\n");
events[0] = done_event;
events[1] = ov.hEvent;
ret = WaitForMultipleObjects(2, events, FALSE, INFINITE);
if (ret == WAIT_OBJECT_0) break;
info.data.FileName[info.data.FileNameLength/sizeof(WCHAR)] = 0;
switch (info.data.Action)
{
case FILE_ACTION_ADDED: