From 31d356e7b46b74c56ba699852362565e0a79cc6a Mon Sep 17 00:00:00 2001 From: Martin Richter Date: Thu, 7 Sep 2023 08:11:36 +0200 Subject: [PATCH] Small fix for a 64bit build. Compile error due to wrong type usage. Switch to VS-2022 platform v143. --- PTZControl/PTZControl.vcxproj | 8 ++++---- PTZControl/PTZControlDlg.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/PTZControl/PTZControl.vcxproj b/PTZControl/PTZControl.vcxproj index fabe125..eb5f1f5 100644 --- a/PTZControl/PTZControl.vcxproj +++ b/PTZControl/PTZControl.vcxproj @@ -29,14 +29,14 @@ Application true - v142 + v143 Unicode Static Application false - v142 + v143 true Unicode Static @@ -44,14 +44,14 @@ Application true - v142 + v143 Unicode Static Application false - v142 + v143 true Unicode Static diff --git a/PTZControl/PTZControlDlg.cpp b/PTZControl/PTZControlDlg.cpp index 897a186..aaaf670 100644 --- a/PTZControl/PTZControlDlg.cpp +++ b/PTZControl/PTZControlDlg.cpp @@ -433,7 +433,7 @@ UINT AFX_CDECL CPTZControlDlg::GuardThread(LPVOID p) // Event is set. return 0; - DWORD dwResult = 0; + DWORD_PTR dwResult = 0; // Check if the application is blocking if (::SendMessageTimeout(pWnd->GetSafeHwnd(), WM_NULL, 0, 0, SMTO_ABORTIFHUNG | SMTO_NORMAL, 1000, &dwResult)==0) {