Changeset 10985 in vbox for trunk/src/VBox/Additions/common/VBoxControl/VBoxControl.cpp
- Timestamp:
- Jul 30, 2008 1:39:37 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 33860
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxControl/VBoxControl.cpp
r10976 r10985 1051 1051 */ 1052 1052 uint32_t u32ClientId = 0; 1053 PVBGLR3GUESTPROPENUM pHandle Raw= NULL;1054 RTMemAutoPtr<VBGLR3GUESTPROPENUM, VbglR3GuestPropEnumFree> pHandle;1053 PVBGLR3GUESTPROPENUM pHandle = NULL; 1054 RTMemAutoPtr<VBGLR3GUESTPROPENUM, VbglR3GuestPropEnumFree> Handle; 1055 1055 char *pszName = NULL, *pszValue = NULL, *pszFlags = NULL; 1056 1056 uint64_t u64Timestamp = 0; … … 1063 1063 char **ppaszPatterns = argc > 1 ? argv + 1 : NULL; 1064 1064 int cPatterns = argc > 1 ? argc - 1 : 0; 1065 rc = VbglR3GuestPropEnum(u32ClientId, ppaszPatterns, cPatterns, &pHandle Raw,1065 rc = VbglR3GuestPropEnum(u32ClientId, ppaszPatterns, cPatterns, &pHandle, 1066 1066 &pszName, &pszValue, &u64Timestamp, &pszFlags); 1067 1067 if (RT_SUCCESS(rc)) 1068 1068 { 1069 pHandle = pHandleRaw;1069 Handle = pHandle; 1070 1070 } 1071 1071 else if (VERR_NOT_FOUND == rc) … … 1078 1078 RTPrintf("Name: %s, value: %s, timestamp: %lld, flags: %s\n", 1079 1079 pszName, pszValue, u64Timestamp, pszFlags); 1080 rc = VbglR3GuestPropEnumNext( pHandle.get(), &pszName, &pszValue, &u64Timestamp, &pszFlags);1080 rc = VbglR3GuestPropEnumNext(Handle.get(), &pszName, &pszValue, &u64Timestamp, &pszFlags); 1081 1081 if (!RT_SUCCESS(rc)) 1082 1082 VBoxControlError("Error while enumerating guest propertied: %Rrc\n", rc);
Note:
See TracChangeset
for help on using the changeset viewer.