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:
parent
18df0bc05b
commit
7d96703016
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue