VirtualBox

Changeset 63062 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Aug 5, 2016 8:59:29 PM (8 years ago)
Author:
vboxsync
Message:

GA/NT/Graphics: warnings

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Video
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm/VBoxDispDDrawVHWA.cpp

    r63058 r63062  
    237237            pBody->u.in.hSrcSurf = pSrcDesc->hHostHandle;
    238238            VBoxDispVHWAFromRECTL(&pBody->u.in.srcRect, &lpBlt->rSrc);
    239             pBody->DstGuestSurfInfo = (uint64_t)pDstDesc;
    240             pBody->SrcGuestSurfInfo = (uint64_t)pSrcDesc;
     239            pBody->DstGuestSurfInfo = (uintptr_t)pDstDesc;
     240            pBody->SrcGuestSurfInfo = (uintptr_t)pSrcDesc;
    241241
    242242            pBody->u.in.flags = VBoxDispVHWAFromDDBLTs(lpBlt->dwFlags);
     
    315315            pBody->u.in.hTargSurf = pTargDesc->hHostHandle;
    316316            pBody->u.in.hCurrSurf = pCurrDesc->hHostHandle;
    317             pBody->TargGuestSurfInfo = (uint64_t)pTargDesc;
    318             pBody->CurrGuestSurfInfo = (uint64_t)pCurrDesc;
     317            pBody->TargGuestSurfInfo = (uintptr_t)pTargDesc;
     318            pBody->CurrGuestSurfInfo = (uintptr_t)pCurrDesc;
    319319
    320320            pTargDesc->bVisible = pCurrDesc->bVisible;
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPCr.cpp

    r63053 r63062  
    395395    pBufCmd->cbBuffer = sizeof (*pCmd);
    396396    pBufCmd->u32GuestData = 0;
    397     pBufCmd->u64GuestData = (uint64_t)pfnCompletion;
     397    pBufCmd->u64GuestData = (uintptr_t)pfnCompletion;
    398398
    399399    pBufCmd = &pBody->aBuffers[1];
     
    401401    pBufCmd->cbBuffer = pWbDr->cbBuf;
    402402    pBufCmd->u32GuestData = 0;
    403     pBufCmd->u64GuestData = (uint64_t)pWbDr;
     403    pBufCmd->u64GuestData = (uintptr_t)pWbDr;
    404404
    405405    return VBOXMP_CRSHGSMICON_DR_GET_CMDCTX(pHdr, cBuffers, sizeof (VBOXMP_CRHGSMICMD_READ), void);
     
    625625    pBufCmd->cbBuffer = sizeof (*pCmd);
    626626    pBufCmd->u32GuestData = 0;
    627     pBufCmd->u64GuestData = (uint64_t)pfnCompletion;
     627    pBufCmd->u64GuestData = (uintptr_t)pfnCompletion;
    628628
    629629    pBufCmd = &pBody->aBuffers[1];
     
    637637    pBufCmd->cbBuffer = pWbDr->cbBuf;
    638638    pBufCmd->u32GuestData = 0;
    639     pBufCmd->u64GuestData = (uint64_t)pWbDr;
     639    pBufCmd->u64GuestData = (uintptr_t)pWbDr;
    640640
    641641    return VBOXMP_CRSHGSMICON_DR_GET_CMDCTX(pHdr, cBuffers, sizeof (VBOXMP_CRHGSMICMD_WRITEREAD), void);
     
    676676
    677677    uint64_t*pu64Completion = VBOXMP_CRSHGSMICON_CMD_GET_CMDCTX(pCmd, cBuffers, sizeof (VBOXMP_CRHGSMICMD_WRITE), uint64_t);
    678     *pu64Completion = (uint64_t)pfnCompletion;
    679     return (void*)(pu64Completion+1);
     678    *pu64Completion = (uintptr_t)pfnCompletion;
     679    return pu64Completion + 1;
    680680}
    681681
     
    719719    pBufCmd->cbBuffer = sizeof (*pCmd);
    720720    pBufCmd->u32GuestData = 0;
    721     pBufCmd->u64GuestData = (uint64_t)pfnCompletion;
     721    pBufCmd->u64GuestData = (uintptr_t)pfnCompletion;
    722722
    723723    pBufCmd = &pBody->aBuffers[1];
     
    954954
    955955    parms.u64PID.type     = VMMDevHGCMParmType_64bit;
    956     parms.u64PID.u.value64 = (uint64_t)PsGetCurrentProcessId();
     956    parms.u64PID.u.value64 = (uintptr_t)PsGetCurrentProcessId();
    957957
    958958    Assert(parms.u64PID.u.value64);
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp

    r63057 r63062  
    12231223                        pUmAlloc->hAlloc = pAllocRef->hSessionHandle;
    12241224                        pUmAlloc->cbData = pAlloc->cbData;
    1225                         pUmAlloc->pvData = (uint64_t)pvUm;
     1225                        pUmAlloc->pvData = (uintptr_t)pvUm;
    12261226                        return STATUS_SUCCESS;
    12271227                    }
     
    14171417                pBufCmd->cbBuffer = pBufInfo->Info.cbData;
    14181418                pBufCmd->u32GuestData = 0;
    1419                 pBufCmd->u64GuestData = (uint64_t)pRef;
     1419                pBufCmd->u64GuestData = (uintptr_t)pRef;
    14201420            }
    14211421            else
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPShgsmi.cpp

    r63053 r63062  
    7575    PVBOXSHGSMIHEADER pHeader = VBoxSHGSMIBufferHeader(pvBuff);
    7676    pHeader->u64Info1 = (uint64_t)vboxSHGSMICompletionSetEvent;
    77     pHeader->u64Info2 = (uint64_t)hEventSem;
     77    pHeader->u64Info2 = (uintptr_t)hEventSem;
    7878    pHeader->fFlags   = VBOXSHGSMI_FLAG_GH_ASYNCH_IRQ;
    7979
     
    126126    fFlags &= ~VBOXSHGSMI_FLAG_GH_ASYNCH_CALLBACK_IRQ;
    127127    PVBOXSHGSMIHEADER pHeader = VBoxSHGSMIBufferHeader (pvBuff);
    128     pHeader->u64Info1 = (uint64_t)pfnCompletion;
    129     pHeader->u64Info2 = (uint64_t)pvCompletion;
     128    pHeader->u64Info1 = (uintptr_t)pfnCompletion;
     129    pHeader->u64Info2 = (uintptr_t)pvCompletion;
    130130    pHeader->fFlags = fFlags;
    131131
     
    139139    fFlags |= VBOXSHGSMI_FLAG_GH_ASYNCH_CALLBACK_IRQ | VBOXSHGSMI_FLAG_GH_ASYNCH_IRQ;
    140140    PVBOXSHGSMIHEADER pHeader = VBoxSHGSMIBufferHeader (pvBuff);
    141     pHeader->u64Info1 = (uint64_t)pfnCompletion;
    142     pHeader->u64Info2 = (uint64_t)pvCompletion;
     141    pHeader->u64Info1 = (uintptr_t)pfnCompletion;
     142    pHeader->u64Info2 = (uintptr_t)pvCompletion;
    143143    /* we must assign rather than or because flags field does not get zeroed on command creation */
    144144    pHeader->fFlags = fFlags;
     
    244244            if (pfnCompletion)
    245245            {
    246                 pCur->u64Info1 = (uint64_t)pfnCompletion;
    247                 pCur->u64Info2 = (uint64_t)pvCompletion;
     246                pCur->u64Info1 = (uintptr_t)pfnCompletion;
     247                pCur->u64Info2 = (uintptr_t)pvCompletion;
    248248                pCur->fFlags &= ~VBOXSHGSMI_FLAG_GH_ASYNCH_CALLBACK_IRQ;
    249249            }
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVbva.cpp

    r63057 r63062  
    12541254    pConnect->Connect.u32MajorVersion = crVersionMajor;
    12551255    pConnect->Connect.u32MinorVersion = crVersionMinor;
    1256     pConnect->Connect.u64Pid = (uint64_t)PsGetCurrentProcessId();
     1256    pConnect->Connect.u64Pid = (uintptr_t)PsGetCurrentProcessId();
    12571257
    12581258    int rc = vboxCmdVbvaCtlSubmitSync(pHGSMICtx, &pConnect->Hdr);
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