VirtualBox

Ignore:
Timestamp:
Mar 26, 2012 3:16:14 PM (13 years ago)
Author:
vboxsync
Message:

wined3d/xpdm: better blacklisting

File:
1 edited

Legend:

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

    r35319 r40650  
    2020#include "switcher.h"
    2121
    22 static char* gsBlackList[] = {"Dwm.exe", "java.exe", "javaw.exe", "javaws.exe"/*, "taskeng.exe"*/, NULL};
     22static char* gsBlackListExe[] = {"Dwm.exe", "java.exe", "javaw.exe", "javaws.exe"/*, "taskeng.exe"*/, NULL};
     23static char* gsBlackListDll[] = {"awt.dll", "wpfgfx_v0400.dll", "wpfgfx_v0300.dll", NULL};
    2324
    2425/* Checks if 3D is enabled for VM and it works on host machine */
     
    4748}
    4849
    49 BOOL checkOptions(void)
     50BOOL checkOptionsDll(void)
     51{
     52    int i;
     53    for (i=0; gsBlackListDll[i]; ++i)
     54    {
     55        if (GetModuleHandleA(gsBlackListDll[i]))
     56            return FALSE;
     57    }
     58
     59    return TRUE;
     60}
     61
     62BOOL checkOptionsExe(void)
    5063{
    5164    char name[1000];
     
    6982    }
    7083
    71     for (i=0; gsBlackList[i]; ++i)
     84    for (i=0; gsBlackListExe[i]; ++i)
    7285    {
    73         if (!stricmp(filename, gsBlackList[i]))
     86        if (!stricmp(filename, gsBlackListExe[i]))
    7487            return FALSE;
    7588    }
     89
     90    return TRUE;
     91}
     92
     93BOOL checkOptions(void)
     94{
     95    if (!checkOptionsDll())
     96        return FALSE;
     97
     98    if (!checkOptionsExe())
     99        return FALSE;
    76100
    77101    return TRUE;
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