Changeset 10017 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Jun 30, 2008 2:06:54 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 32491
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibInfoSvc.cpp
r10006 r10017 154 154 rc = Msg.hdr.result; 155 155 uint32_t cbActual; 156 if (RT_SUCCESS(rc)) 157 rc = VbglHGCMParmUInt32Get(&Msg.size, &cbActual); 158 if (RT_SUCCESS(rc)) 156 if (RT_SUCCESS(rc) || (VERR_BUFFER_OVERFLOW == rc)) 159 157 { 160 if (pcbActual != NULL) 161 *pcbActual = cbActual; 162 if (cbActual > cbValue) 163 rc = VINF_BUFFER_OVERFLOW; 158 int rc2 = VbglHGCMParmUInt32Get(&Msg.size, &cbActual); 159 if (RT_SUCCESS(rc2)) 160 { 161 if (pcbActual != NULL) 162 *pcbActual = cbActual; 163 } 164 164 else 165 rc = Msg.hdr.result; 166 if ((cbValue > 0) && (0 == cbActual)) /* No such property */ 167 pszValue[0] = 0; 165 rc = rc2; 168 166 } 169 167 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.