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)
{