summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/serialport/qserialport_win.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serialport/qserialport_win.cpp b/src/serialport/qserialport_win.cpp
index 19463e01..536451d8 100644
--- a/src/serialport/qserialport_win.cpp
+++ b/src/serialport/qserialport_win.cpp
@@ -189,7 +189,7 @@ public:
dptr->startAsyncRead();
} else { // driver queue is emplty, so startup wait comm event
CommOverlappedEventNotifier *n =
- reinterpret_cast<CommOverlappedEventNotifier *>(dptr->lookupCommEventNotifier());
+ qobject_cast<CommOverlappedEventNotifier *>(dptr->lookupCommEventNotifier());
if (n)
n->startWaitCommEvent();
}