]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
lib/lock: a bit of cleanup
authorVMware, Inc <>
Thu, 17 Jun 2010 21:30:32 +0000 (14:30 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Thu, 17 Jun 2010 21:30:32 +0000 (14:30 -0700)
Use a few defines.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/lock/ulCondVar.c

index c994d2a241721032d4c1640b75af3ed4492c53e6..9ad2ba735a95bbfa283a1433ca9d873becccdd2c 100644 (file)
@@ -249,9 +249,9 @@ MXUserWaitInternal(MXUserHeader *header,    // IN:
       MXRecLockDecCount(lock);
       success = (*pSleepConditionVariableCS)(&condVar->x.condObject,
                                              &lock->nativeLock, waitTime);
-      err = success ? 0 : GetLastError();
+      err = success ? ERROR_SUCCESS : GetLastError();
       MXRecLockIncCount(lock, GetReturnAddress());
-      signalled = (err == 0) ? TRUE : FALSE;
+      signalled = (err == ERROR_SUCCESS) ? TRUE : FALSE;
    } else {
       Bool done = FALSE;