Skip to content

Commit

Permalink
qt: Fix compiling for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Sep 28, 2024
1 parent c53414e commit 6cfa8e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/qt/winshutdownmonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

// If we don't want a message to be processed by Qt, return true and set result to
// the value that the window procedure should return. Otherwise return false.
bool WinShutdownMonitor::nativeEventFilter(const QByteArray &eventType, void *pMessage, long *pnResult)
bool WinShutdownMonitor::nativeEventFilter(const QByteArray &eventType, void *pMessage, qintptr *pnResult)
{
Q_UNUSED(eventType);

Expand Down
2 changes: 1 addition & 1 deletion src/qt/winshutdownmonitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class WinShutdownMonitor : public QAbstractNativeEventFilter
WinShutdownMonitor(std::function<void()> shutdown_fn) : m_shutdown_fn{std::move(shutdown_fn)} {}

/** Implements QAbstractNativeEventFilter interface for processing Windows messages */
bool nativeEventFilter(const QByteArray &eventType, void *pMessage, long *pnResult) override;
bool nativeEventFilter(const QByteArray &eventType, void *pMessage, qintptr *pnResult) override;

/** Register the reason for blocking shutdown on Windows to allow clean client exit */
static void registerShutdownBlockReason(const QString& strReason, const HWND& mainWinId);
Expand Down

0 comments on commit 6cfa8e7

Please sign in to comment.