Skip to content

Commit ab6f1b6

Browse files
practicalswiftfurszy
authored andcommitted
Fix Windows build errors
1 parent 6d1ad2d commit ab6f1b6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/qt/pivx.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ int main(int argc, char* argv[])
704704
app.createWindow(networkStyle.data());
705705
app.requestInitialize();
706706
#if defined(Q_OS_WIN)
707-
WinShutdownMonitor::registerShutdownBlockReason(QObject::tr("PIVX Core didn't yet exit safely..."), static_cast<HWND>(app.getMainWinId()));
707+
WinShutdownMonitor::registerShutdownBlockReason(QObject::tr("%1 didn't yet exit safely...").arg(QObject::tr(PACKAGE_NAME)), (HWND)app.getMainWinId());
708708
#endif
709709
app.exec();
710710
app.requestShutdown();

src/qt/winshutdownmonitor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ bool WinShutdownMonitor::nativeEventFilter(const QByteArray& eventType, void* pM
5454
void WinShutdownMonitor::registerShutdownBlockReason(const QString& strReason, const HWND& mainWinId)
5555
{
5656
typedef BOOL(WINAPI * PSHUTDOWNBRCREATE)(HWND, LPCWSTR);
57-
PSHUTDOWNBRCREATE shutdownBRCreate = static_cast<PSHUTDOWNBRCREATE>(GetProcAddress(GetModuleHandleA("User32.dll"), "ShutdownBlockReasonCreate"));
57+
PSHUTDOWNBRCREATE shutdownBRCreate = (PSHUTDOWNBRCREATE)GetProcAddress(GetModuleHandleA("User32.dll"), "ShutdownBlockReasonCreate");
5858
if (shutdownBRCreate == NULL) {
5959
qWarning() << "registerShutdownBlockReason: GetProcAddress for ShutdownBlockReasonCreate failed";
6060
return;

0 commit comments

Comments
 (0)