diff options
Diffstat (limited to 'win/vncconfig/vncconfig.cxx')
-rw-r--r-- | win/vncconfig/vncconfig.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/win/vncconfig/vncconfig.cxx b/win/vncconfig/vncconfig.cxx index 2b7eaa1e..b8cb5dc8 100644 --- a/win/vncconfig/vncconfig.cxx +++ b/win/vncconfig/vncconfig.cxx @@ -84,9 +84,8 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE /*prev*/, char* /*cmdLine*/, int /* freopen("CONIN$","rb",stdin); freopen("CONOUT$","wb",stdout); freopen("CONOUT$","wb",stderr); - setbuf(stderr, 0); + setbuf(stderr, nullptr); initStdIOLoggers(); - LogWriter vlog("main"); logParams.setParam("*:stderr:100"); vlog.info("Starting vncconfig applet"); #endif @@ -130,7 +129,7 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE /*prev*/, char* /*cmdLine*/, int /* // Something weird happens on NT 4.0 SP5 but I can't reproduce it on other // NT 4.0 service pack revisions. if (e.err == ERROR_INVALID_PARAMETER) { - MsgBox(0, "Windows reported an error trying to secure the VNC Server settings for this user. " + MsgBox(nullptr, "Windows reported an error trying to secure the VNC Server settings for this user. " "Your settings may not be secure!", MB_ICONWARNING | MB_OK); } else if (e.err != ERROR_CALL_NOT_IMPLEMENTED && e.err != ERROR_NOT_LOGGED_ON) { @@ -166,14 +165,14 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE /*prev*/, char* /*cmdLine*/, int /* #ifdef _DEBUG vlog.debug("capture dialogs=%s", captureDialogs ? "true" : "false"); - sheet.showPropSheet(0, true, false, captureDialogs); + sheet.showPropSheet(nullptr, true, false, captureDialogs); #else - sheet.showPropSheet(0, true, false); + sheet.showPropSheet(nullptr, true, false); #endif } catch (rdr::SystemException& e) { switch (e.err) { case ERROR_ACCESS_DENIED: - MsgBox(0, "You do not have sufficient access rights to run the VNC Configuration applet", + MsgBox(nullptr, "You do not have sufficient access rights to run the VNC Configuration applet", MB_ICONSTOP | MB_OK); return 1; }; @@ -181,7 +180,7 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE /*prev*/, char* /*cmdLine*/, int /* } } catch (rdr::Exception& e) { - MsgBox(NULL, e.str(), MB_ICONEXCLAMATION | MB_OK); + MsgBox(nullptr, e.str(), MB_ICONEXCLAMATION | MB_OK); return 1; } |