Changeset 20312 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Wine/switcher
- Timestamp:
- Jun 5, 2009 10:47:35 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/switcher/sw_common.c
r20227 r20312 14 14 #include <windows.h> 15 15 #include "switcher.h" 16 17 static char* gsBlackList[] = {"Dwm.exe"/*, "taskeng.exe"*/, NULL}; 16 18 17 19 /* Checks if 3D is enabled for VM and it works on host machine */ … … 38 40 BOOL checkOptions(void) 39 41 { 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 41 68 return TRUE; 42 69 }
Note:
See TracChangeset
for help on using the changeset viewer.