VirtualBox

Ignore:
Timestamp:
Jun 5, 2009 10:47:35 AM (16 years ago)
Author:
vboxsync
Message:

crOpenGL: disable d3d for wdm.exe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/switcher/sw_common.c

    r20227 r20312  
    1414#include <windows.h>
    1515#include "switcher.h"
     16
     17static char* gsBlackList[] = {"Dwm.exe"/*, "taskeng.exe"*/, NULL};
    1618
    1719/* Checks if 3D is enabled for VM and it works on host machine */
     
    3840BOOL checkOptions(void)
    3941{
    40     //@todo: check some registry keys, app name etc.
     42    char name[1000];
     43    char *filename = name, *pName;
     44    int i;
     45
     46        if (!GetModuleFileName(NULL, name, 1000))
     47                return TRUE;
     48
     49    /*Extract filename*/
     50    for (pName=name; *pName; ++pName)
     51    {
     52        switch (*pName)
     53        {
     54            case ':':
     55            case '\\':
     56            case '/':
     57                filename = pName + 1;
     58                break;
     59        }
     60    }
     61
     62    for (i=0; gsBlackList[i]; ++i)
     63    {
     64        if (!strcmp(filename, gsBlackList[i]))
     65            return FALSE;
     66    }
     67
    4168    return TRUE;
    4269}
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