From: VMware, Inc <> Date: Mon, 26 Jul 2010 18:55:24 +0000 (-0700) Subject: Correctly initialize the vm_atomic.h variables. X-Git-Tag: 2010.07.25-280253~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=162045d50435635d7a51a7e430ecdb23fe240e82;p=thirdparty%2Fopen-vm-tools.git Correctly initialize the vm_atomic.h variables. Also unrelated changes from private branch merge. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/lib/include/vmware/guestrpc/tclodefs.h b/open-vm-tools/lib/include/vmware/guestrpc/tclodefs.h index 7c89312c5..ebc689647 100644 --- a/open-vm-tools/lib/include/vmware/guestrpc/tclodefs.h +++ b/open-vm-tools/lib/include/vmware/guestrpc/tclodefs.h @@ -46,7 +46,7 @@ /* * Tools options. */ - + #define TOOLSOPTION_COPYPASTE "copypaste" #define TOOLSOPTION_AUTOHIDE "autohide" #define TOOLSOPTION_BROADCASTIP "broadcastIP" @@ -67,6 +67,12 @@ #define DISK_SHRINK_CMD "disk.shrink" +/* + * Auto-lock commands. + */ + +#define DESKTOP_AUTOLOCK_CMD "Autolock_Desktop" + /* * The max selection buffer length has to be less than the diff --git a/open-vm-tools/libvmtools/vmtools.c b/open-vm-tools/libvmtools/vmtools.c index a0f8996ec..47228dda5 100644 --- a/open-vm-tools/libvmtools/vmtools.c +++ b/open-vm-tools/libvmtools/vmtools.c @@ -33,6 +33,7 @@ #endif #include "vmware.h" +#include "vm_atomic.h" #include "wiper.h" #include "vmtoolsInt.h" #include "vmware/tools/utils.h" @@ -83,14 +84,16 @@ static void VMToolsDllInit(void *lib) { Bool success; -#if defined(_WIN32) WiperInitData wiperData; + Atomic_Init(); +#if defined(_WIN32) wiperData.resourceModule = lib; success = (NetUtil_LoadIpHlpApiDll() == ERROR_SUCCESS); ASSERT(success); success = Wiper_Init(&wiperData); ASSERT(success); #else + (void) wiperData; success = Wiper_Init(NULL); ASSERT(success); #endif