aboutsummaryrefslogtreecommitdiffstats
path: root/win/winvnc/QueryConnectDialog.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'win/winvnc/QueryConnectDialog.cxx')
-rw-r--r--win/winvnc/QueryConnectDialog.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/winvnc/QueryConnectDialog.cxx b/win/winvnc/QueryConnectDialog.cxx
index 26bd9331..bedfe5a9 100644
--- a/win/winvnc/QueryConnectDialog.cxx
+++ b/win/winvnc/QueryConnectDialog.cxx
@@ -44,7 +44,7 @@ static IntParameter timeout("QueryConnectTimeout",
QueryConnectDialog::QueryConnectDialog(network::Socket* sock_,
const char* userName_,
VNCServerWin32* s)
-: Dialog(GetModuleHandle(0)),
+: Dialog(GetModuleHandle(nullptr)),
sock(sock_), peerIp(sock->getPeerAddress()), userName(userName_),
approve(false), server(s) {
}
@@ -73,7 +73,7 @@ void QueryConnectDialog::worker() {
// - Dialog overrides
void QueryConnectDialog::initDialog() {
- if (!SetTimer(handle, 1, 1000, 0))
+ if (!SetTimer(handle, 1, 1000, nullptr))
throw rdr::SystemException("SetTimer", GetLastError());
setItemString(IDC_QUERY_HOST, peerIp.c_str());
if (userName.empty())