From 9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 19 Sep 2024 06:14:33 +0200 Subject: Merging upstream version 4.4.0. Signed-off-by: Daniel Baumann --- ui/qt/interface_toolbar_reader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui/qt/interface_toolbar_reader.cpp') diff --git a/ui/qt/interface_toolbar_reader.cpp b/ui/qt/interface_toolbar_reader.cpp index d12f7472..6b5c1f1a 100644 --- a/ui/qt/interface_toolbar_reader.cpp +++ b/ui/qt/interface_toolbar_reader.cpp @@ -34,7 +34,7 @@ int InterfaceToolbarReader::async_pipe_read(void *data, int nbyte) int bytes_read = -1; overlap.Pointer = 0; - overlap.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL); + overlap.hEvent = CreateEvent(NULL, true, false, NULL); if (overlap.hEvent == NULL) { // CreateEvent failed with error code GetLastError() @@ -54,7 +54,7 @@ int InterfaceToolbarReader::async_pipe_read(void *data, int nbyte) if (WaitForSingleObject(overlap.hEvent, INFINITE) == WAIT_OBJECT_0) { // The wait operation has completed. - success = GetOverlappedResult(control_in_, &overlap, &nof_bytes_read, FALSE); + success = GetOverlappedResult(control_in_, &overlap, &nof_bytes_read, false); if (success && nof_bytes_read != 0) { -- cgit v1.2.3