Changeset 40650 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Wine/switcher
- Timestamp:
- Mar 26, 2012 3:16:14 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/switcher/sw_common.c
r35319 r40650 20 20 #include "switcher.h" 21 21 22 static char* gsBlackList[] = {"Dwm.exe", "java.exe", "javaw.exe", "javaws.exe"/*, "taskeng.exe"*/, NULL}; 22 static char* gsBlackListExe[] = {"Dwm.exe", "java.exe", "javaw.exe", "javaws.exe"/*, "taskeng.exe"*/, NULL}; 23 static char* gsBlackListDll[] = {"awt.dll", "wpfgfx_v0400.dll", "wpfgfx_v0300.dll", NULL}; 23 24 24 25 /* Checks if 3D is enabled for VM and it works on host machine */ … … 47 48 } 48 49 49 BOOL checkOptions(void) 50 BOOL 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 62 BOOL checkOptionsExe(void) 50 63 { 51 64 char name[1000]; … … 69 82 } 70 83 71 for (i=0; gsBlackList [i]; ++i)84 for (i=0; gsBlackListExe[i]; ++i) 72 85 { 73 if (!stricmp(filename, gsBlackList [i]))86 if (!stricmp(filename, gsBlackListExe[i])) 74 87 return FALSE; 75 88 } 89 90 return TRUE; 91 } 92 93 BOOL checkOptions(void) 94 { 95 if (!checkOptionsDll()) 96 return FALSE; 97 98 if (!checkOptionsExe()) 99 return FALSE; 76 100 77 101 return TRUE;
Note:
See TracChangeset
for help on using the changeset viewer.