mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 11:37:26 +00:00
Strip .drv extensions to MODULE_GetLoadOrder.
This commit is contained in:
parent
66a44e3c1f
commit
5fce6fb707
1 changed files with 5 additions and 3 deletions
|
@ -520,8 +520,8 @@ BOOL MODULE_InitLoadOrder(void)
|
||||||
*
|
*
|
||||||
* Locate the loadorder of a module.
|
* Locate the loadorder of a module.
|
||||||
* Any path is stripped from the path-argument and so are the extension
|
* Any path is stripped from the path-argument and so are the extension
|
||||||
* '.dll' and '.exe'. A lookup in the table can yield an override for the
|
* '.dll', '.exe' and '.drv'. A lookup in the table can yield an override for
|
||||||
* specific dll. Otherwise the default load order is returned.
|
* the specific dll. Otherwise the default load order is returned.
|
||||||
*/
|
*/
|
||||||
module_loadorder_t *MODULE_GetLoadOrder(const char *path)
|
module_loadorder_t *MODULE_GetLoadOrder(const char *path)
|
||||||
{
|
{
|
||||||
|
@ -556,7 +556,9 @@ module_loadorder_t *MODULE_GetLoadOrder(const char *path)
|
||||||
}
|
}
|
||||||
|
|
||||||
strcpy(fname, name);
|
strcpy(fname, name);
|
||||||
if(len >= 4 && (!lstrcmpiA(fname+len-4, ".dll") || !lstrcmpiA(fname+len-4, ".exe")))
|
if(len >= 4 && (!lstrcmpiA(fname+len-4, ".dll") ||
|
||||||
|
!lstrcmpiA(fname+len-4, ".exe") ||
|
||||||
|
!lstrcmpiA(fname+len-4, ".drv")))
|
||||||
fname[len-4] = '\0';
|
fname[len-4] = '\0';
|
||||||
|
|
||||||
lo.modulename = fname;
|
lo.modulename = fname;
|
||||||
|
|
Loading…
Reference in a new issue