From fb123f93f9f5ce42c8e5785d2f8e0edaf951740e Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Wed, 26 Mar 2014 19:21:20 +0000 Subject: Imported from /home/lorry/working-area/delta_VirtualBox/VirtualBox-4.3.10.tar.bz2. --- src/VBox/Main/src-client/RemoteUSBBackend.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/VBox/Main/src-client/RemoteUSBBackend.cpp') diff --git a/src/VBox/Main/src-client/RemoteUSBBackend.cpp b/src/VBox/Main/src-client/RemoteUSBBackend.cpp index c8d7811f..83d30b15 100644 --- a/src/VBox/Main/src-client/RemoteUSBBackend.cpp +++ b/src/VBox/Main/src-client/RemoteUSBBackend.cpp @@ -4,7 +4,7 @@ */ /* - * Copyright (C) 2006-2010 Oracle Corporation + * Copyright (C) 2006-2012 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; @@ -900,7 +900,7 @@ bool RemoteUSBBackend::addUUID (const Guid *pUuid) unsigned i; for (i = 0; i < RT_ELEMENTS(aGuids); i++) { - if (aGuids[i].isEmpty ()) + if (aGuids[i].isZero()) { aGuids[i] = *pUuid; return true; @@ -961,7 +961,7 @@ RemoteUSBBackend::RemoteUSBBackend(Console *console, ConsoleVRDPServer *server, if (RT_FAILURE(rc)) { AssertFailed (); - memset (&mCritsect, 0, sizeof (mCritsect)); + RT_ZERO(mCritsect); } mCallback.pInstance = (PREMOTEUSBBACKEND)this; @@ -1320,7 +1320,7 @@ int RemoteUSBBackend::reapURB (const void *pvBody, uint32_t cbBody) /* And insert it to its new place. */ if (pDevice->pHeadQURBs->fCompleted) { - /* At least one other completed URB; insert after the + /* At least one other completed URB; insert after the * last completed URB. */ REMOTEUSBQURB *prev_qurb = pDevice->pHeadQURBs; @@ -1341,7 +1341,7 @@ int RemoteUSBBackend::reapURB (const void *pvBody, uint32_t cbBody) /* No other completed URBs; insert at head. */ qurb->next = pDevice->pHeadQURBs; qurb->prev = NULL; - + pDevice->pHeadQURBs->prev = qurb; pDevice->pHeadQURBs = qurb; } -- cgit v1.2.1