Do not remove .drv from filenames.
This commit is contained in:
parent
f22ff403ac
commit
c672c00f8b
|
@ -521,7 +521,7 @@ BOOL MODULE_InitLoadOrder(void)
|
|||
*
|
||||
* Locate the loadorder of a module.
|
||||
* Any path is stripped from the path-argument and so are the extension
|
||||
* '.dll', '.exe' and '.drv'. A lookup in the table can yield an override for
|
||||
* '.dll' and '.exe'. A lookup in the table can yield an override for
|
||||
* the specific dll. Otherwise the default load order is returned.
|
||||
*/
|
||||
module_loadorder_t *MODULE_GetLoadOrder(const char *path)
|
||||
|
@ -557,9 +557,7 @@ module_loadorder_t *MODULE_GetLoadOrder(const char *path)
|
|||
}
|
||||
|
||||
strcpy(fname, name);
|
||||
if(len >= 4 && (!lstrcmpiA(fname+len-4, ".dll") ||
|
||||
!lstrcmpiA(fname+len-4, ".exe") ||
|
||||
!lstrcmpiA(fname+len-4, ".drv")))
|
||||
if(len >= 4 && (!lstrcmpiA(fname+len-4, ".dll") || !lstrcmpiA(fname+len-4, ".exe")))
|
||||
fname[len-4] = '\0';
|
||||
|
||||
lo.modulename = fname;
|
||||
|
|
Loading…
Reference in New Issue