Changeset 26922 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Mar 1, 2010 4:22:05 PM (15 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/Helper.cpp
r26179 r26922 84 84 rc = VbglGRPerform (&req->header); 85 85 86 if (RT_SUCCESS(rc) && RT_SUCCESS(req->header.rc))86 if (RT_SUCCESS(rc)) 87 87 { 88 88 if (xres) … … 98 98 else 99 99 { 100 dprintf(("VBoxVideo::vboxQueryDisplayRequest: ERROR querying display request from VMMDev. "101 "rc = %Rrc , VMMDev rc = %Rrc\n", rc, req->header.rc));100 dprintf(("VBoxVideo::vboxQueryDisplayRequest: ERROR querying display request from VMMDev. " 101 "rc = %Rrc\n", rc)); 102 102 } 103 103 … … 129 129 req->bpp = bpp; 130 130 rc = VbglGRPerform(&req->header); 131 if (RT_SUCCESS(rc) && RT_SUCCESS(req->header.rc))131 if (RT_SUCCESS(rc)) 132 132 { 133 133 bRC = req->fSupported; … … 136 136 { 137 137 dprintf(("VBoxVideo::vboxLikesVideoMode: ERROR querying video mode supported status from VMMDev." 138 "rc = %Rrc , VMMDev rc = %Rrc\n", rc, req->header.rc));138 "rc = %Rrc\n", rc)); 139 139 } 140 140 VbglGRFree(&req->header); … … 161 161 { 162 162 rc = VbglGRPerform(&req->header); 163 if (RT_SUCCESS(rc) && RT_SUCCESS(req->header.rc))163 if (RT_SUCCESS(rc)) 164 164 { 165 165 retHeight = (ULONG)req->heightReduction; … … 167 167 else 168 168 { 169 dprintf(("VBoxVideo::vboxGetHeightReduction: ERROR querying height reduction value from VMMDev. "170 "rc = %Rrc , VMMDev rc = %Rrc\n", rc, req->header.rc));169 dprintf(("VBoxVideo::vboxGetHeightReduction: ERROR querying height reduction value from VMMDev. " 170 "rc = %Rrc\n", rc)); 171 171 } 172 172 VbglGRFree(&req->header); … … 196 196 rc = VbglGRPerform (&req->header); 197 197 198 if (RT_SUCCESS(rc) && RT_SUCCESS(req->header.rc))198 if (RT_SUCCESS(rc)) 199 199 { 200 200 if (req->mouseFeatures & VMMDEV_MOUSE_HOST_CAN_ABSOLUTE) … … 215 215 else 216 216 { 217 dprintf(("VBoxVideo::vboxQueryPointerPosInternal: ERROR querying mouse capabilities from VMMDev. "218 "rc = %Rrc , VMMDev rc = %Rrc\n", rc, req->header.rc));217 dprintf(("VBoxVideo::vboxQueryPointerPosInternal: ERROR querying mouse capabilities from VMMDev. " 218 "rc = %Rrc\n", rc)); 219 219 } 220 220 … … 359 359 else 360 360 { 361 dprintf(("VBoxVideo::vboxUpdatePointerShape: ERROR querying mouse capabilities from VMMDev. "362 "rc = %Rrc , VMMDev rc = %Rrc\n", rc, req->header.rc));361 dprintf(("VBoxVideo::vboxUpdatePointerShape: ERROR querying mouse capabilities from VMMDev. " 362 "rc = %Rrc\n", rc)); 363 363 } 364 364 -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp
r26767 r26922 2208 2208 rc = VbglGRPerform (&req->header); 2209 2209 2210 if (RT_SUCCESS(rc) && RT_SUCCESS(req->header.rc))2210 if (RT_SUCCESS(rc)) 2211 2211 { 2212 2212 Result = TRUE; … … 2214 2214 } 2215 2215 } 2216 dprintf(("VBoxVideo::VBoxVideoStartIO: Failed with rc=%x (hdr.rc=%x)\n", rc, (req) ? req->header.rc : -1)); 2216 2217 dprintf(("VBoxVideo::VBoxVideoStartIO: Failed with rc=%x\n", rc)); 2217 2218 RequestPacket->StatusBlock->Status = ERROR_INVALID_FUNCTION; 2218 2219 return FALSE; … … 2454 2455 2455 2456 rc = VbglGRPerform (&req->header); 2456 if (!RT_SUCCESS(rc) || !RT_SUCCESS(req->header.rc)) 2457 dprintf(("VBoxVideoSetGraphicsCap: request failed, rc = %Rrc, VMMDev rc = %Rrc\n", rc, req->header.rc)); 2458 if (RT_SUCCESS(rc)) 2459 rc = req->header.rc; 2457 if (RT_FAILURE) 2458 dprintf(("VBoxVideoSetGraphicsCap: request failed, rc = %Rrc\n", rc)); 2460 2459 } 2461 2460 if (req != NULL) … … 2766 2765 int rc = VbglGRPerform (&req->header); 2767 2766 2768 if (RT_FAILURE(rc) || RT_FAILURE(req->header.rc))2769 { 2770 dprintf(("VBoxVideo::vbvaFlush: rc = %Rrc , VMMDev rc = %Rrc!!!\n", rc, req->header.rc));2767 if (RT_FAILURE(rc)) 2768 { 2769 dprintf(("VBoxVideo::vbvaFlush: rc = %Rrc!\n", rc)); 2771 2770 } 2772 2771 } … … 2860 2859 rc = VbglGRPerform (&req->header); 2861 2860 2862 if (RT_SUCCESS(rc) && RT_SUCCESS(req->header.rc))2861 if (RT_SUCCESS(rc)) 2863 2862 { 2864 2863 if (req->fu32Status & VBVA_F_STATUS_ACCEPTED) … … 2897 2896 else 2898 2897 { 2899 dprintf(("VBoxVideo::vboxVbvaEnable: rc = %Rrc , VMMDev rc = %Rrc!!!\n", rc, req->header.rc));2898 dprintf(("VBoxVideo::vboxVbvaEnable: rc = %Rrc!\n", rc)); 2900 2899 2901 2900 if (RT_SUCCESS(rc)) … … 2909 2908 else 2910 2909 { 2911 dprintf(("VBoxVideo::vboxVbvaEnable: VbglGRAlloc rc = %Rrc! !!\n", rc));2910 dprintf(("VBoxVideo::vboxVbvaEnable: VbglGRAlloc rc = %Rrc!\n", rc)); 2912 2911 } 2913 2912 -
trunk/src/VBox/Additions/WINNT/MouseFilter/VBoxMouse.cpp
r23846 r26922 278 278 vboxRC = VbglGRPerform (&req->header); 279 279 280 if (RT_FAILURE(vboxRC) || RT_FAILURE(req->header.rc))280 if (RT_FAILURE(vboxRC)) 281 281 { 282 282 dprintf(("VBoxMouse::vboxDeviceRemoved: ERROR communicating new mouse capabilities to VMMDev.\n" 283 "rc = % d, VMMDev rc = %Rrc\n", vboxRC, req->header.rc));283 "rc = %Rrc\n", vboxRC)); 284 284 } 285 285 … … 338 338 vboxRC = VbglGRPerform (&req->header); 339 339 340 if (RT_FAILURE(vboxRC) || RT_FAILURE(req->header.rc))340 if (RT_FAILURE(vboxRC)) 341 341 { 342 dprintf(("VBoxMouse::vboxInformHost: ERROR communicating new mouse capabilities to VMMDev. "343 "rc = %d, VMMDev rc = %Rrc\n", vboxRC, req->header.rc));342 dprintf(("VBoxMouse::vboxInformHost: ERROR communicating new mouse capabilities to VMMDev. " 343 "rc = %Rrc\n", vboxRC)); 344 344 } 345 345 else … … 1116 1116 int rc = VbglGRPerform (&req->header); 1117 1117 1118 if (RT_SUCCESS(rc) && RT_SUCCESS(req->header.rc))1118 if (RT_SUCCESS(rc)) 1119 1119 { 1120 1120 if (req->mouseFeatures & VMMDEV_MOUSE_HOST_CAN_ABSOLUTE) … … 1133 1133 else 1134 1134 { 1135 dprintf(("VBoxMouse::VBoxMouse_ServiceCallback: ERROR querying mouse capabilities from VMMDev. "1136 "rc = %Rrc , VMMDev rc = %Rrc\n", rc, req->header.rc));1135 dprintf(("VBoxMouse::VBoxMouse_ServiceCallback: ERROR querying mouse capabilities from VMMDev. " 1136 "rc = %Rrc\n", rc)); 1137 1137 } 1138 1138 } -
trunk/src/VBox/Additions/WINNT/VBoxGuest/Helper.cpp
r25021 r26922 236 236 /** @todo registry lookup for additional information */ 237 237 238 239 238 rc = VbglGRPerform (&req->header); 240 239 241 if (RT_FAILURE(rc) || RT_FAILURE(req->header.rc))240 if (RT_FAILURE(rc)) 242 241 { 243 dprintf(("VBoxGuest::hlpVBoxReportGuestInfo: error reporting guest info to VMMDev. "244 "rc = %d, VMMDev rc = %Rrc\n", rc, req->header.rc));242 dprintf(("VBoxGuest::hlpVBoxReportGuestInfo: error reporting guest info to VMMDev. " 243 "rc = %Rrc\n", rc)); 245 244 } 246 245 -
trunk/src/VBox/Additions/WINNT/VBoxGuest/VBoxGuest.cpp
r26918 r26922 542 542 543 543 rc = VbglGRPerform (&req->header); 544 if (RT_FAILURE (rc) || RT_FAILURE (req->header.rc))544 if (RT_FAILURE (rc)) 545 545 { 546 546 dprintf (("VBoxGuest::VBoxGuestDeviceControl: error issuing request to VMMDev! " 547 "rc = % d, VMMDev rc = %Rrc\n", rc, req->header.rc));547 "rc = %Rrc\n", rc)); 548 548 } 549 549 else … … 647 647 648 648 rc = VbglGRPerform(&req->header); 649 if (RT_FAILURE(rc) || RT_FAILURE(req->header.rc))650 { 651 dprintf(("VBoxGuest::VBoxGuestSetBalloonSize: error issuing request to VMMDev! "652 "rc = % d, VMMDev rc = %Rrc\n", rc, req->header.rc));649 if (RT_FAILURE(rc)) 650 { 651 dprintf(("VBoxGuest::VBoxGuestSetBalloonSize: error issuing request to VMMDev! " 652 "rc = %Rrc\n", rc)); 653 653 654 654 #ifndef TARGET_NT4 … … 699 699 700 700 rc = VbglGRPerform(&req->header); 701 if (RT_FAILURE(rc) || RT_FAILURE(req->header.rc))701 if (RT_FAILURE(rc)) 702 702 { 703 AssertMsgFailed(("VBoxGuest::VBoxGuestSetBalloonSize: error issuing request to VMMDev! rc = % d, VMMDev rc = %Rrc\n", rc, req->header.rc));703 AssertMsgFailed(("VBoxGuest::VBoxGuestSetBalloonSize: error issuing request to VMMDev! rc = %Rrc\n", rc)); 704 704 break; 705 705 } … … 743 743 rc = VbglGRPerform(&req->header); 744 744 745 if (RT_FAILURE(rc) || RT_FAILURE(req->header.rc))746 { 747 dprintf(("VBoxGuest::VBoxGuestDeviceControl VBOXGUEST_IOCTL_CTL_CHECK_BALLOON: error issuing request to VMMDev! "748 "rc = % d, VMMDev rc = %Rrc\n", rc, req->header.rc));745 if (RT_FAILURE(rc)) 746 { 747 dprintf(("VBoxGuest::VBoxGuestDeviceControl VBOXGUEST_IOCTL_CTL_CHECK_BALLOON: error issuing request to VMMDev! " 748 "rc = %Rrc\n", rc)); 749 749 } 750 750 else … … 995 995 rc = VbglGRPerform(req); 996 996 997 if (RT_FAILURE(rc) || RT_FAILURE(req->rc))997 if (RT_FAILURE(rc)) 998 998 { 999 999 dprintf(("VBoxGuest::VBoxGuestDeviceControl VBOXGUEST_IOCTL_VMMREQUEST: Error issuing request to VMMDev! " 1000 "rc = % d, VMMDev rc = %Rrc\n", rc, req->rc));1000 "rc = %Rrc\n", rc)); 1001 1001 Status = STATUS_UNSUCCESSFUL; 1002 1002 } … … 1473 1473 int rc = VbglGRPerform (&req->header); 1474 1474 1475 if (RT_FAILURE(rc) || RT_FAILURE(req->header.rc))1476 { 1477 dprintf(("VBoxGuest::PowerStateRequest: error performing request to VMMDev ."1478 "rc = %d, VMMDev rc = %Rrc\n", rc, req->header.rc));1475 if (RT_FAILURE(rc)) 1476 { 1477 dprintf(("VBoxGuest::PowerStateRequest: error performing request to VMMDev! " 1478 "rc = %Rrc\n", rc)); 1479 1479 } 1480 1480 } … … 1572 1572 1573 1573 rc = VbglGRPerform (&req->header); 1574 if (RT_SUCCESS(rc) && RT_SUCCESS(req->header.rc))1574 if (RT_SUCCESS(rc)) 1575 1575 { 1576 1576 dprintf(("VBoxGuest::VBoxGuestIsrHandler: acknowledge events succeeded %#x\n", … … 1584 1584 /* This can't be actually. This is sign of a serious problem. */ 1585 1585 dprintf(("VBoxGuest::VBoxGuestIsrHandler: " 1586 "acknowledge events failed rc = %d, header rc = %d\n", 1587 rc, req->header.rc)); 1586 "acknowledge events failed rc = %Rrc\n", rc)); 1588 1587 } 1589 1588 … … 1738 1737 rc = VbglGRPerform (&req->header); 1739 1738 1740 if (RT_SUCCESS(rc) && RT_SUCCESS(req->header.rc))1739 if (RT_SUCCESS(rc)) 1741 1740 { 1742 1741 hypervisorSize = req->hypervisorSize; … … 1781 1780 rc = VbglGRPerform (&req->header); 1782 1781 1783 if (RT_FAILURE(rc) || RT_FAILURE(req->header.rc))1784 { 1785 dprintf(("VBoxGuest::reserveHypervisorMemory: error communicating physical address to VMMDev! "1786 "rc = % d, VMMDev rc = %Rrc\n", rc, req->header.rc));1782 if (RT_FAILURE(rc)) 1783 { 1784 dprintf(("VBoxGuest::reserveHypervisorMemory: error communicating physical address to VMMDev! " 1785 "rc = %Rrc\n", rc)); 1787 1786 } 1788 1787 } 1789 1788 else 1790 1789 { 1791 dprintf(("VBoxGuest::reserveHypervisorMemory: request failed with rc %d, VMMDev rc = %Rrc\n", rc, req->header.rc));1790 dprintf(("VBoxGuest::reserveHypervisorMemory: request failed with rc = %Rrc\n", rc)); 1792 1791 } 1793 1792 VbglGRFree (&req->header); … … 1809 1808 1810 1809 rc = VbglGRPerform (&req->header); 1811 if (RT_FAILURE(rc) || RT_FAILURE(req->header.rc))1810 if (RT_FAILURE(rc)) 1812 1811 { 1813 dprintf(("VBoxGuest::reserveHypervisorMemory: VMMDevReq_RegisterPatchMemory error! "1814 "rc = %d, VMMDev rc = %Rrc\n", rc, req->header.rc));1812 dprintf(("VBoxGuest::reserveHypervisorMemory: VMMDevReq_RegisterPatchMemory error! " 1813 "rc = %Rrc\n", rc)); 1815 1814 RTR0MemObjFree(pDevExt->PatchMemObj, true); 1816 1815 pDevExt->PatchMemObj = NULL; … … 1819 1818 else 1820 1819 { 1821 dprintf(("VBoxGuest::reserveHypervisorMemory: RTR0MemObjAllocPage failed with rc %d\n", rc));1820 dprintf(("VBoxGuest::reserveHypervisorMemory: RTR0MemObjAllocPage failed with rc = %Rrc\n", rc)); 1822 1821 } 1823 1822 VbglGRFree (&req->header); … … 1847 1846 1848 1847 rc = VbglGRPerform (&req->header); 1849 if (RT_FAILURE(rc) || RT_FAILURE(req->header.rc))1850 { 1851 dprintf(("VBoxGuest::reserveHypervisorMemory: VMMDevReq_DeregisterPatchMemory error! "1852 "rc = %d, VMMDev rc = %Rrc\n", rc, req->header.rc));1848 if (RT_FAILURE(rc)) 1849 { 1850 dprintf(("VBoxGuest::reserveHypervisorMemory: VMMDevReq_DeregisterPatchMemory error! " 1851 "rc = %Rrc\n", rc)); 1853 1852 /* We intentially leak the memory object here as there still could 1854 1853 * be references to it!!! … … 1876 1875 rc = VbglGRPerform (&req->header); 1877 1876 1878 if (RT_FAILURE(rc) || RT_FAILURE(req->header.rc))1879 { 1880 dprintf(("VBoxGuest::unreserveHypervisorMemory: error communicating physical address to VMMDev! "1881 "rc = % d, VMMDev rc = %Rrc\n", rc, req->header.rc));1877 if (RT_FAILURE(rc)) 1878 { 1879 dprintf(("VBoxGuest::unreserveHypervisorMemory: error communicating physical address to VMMDev! " 1880 "rc = %Rrc\n", rc)); 1882 1881 } 1883 1882 -
trunk/src/VBox/Additions/WINNT/VBoxGuest/VBoxGuestPnP.cpp
r17163 r26922 559 559 rc = VbglGRPerform (&req->header); 560 560 561 if (RT_FAILURE(rc) || RT_FAILURE(req->header.rc))561 if (RT_FAILURE(rc)) 562 562 { 563 dprintf(("VBoxGuest::PowerStateRequest: error communicating new power status to VMMDev. "564 "rc = % d, VMMDev rc = %Rrc\n", rc, req->header.rc));563 dprintf(("VBoxGuest::PowerStateRequest: error communicating new power status to VMMDev. " 564 "rc = %Rrc\n", rc)); 565 565 } 566 566 … … 587 587 int rc = VbglGRPerform (&req->header); 588 588 589 if (RT_FAILURE(rc) || RT_FAILURE(req->header.rc))589 if (RT_FAILURE(rc)) 590 590 { 591 dprintf(("VBoxGuest::PowerStateRequest: error communicating new power status to VMMDev. "592 "rc = % d, VMMDev rc = %Rrc\n", rc, req->header.rc));591 dprintf(("VBoxGuest::PowerStateRequest: error communicating new power status to VMMDev. " 592 "rc = %Rrc\n", rc)); 593 593 } 594 594 } -
trunk/src/VBox/Additions/WINNT/i8042prt/i8042dep.c
r21226 r26922 1358 1358 vboxRC = VbglGRPerform (&req->header); 1359 1359 1360 if (RT_FAILURE(vboxRC) || RT_FAILURE(req->header.rc))1360 if (RT_FAILURE(vboxRC)) 1361 1361 { 1362 dprintf(("i8042prt::DriverEntry: ERROR communicating new mouse capabilities to VMMDev. "1363 "rc = % d, VMMDev rc = %Rrc\n", vboxRC, req->header.rc));1362 dprintf(("i8042prt::DriverEntry: ERROR communicating new mouse capabilities to VMMDev. " 1363 "rc = %Rrc\n", vboxRC)); 1364 1364 } 1365 1365 else -
trunk/src/VBox/Additions/WINNT/i8042prt/moudep.c
r21226 r26922 541 541 int rc = VbglGRPerform (&req->header); 542 542 543 if (RT_SUCCESS(rc) && RT_SUCCESS(req->header.rc))543 if (RT_SUCCESS(rc)) 544 544 { 545 545 if (req->mouseFeatures & VMMDEV_MOUSE_HOST_CAN_ABSOLUTE) … … 553 553 else 554 554 { 555 dprintf(("i8042prt: ERROR querying mouse capabilities from VMMDev. "556 "rc = %Rrc , VMMDev rc = %Rrc\n", rc, req->header.rc));555 dprintf(("i8042prt: ERROR querying mouse capabilities from VMMDev. " 556 "rc = %Rrc\n", rc)); 557 557 } 558 558 } … … 607 607 int rc = VbglGRPerform (&req->header); 608 608 609 if (RT_SUCCESS(rc) && RT_SUCCESS(req->header.rc))609 if (RT_SUCCESS(rc)) 610 610 { 611 611 if (req->mouseFeatures & VMMDEV_MOUSE_HOST_CAN_ABSOLUTE) … … 619 619 else 620 620 { 621 dprintf(("i8042prt: ERROR querying mouse capabilities from VMMDev. "622 "rc = %Rrc , VMMDev rc = %Rrc\n", rc, req->header.rc));621 dprintf(("i8042prt: ERROR querying mouse capabilities from VMMDev. " 622 "rc = %Rrc\n", rc)); 623 623 } 624 624 }
Note:
See TracChangeset
for help on using the changeset viewer.