diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-02-12 15:48:37 +0100 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2018-02-12 15:48:37 +0100 |
commit | f40df29d96a29197f9949b63da80f9ba3152fc79 (patch) | |
tree | 3a99c135017cc5af82919bf63449af011b3ffc1a /src/qt/winshutdownmonitor.cpp | |
parent | 5dc00f68c49c46a380a98d06233f90528b8e2557 (diff) |
Fix Windows build errors introduced in #10498
Fixes #12386
Diffstat (limited to 'src/qt/winshutdownmonitor.cpp')
-rw-r--r-- | src/qt/winshutdownmonitor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/winshutdownmonitor.cpp b/src/qt/winshutdownmonitor.cpp index e11a72899d..1e7a76efc0 100644 --- a/src/qt/winshutdownmonitor.cpp +++ b/src/qt/winshutdownmonitor.cpp @@ -56,7 +56,7 @@ bool WinShutdownMonitor::nativeEventFilter(const QByteArray &eventType, void *pM void WinShutdownMonitor::registerShutdownBlockReason(const QString& strReason, const HWND& mainWinId) { typedef BOOL (WINAPI *PSHUTDOWNBRCREATE)(HWND, LPCWSTR); - PSHUTDOWNBRCREATE shutdownBRCreate = static_cast<PSHUTDOWNBRCREATE>(GetProcAddress(GetModuleHandleA("User32.dll"), "ShutdownBlockReasonCreate")); + PSHUTDOWNBRCREATE shutdownBRCreate = (PSHUTDOWNBRCREATE)GetProcAddress(GetModuleHandleA("User32.dll"), "ShutdownBlockReasonCreate"); if (shutdownBRCreate == nullptr) { qWarning() << "registerShutdownBlockReason: GetProcAddress for ShutdownBlockReasonCreate failed"; return; |