Changeset 93973 in vbox for trunk/include/VBox/GuestHost
- Timestamp:
- Feb 28, 2022 11:40:28 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/GuestHost/HGCMMock.h
r93972 r93973 31 31 */ 32 32 33 #ifndef VBOX_INCLUDED_ HGCMMock_h34 #define VBOX_INCLUDED_ HGCMMock_h33 #ifndef VBOX_INCLUDED_GuestHost_HGCMMock_h 34 #define VBOX_INCLUDED_GuestHost_HGCMMock_h 35 35 #ifndef RT_WITHOUT_PRAGMA_ONCE 36 36 # pragma once … … 397 397 PTSTHGCMMOCKSVC pSvc = TstHgcmMockSvcInst(); 398 398 399 for (size_t i = 0; RT_ELEMENTS(pSvc->aHgcmClient); i++) 399 size_t i = 0; 400 for (i; RT_ELEMENTS(pSvc->aHgcmClient); i++) 400 401 { 401 402 PTSTHGCMMOCKCLIENT pClient = &pSvc->aHgcmClient[i]; … … 694 695 VBGLR3DECL(int) VbglR3HGCMCall(PVBGLIOCHGCMCALL pInfo, size_t cbInfo) 695 696 { 697 RT_NOREF(cbInfo); 698 696 699 AssertMsg(pInfo->Hdr.cbIn == cbInfo, ("cbIn=%#x cbInfo=%#zx\n", pInfo->Hdr.cbIn, cbInfo)); 697 700 AssertMsg(pInfo->Hdr.cbOut == cbInfo, ("cbOut=%#x cbInfo=%#zx\n", pInfo->Hdr.cbOut, cbInfo)); … … 700 703 HGCMFunctionParameter *offSrcParms = VBGL_HGCM_GET_CALL_PARMS(pInfo); 701 704 PVBOXHGCMSVCPARM paDstParms = (PVBOXHGCMSVCPARM)RTMemAlloc(pInfo->cParms * sizeof(VBOXHGCMSVCPARM)); 702 for (uint16_t i = 0; i < pInfo->cParms; i++) 705 706 uint16_t i = 0; 707 for (i; i < pInfo->cParms; i++) 703 708 { 704 709 switch (offSrcParms->type) … … 743 748 offSrcParms = VBGL_HGCM_GET_CALL_PARMS(pInfo); 744 749 745 for (uint16_t i = 0; i < pInfo->cParms; i++) 750 uint16_t i = 0; 751 for (; i < pInfo->cParms; i++) 746 752 { 747 753 paDstParms[i].type = offSrcParms->type; … … 781 787 #endif /* IN_RING3 */ 782 788 783 #endif /* !VBOX_INCLUDED_ HGCMMock_h */789 #endif /* !VBOX_INCLUDED_GuestHost_HGCMMock_h */
Note:
See TracChangeset
for help on using the changeset viewer.