Commit 7d967030 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

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

And print a FIXME if we've got multiple entries. Signed-off-by: 's avatarDmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 18df0bc0
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment