VirtualBox

Ignore:
Timestamp:
Apr 7, 2014 10:57:41 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
93166
Message:

crOpenGL: command blocks: enable in guest if host supports it; bugfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp

    r50957 r50984  
    42074207            {
    42084208                PVBOXWDDM_CONTEXT pContext = (PVBOXWDDM_CONTEXT)pEscape->hContext;
     4209                if (!pContext)
     4210                {
     4211                    WARN(("context not specified"));
     4212                    return STATUS_INVALID_PARAMETER;
     4213                }
    42094214                if (pEscape->PrivateDriverDataSize == sizeof (*pEscapeHdr))
    42104215                {
    42114216                    pEscapeHdr->u32CmdSpecific = pContext->u32CrConClientID;
     4217                    Status = STATUS_SUCCESS;
     4218                }
     4219                else
     4220                {
     4221                    WARN(("unexpected buffer size!"));
     4222                    Status = STATUS_INVALID_PARAMETER;
     4223                }
     4224
     4225                break;
     4226            }
     4227
     4228            case VBOXESC_CRHGSMICTLCON_GETHOSTCAPS:
     4229            {
     4230                if (pEscape->PrivateDriverDataSize == sizeof (*pEscapeHdr))
     4231                {
     4232                    pEscapeHdr->u32CmdSpecific = VBoxMpCrGetHostCaps();
    42124233                    Status = STATUS_SUCCESS;
    42134234                }
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