win, clipboard wait timeout, debug

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow
2023-06-29 15:50:15 +08:00
parent 47fa90741f
commit aaca56c1f8
37 changed files with 42 additions and 2 deletions

View File

@@ -1497,9 +1497,13 @@ UINT wait_response_event(wfClipboard *clipboard, HANDLE event, void **data)
msg.details = NULL;
clipboard->context->NotifyClipboardMsg(&msg);
rc = ERROR_INTERNAL_ERROR;
}
if ((*data) != NULL)
if (!ResetEvent(event))
{
// NOTE: critical error here, crash may be better
}
}
else if ((*data) != NULL)
{
if (!ResetEvent(event))
{