VirtualBox

Ignore:
Timestamp:
Jul 5, 2008 12:47:50 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
32871
Message:

Some more IDC code.

File:
1 edited

Legend:

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

    r10263 r10265  
    430430             pStack->Parameters.DeviceIoControl.OutputBufferLength, pSession));
    431431
    432     if (pSession)
    433     {
    434         /* Verify that it's a buffered CTL. */
    435         if ((pStack->Parameters.DeviceIoControl.IoControlCode & 0x3) == METHOD_BUFFERED)
     432/** @todo IDC on NT: figure when to create the session and that stuff... */
     433
     434    /* Verify that it's a buffered CTL. */
     435    if ((pStack->Parameters.DeviceIoControl.IoControlCode & 0x3) == METHOD_BUFFERED)
     436    {
     437        /* Verify the pDevExt in the session. */
     438        if (    (   !pSession
     439                 && pStack->Parameters.DeviceIoControl.IoControlCode == SUPDRV_IDC_REQ_CONNECT)
     440            ||  (   VALID_PTR(pSession)
     441                 && pSession->pDevExt == pDevExt))
    436442        {
    437443            /* Verify that the size in the request header is correct. */
     
    465471        }
    466472        else
    467         {
    468             dprintf(("VBoxDrvNtInternalDeviceControl: not buffered request (%#x) - not supported\n",
    469                      pStack->Parameters.DeviceIoControl.IoControlCode));
    470473            rcNt = STATUS_NOT_SUPPORTED;
    471         }
     474    }
     475    else
     476    {
     477        dprintf(("VBoxDrvNtInternalDeviceControl: not buffered request (%#x) - not supported\n",
     478                 pStack->Parameters.DeviceIoControl.IoControlCode));
     479        rcNt = STATUS_NOT_SUPPORTED;
    472480    }
    473481
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