VirtualBox

Changeset 75126 in vbox for trunk


Ignore:
Timestamp:
Oct 28, 2018 2:53:12 PM (6 years ago)
Author:
vboxsync
Message:

VBoxGuestR0LibHGCMInternal.cpp: We no longer seems to need alloca.h.

Location:
trunk/src/VBox/Additions/common/VBoxGuest/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibHGCMInternal.cpp

    r73097 r75126  
    3636
    3737#include "VBoxGuestR0LibInternal.h"
    38 #include <iprt/alloca.h>
    3938#include <iprt/asm.h>
    4039#include <iprt/assert.h>
     
    537536                    pDstPgLst->flags            = pSrcPgLst->flags;
    538537                    pDstPgLst->offFirstPage     = pSrcPgLst->offFirstPage;
    539                     pDstPgLst->cPages           = cPages;
     538                    pDstPgLst->cPages           = (uint16_t)cPages;
    540539                    for (iPage = 0; iPage < cPages; iPage++)
    541540                        pDstPgLst->aPages[iPage] = pSrcPgLst->aPages[iPage];
     
    584583                        else
    585584#endif
    586                             pDstPgLst->offFirstPage = pSrcParm->u.Pointer.u.linearAddr & PAGE_OFFSET_MASK;
    587                         pDstPgLst->cPages           = (uint32_t)cPages; Assert(pDstPgLst->cPages == cPages);
     585                            pDstPgLst->offFirstPage = (uint16_t)(pSrcParm->u.Pointer.u.linearAddr & PAGE_OFFSET_MASK);
     586                        pDstPgLst->cPages           = (uint16_t)cPages; Assert(pDstPgLst->cPages == cPages);
    588587                        for (iPage = 0; iPage < cPages; iPage++)
    589588                        {
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibIdc-os2.cpp

    r72627 r75126  
    5757        return g_VBoxGuestIDC.pfnServiceEP(g_VBoxGuestIDC.u32Session, VBGL_IOCTL_IDC_CONNECT, &pReq->Hdr, sizeof(*pReq));
    5858    Log(("vbglDriverOpen: failed\n"));
     59    RT_NOREF(pHandle);
    5960    return VERR_FILE_NOT_FOUND;
    6061}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette