From: Katy Feng Date: Mon, 24 Apr 2023 19:30:14 +0000 (-0700) Subject: Change to common source file not applicable to open-vm-tools. X-Git-Tag: stable-12.3.0~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c66fb5c9ec87167f82d8b72c611a2df35af514a9;p=thirdparty%2Fopen-vm-tools.git Change to common source file not applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/rpcVmx/rpcvmx.c b/open-vm-tools/lib/rpcVmx/rpcvmx.c index 55c917397..df6ee9943 100644 --- a/open-vm-tools/lib/rpcVmx/rpcvmx.c +++ b/open-vm-tools/lib/rpcVmx/rpcvmx.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2004-2018,2019,2021 VMware, Inc. All rights reserved. + * Copyright (C) 2004-2018,2019,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 @@ -217,7 +217,11 @@ RpcVMX_ConfigGetString(const char *defval, const char *var) * We have to dup the default, because of our contract: values we * return must always be freed by the caller. */ +#if defined(_WIN32) && defined(USERLEVEL) + value = _strdup(defval); +#else value = strdup(defval); +#endif } }