VirtualBox

Ignore:
Timestamp:
Aug 5, 2011 10:08:31 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
73337
Message:

SUPDrv: Fixed broken IDC on windows.

Location:
trunk/src/VBox/HostDrivers/Support/win
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp

    r38075 r38321  
    484484    {
    485485        /* Verify the pDevExt in the session. */
    486         if (    (   !pSession
    487                  && pStack->Parameters.DeviceIoControl.IoControlCode == SUPDRV_IDC_REQ_CONNECT)
    488             ||  (   VALID_PTR(pSession)
    489                  && pSession->pDevExt == pDevExt))
     486        if (  pStack->Parameters.DeviceIoControl.IoControlCode != SUPDRV_IDC_REQ_CONNECT
     487            ? VALID_PTR(pSession) && pSession->pDevExt == pDevExt
     488            : !pSession
     489           )
    490490        {
    491491            /* Verify that the size in the request header is correct. */
     
    501501                if (!rc)
    502502                {
     503                    if (pStack->Parameters.DeviceIoControl.IoControlCode == SUPDRV_IDC_REQ_CONNECT)
     504                        pFileObj->FsContext = ((PSUPDRVIDCREQCONNECT)pHdr)->u.Out.pSession;
     505                    /** @todo Handle SUPDRV_IDC_REQ_DISCONNECT and drop the
     506                     *        windows hack in the generic code. */
     507
    503508                    rcNt = STATUS_SUCCESS;
    504509                    cbOut = pHdr->cb;
  • trunk/src/VBox/HostDrivers/Support/win/SUPR0IdcClient-win.c

    r33540 r38321  
    119119        {
    120120            pHandle->s.pDeviceObject = pDeviceObject;
    121             pHandle->s.pFileObject = pFileObject;
     121            pHandle->s.pFileObject   = pFileObject;
    122122            return rc;
    123123        }
Note: See TracChangeset for help on using the changeset viewer.

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