/** Where to find Tools data in the Win32 registry. */
-#define CONF_VMWARE_TOOLS_REGKEY "Software\\VMware, Inc.\\VMware Tools"
+#if defined(_WIN32)
+# ifndef WSTR
+# define WSTR_(X) L##X
+# define WSTR(X) WSTR_(X)
+# endif
+# define CONF_VMWARE_TOOLS_REGKEY "Software\\VMware, Inc.\\VMware Tools"
+# define CONF_VMWARE_TOOLS_INSTPATH_KEY "InstallPath"
+
+# define CONF_VMWARE_TOOLS_REGKEY_W WSTR(CONF_VMWARE_TOOLS_REGKEY)
+# define CONF_VMWARE_TOOLS_INSTPATH_KEY_W WSTR(CONF_VMWARE_TOOLS_INSTPATH_KEY)
+#endif
/* Wait 5 seconds between polls to see if the conf file has changed */
#define CONF_POLL_TIME 5
/*********************************************************
- * Copyright (C) 2011-2020 VMware, Inc. All rights reserved.
+ * Copyright (c) 2011-2020, 2023 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
#define VMW_TEXT_DOMAIN "VGAuthCli"
#include "i18n.h"
#include "prefs.h"
+#ifdef _WIN32
+# include "winUtil.h"
+#endif
static gchar *appName;
int i;
char **argvUtf8 = g_malloc0((argc + 1) * sizeof (char*));
+#ifdef _WIN32
+ WinUtil_EnableSafePathSearching();
+#if defined(VMX86_RELEASE)
+ WinUtil_VerifyExePathW();
+#endif
+#endif
+
for (i = 0; i < argc; ++i) {
CHK_UTF16_TO_UTF8(argvUtf8[i], argv[i], goto end);
}
/*********************************************************
- * Copyright (C) 2011-2021 VMware, Inc. All rights reserved.
+ * Copyright (c) 2011-2021, 2023 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
{
#ifdef _WIN32
WinUtil_EnableSafePathSearching();
+#if defined(VMX86_RELEASE)
+ WinUtil_VerifyExePathW();
+#endif
#endif
gPrefs = Pref_Init(VGAUTH_PREF_CONFIG_FILENAME);