VirtualBox

Changeset 37601 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jun 22, 2011 10:11:50 PM (13 years ago)
Author:
vboxsync
Message:

build fixes

Location:
trunk/src/VBox/Devices/Storage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DrvHostBase.cpp

    r37596 r37601  
    11581158    IO_STATUS_BLOCK             IoStatusBlock = {0};
    11591159    FILE_FS_SIZE_INFORMATION    FsSize= {0};
    1160     NTSTATUS rcNt = NtQueryVolumeInformationFile(RTFileToNative(pThis->hFileDevice),  &IoStatusBlock,
     1160    NTSTATUS rcNt = NtQueryVolumeInformationFile((HANDLE)RTFileToNative(pThis->hFileDevice),  &IoStatusBlock,
    11611161                                                 &FsSize, sizeof(FsSize), FileFsSizeInformation);
    11621162    int cRetries = 5;
     
    11641164    {
    11651165        RTThreadSleep(10);
    1166         rcNt = NtQueryVolumeInformationFile(RTFileToNative(pThis->hFileDevice),  &IoStatusBlock,
     1166        rcNt = NtQueryVolumeInformationFile((HANDLE)RTFileToNative(pThis->hFileDevice),  &IoStatusBlock,
    11671167                                            &FsSize, sizeof(FsSize), FileFsSizeInformation);
    11681168    }
  • trunk/src/VBox/Devices/Storage/DrvHostDVD.cpp

    r37596 r37601  
    189189                /* do ioctl */
    190190                DWORD cbReturned;
    191                 if (DeviceIoControl(RTFileToNative(hFileDevice), IOCTL_STORAGE_EJECT_MEDIA,
     191                if (DeviceIoControl((HANDLE)RTFileToNative(hFileDevice), IOCTL_STORAGE_EJECT_MEDIA,
    192192                                    NULL, 0,
    193193                                    NULL, 0, &cbReturned,
     
    274274    DWORD cbReturned;
    275275    int rc;
    276     if (DeviceIoControl(RTFileToNative(pThis->hFileDevice), IOCTL_STORAGE_MEDIA_REMOVAL,
     276    if (DeviceIoControl((HANDLE)RTFileToNative(pThis->hFileDevice), IOCTL_STORAGE_MEDIA_REMOVAL,
    277277                        &PreventMediaRemoval, sizeof(PreventMediaRemoval),
    278278                        NULL, 0, &cbReturned,
     
    620620    Req.spt.SenseInfoLength = (UCHAR)RT_MIN(sizeof(Req.aSense), cbSense);
    621621    Req.spt.SenseInfoOffset = RT_OFFSETOF(struct _REQ, aSense);
    622     if (DeviceIoControl(RTFileToNative(pThis->hFileDevice), IOCTL_SCSI_PASS_THROUGH_DIRECT,
     622    if (DeviceIoControl((HANDLE)RTFileToNative(pThis->hFileDevice), IOCTL_SCSI_PASS_THROUGH_DIRECT,
    623623                        &Req, sizeof(Req), &Req, sizeof(Req), &cbReturned, NULL))
    624624    {
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