aboutsummaryrefslogtreecommitdiffstats
path: root/win/vncconfig
diff options
context:
space:
mode:
Diffstat (limited to 'win/vncconfig')
-rw-r--r--win/vncconfig/vncconfig.cxx15
-rw-r--r--win/vncconfig/vncconfig.rc2
2 files changed, 6 insertions, 11 deletions
diff --git a/win/vncconfig/vncconfig.cxx b/win/vncconfig/vncconfig.cxx
index fffdea18..25d0f643 100644
--- a/win/vncconfig/vncconfig.cxx
+++ b/win/vncconfig/vncconfig.cxx
@@ -61,15 +61,12 @@ processParams(int argc, char* argv[]) {
} else if (strcasecmp(argv[i], "-user") == 0) {
configKey = HKEY_CURRENT_USER;
} else {
- // Try to process <option>=<value>, or -<bool>
- if (Configuration::setParam(argv[i], true))
+ int ret;
+
+ ret = Configuration::handleParamArg(argc, argv, i);
+ if (ret > 0) {
+ i += ret - 1;
continue;
- // Try to process -<option> <value>
- if ((argv[i][0] == '-') && (i+1 < argc)) {
- if (Configuration::setParam(&argv[i][1], argv[i+1], true)) {
- i++;
- continue;
- }
}
}
}
@@ -90,8 +87,6 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE /*prev*/, char* /*cmdLine*/, int /*
vlog.info("Starting vncconfig applet");
#endif
- Configuration::enableServerParams();
-
try {
try {
// Process command-line args
diff --git a/win/vncconfig/vncconfig.rc b/win/vncconfig/vncconfig.rc
index ca188bcf..f4b856dd 100644
--- a/win/vncconfig/vncconfig.rc
+++ b/win/vncconfig/vncconfig.rc
@@ -469,7 +469,7 @@ BEGIN
#endif
VALUE "FileVersion", __RCVERSIONSTR
VALUE "InternalName", "vncconfig\0"
- VALUE "LegalCopyright", "Copyright (C) 1999-2024 TigerVNC team and many others (see README.rst)\0"
+ VALUE "LegalCopyright", "Copyright (C) 1999-2025 TigerVNC team and many others (see README.rst)\0"
VALUE "LegalTrademarks", "TigerVNC\0"
VALUE "OriginalFilename", "vncconfig.exe\0"
VALUE "PrivateBuild", "\0"