- Timestamp:
- Dec 3, 2014 3:20:59 PM (10 years ago)
- Location:
- trunk/src/VBox/Additions
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp
r53293 r53434 2319 2319 } 2320 2320 } 2321 else 2322 rc = pInfo->result; 2321 2323 if (pcbDataReturned) 2322 2324 *pcbDataReturned = sizeof(*pInfo); -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibGuestProp.cpp
r52308 r53434 121 121 * 122 122 * @returns VBox status code 123 * @returns VERR_NOT_SUPPORTED if guest properties are not available on the host. 123 124 * @param pu32ClientId Where to put the client id on success. The client id 124 125 * must be passed to all the other calls to the service. … … 139 140 if (RT_SUCCESS(rc)) 140 141 *pu32ClientId = Info.u32ClientID; 142 if (rc == VERR_NOT_IMPLEMENTED || rc == VERR_HGCM_SERVICE_NOT_FOUND) 143 rc = VERR_NOT_SUPPORTED; 141 144 } 142 145 return rc; -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibVideo.cpp
r52956 r53434 305 305 * 306 306 * @returns iprt status value 307 * @returns VERR_NOT_SUPPORTED if the guest property service is not available. 307 308 * @param pcScreen where to store the virtual screen number 308 309 */ … … 343 344 return rc; 344 345 #else /* !VBOX_WITH_GUEST_PROPS */ 345 return VERR_NOT_ IMPLEMENTED;346 return VERR_NOT_SUPPORTED; 346 347 #endif /* !VBOX_WITH_GUEST_PROPS */ 347 348 } … … 404 405 return rc; 405 406 #else /* !VBOX_WITH_GUEST_PROPS */ 406 return VERR_NOT_ IMPLEMENTED;407 return VERR_NOT_SUPPORTED; 407 408 #endif /* !VBOX_WITH_GUEST_PROPS */ 408 409 } … … 488 489 return rc; 489 490 #else /* !VBOX_WITH_GUEST_PROPS */ 490 return VERR_NOT_ IMPLEMENTED;491 return VERR_NOT_SUPPORTED; 491 492 #endif /* !VBOX_WITH_GUEST_PROPS */ 492 493 } -
trunk/src/VBox/Additions/x11/VBoxClient/display.cpp
r53408 r53434 207 207 LogRelFlowFunc(("\n")); 208 208 rc = VbglR3VideoModeGetHighestSavedScreen(&cScreens); 209 if ( RT_FAILURE(rc))209 if (rc != VINF_SUCCESS && rc != VERR_NOT_SUPPORTED) 210 210 VBClFatalError(("Failed to get the number of saved screen modes, rc=%Rrc\n", 211 211 rc)); 212 for (i = 0; i < RT_MAX(cScreens + 1, 8); ++i) 213 { 214 unsigned cx = 0, cy = 0, cBPP = 0, x = 0, y = 0; 215 bool fEnabled = true; 216 217 rc = VbglR3RetrieveVideoMode(i, &cx, &cy, &cBPP, &x, &y, 218 &fEnabled); 219 if (RT_SUCCESS(rc) && i > cScreens) /* Sanity */ 220 VBClFatalError(("Internal error retrieving the number of saved screen modes.\n")); 221 if (RT_SUCCESS(rc)) 222 setModeX11(pState, cx, cy, cBPP, i, x, y, fEnabled, 223 true); 224 } 212 if (rc == VINF_SUCCESS) 213 /* The "8" is to sanity test that VbglR3VideoModeGetHighestSavedScreen() 214 * worked right. */ 215 for (i = 0; i < RT_MAX(cScreens + 1, 8); ++i) 216 { 217 unsigned cx = 0, cy = 0, cBPP = 0, x = 0, y = 0; 218 bool fEnabled = true; 219 220 rc = VbglR3RetrieveVideoMode(i, &cx, &cy, &cBPP, &x, &y, 221 &fEnabled); 222 /* Sanity test. */ 223 if ( (rc != VINF_SUCCESS && rc != VERR_NOT_FOUND) 224 || (i > cScreens && rc != VERR_NOT_FOUND)) 225 VBClFatalError(("Internal error retrieving the number of saved screen modes.\n")); 226 if (rc == VINF_SUCCESS) 227 setModeX11(pState, cx, cy, cBPP, i, x, y, fEnabled, 228 true); 229 } 225 230 while (true) 226 231 { … … 261 266 &fChangeOrigin, true); 262 267 /* Extended display version not supported on host */ 263 if ( RT_FAILURE(rc))268 if (rc != VINF_SUCCESS) 264 269 VBClFatalError(("Failed to get display change request, rc=%Rrc\n", 265 270 rc)); 266 271 else 267 LogRelFlowFunc(("Got extendedsize hint from host cx=%d, cy=%d, bpp=%d, iDisplay=%d, x=%d, y=%d fEnabled=%d\n",272 LogRelFlowFunc(("Got size hint from host cx=%d, cy=%d, bpp=%d, iDisplay=%d, x=%d, y=%d fEnabled=%d\n", 268 273 cx, cy, cBPP, iDisplay, x, y, 269 274 fEnabled)); 270 if (RT_FAILURE(rc))271 VBClFatalError(("Failed to retrieve size hint, rc=%Rrc\n", rc));272 275 if (iDisplay > INT32_MAX) 273 276 VBClFatalError(("Received a size hint for too high display number %u\n", … … 280 283 rc = VbglR3SaveVideoMode(iDisplay, cx, cy, cBPP, x, y, 281 284 fEnabled); 282 if ( RT_FAILURE(rc) 283 && rc != VERR_HGCM_SERVICE_NOT_FOUND 284 && rc != VERR_NOT_IMPLEMENTED /* No HGCM */) 285 if (RT_FAILURE(rc) && rc != VERR_NOT_SUPPORTED) 285 286 VBClFatalError(("Failed to save size hint, rc=%Rrc\n", rc)); 286 287 }
Note:
See TracChangeset
for help on using the changeset viewer.