VirtualBox

Ignore:
Timestamp:
Jun 16, 2010 1:58:32 AM (15 years ago)
Author:
vboxsync
Message:

VBoxVideo.h: VBOXPEVENT casts for VCC100, needs checking as they seem slightly bogus to me.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.h

    r30169 r30226  
    110110typedef UCHAR VBOXVCMNIRQL, *PVBOXVCMNIRQL;
    111111
    112 typedef PEVENT VBOXVCMNEVENT, *PVBOXVCMNEVENT;
     112typedef PEVENT VBOXVCMNEVENT;
     113typedef VBOXVCMNEVENT *PVBOXVCMNEVENT;
    113114
    114115typedef struct _DEVICE_EXTENSION * VBOXCMNREG;
     
    132133typedef KIRQL VBOXVCMNIRQL, *PVBOXVCMNIRQL;
    133134
    134 typedef KEVENT VBOXVCMNEVENT, *PVBOXVCMNEVENT;
     135typedef KEVENT VBOXVCMNEVENT;
     136typedef VBOXVCMNEVENT *PVBOXVCMNEVENT;
    135137
    136138typedef HANDLE VBOXCMNREG;
     
    335337/* XPDM-WDDM common API */
    336338
    337 typedef PEVENT VBOXVCMNEVENT, *PVBOXVCMNEVENT;
     339typedef PEVENT VBOXVCMNEVENT;
     340typedef VBOXVCMNEVENT *PVBOXVCMNEVENT;
    338341
    339342DECLINLINE(VOID) VBoxVideoCmnPortWriteUchar(IN PUCHAR Port, IN UCHAR Value)
     
    404407DECLINLINE(LONG) VBoxVideoCmnEventSet(IN PDEVICE_EXTENSION pDeviceExtension, IN PVBOXVCMNEVENT pEvent)
    405408{
    406     return pDeviceExtension->u.primary.VideoPortProcs.pfnSetEvent(pDeviceExtension, *pEvent);
     409    return pDeviceExtension->u.primary.VideoPortProcs.pfnSetEvent(pDeviceExtension, (VBOXPEVENT)*pEvent); /** @todo slightly bogus cast */
    407410}
    408411
     
    413416        fFlags |= INITIAL_EVENT_SIGNALED;
    414417
    415     return pDeviceExtension->u.primary.VideoPortProcs.pfnCreateEvent(pDeviceExtension, fFlags, NULL, pEvent);
     418    return pDeviceExtension->u.primary.VideoPortProcs.pfnCreateEvent(pDeviceExtension, fFlags, NULL, (VBOXPEVENT *)pEvent); /** @todo slightly bogus cast */
    416419}
    417420
    418421DECLINLINE(VP_STATUS) VBoxVideoCmnEventDelete(IN PDEVICE_EXTENSION pDeviceExtension, IN PVBOXVCMNEVENT pEvent)
    419422{
    420     return pDeviceExtension->u.primary.VideoPortProcs.pfnDeleteEvent(pDeviceExtension, *pEvent);
     423    return pDeviceExtension->u.primary.VideoPortProcs.pfnDeleteEvent(pDeviceExtension, (VBOXPEVENT)*pEvent); /** @todo slightly bogus cast */
    421424}
    422425
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