From a739a69c41791463186b57bedc7d73da21858800 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sun, 25 Apr 1999 09:15:25 +0000 Subject: [PATCH] Use DllOverrides from wine.ini as defaults also in loadorder.c (merged in some MM dlls lines from Eric Poeuch). --- loader/loadorder.c | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/loader/loadorder.c b/loader/loadorder.c index d159213e8dc..18f3a2d9132 100644 --- a/loader/loadorder.c +++ b/loader/loadorder.c @@ -30,6 +30,33 @@ static module_loadorder_t *module_loadorder = NULL; static int nmodule_loadorder = 0; static int nmodule_loadorder_alloc = 0; +static struct tagDllOverride { + char *key,*value; +} DefaultDllOverrides[] = { + {"kernel32,gdi32,user32", "builtin"}, + {"kernel,gdi,user", "builtin"}, + {"toolhelp", "builtin"}, + {"comdlg32,commdlg", "elfdll,builtin,native"}, + {"version,ver", "elfdll,builtin,native"}, + {"shell32,shell", "builtin,native"}, + {"lz32,lzexpand", "builtin,native"}, + {"commctrl,comctl32", "builtin,native"}, + {"wsock32,winsock", "builtin"}, + {"advapi32,crtdll,ntdll", "builtin,native"}, + {"mpr,winspool", "builtin,native"}, + {"ddraw,dinput,dsound", "builtin,native"}, + {"winmm, mmsystem", "builtin"}, + {"msvideo, msvfw32", "builtin, native"}, + {"mcicda.drv, mciseq.drv", "builtin, native"}, + {"mciwave.drv", "builtin, native"}, + {"mciavi.drv, mcianim.drv", "native, builtin"}, + {"w32skrnl", "builtin"}, + {"wnaspi32,wow32", "builtin"}, + {"system,display,wprocs ", "builtin"}, + {"wineps", "builtin"}, + {NULL,NULL}, +}; + /*************************************************************************** * cmp_sort_func (internal, static) * @@ -358,6 +385,16 @@ BOOL MODULE_InitLoadOrder(void) return FALSE; default_loadorder.modulename = ""; + { + int i; + for (i=0;DefaultDllOverrides[i].key;i++) + AddLoadOrderSet( + DefaultDllOverrides[i].key, + DefaultDllOverrides[i].value, + FALSE + ); + } + /* Read the explicitely defined orders for specific modules as an entire section */ nbuffer = PROFILE_GetWineIniString("DllOverrides", NULL, "", buffer, sizeof(buffer)); if(nbuffer == BUFFERSIZE-2)