VirtualBox

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


Ignore:
Timestamp:
Jul 17, 2009 3:08:09 PM (16 years ago)
Author:
vboxsync
Message:

Wrong pointer casting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxGuest/VBoxGuest.cpp

    r21702 r21703  
    17521752            if (RT_SUCCESS(rc))
    17531753            {
    1754                 req->pPatchMem = (RTGCPTR)RTR0MemObjAddress(pDevExt->PatchMemObj);
     1754                req->pPatchMem = (RTGCPTR)(uintptr_t)RTR0MemObjAddress(pDevExt->PatchMemObj);
    17551755
    17561756                rc = VbglGRPerform (&req->header);
     
    17901790        {
    17911791            req->cbPatchMem = (uint32_t)RTR0MemObjSize(pDevExt->PatchMemObj);
    1792             req->pPatchMem  = (RTGCPTR)RTR0MemObjAddress(pDevExt->PatchMemObj);
     1792            req->pPatchMem  = (RTGCPTR)(uintptr_t)RTR0MemObjAddress(pDevExt->PatchMemObj);
    17931793
    17941794            rc = VbglGRPerform (&req->header);
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