mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 12:40:33 +00:00
Check only the last path component for system hive name.
svn path=/trunk/; revision=4401
This commit is contained in:
parent
e02bb01522
commit
a8c65e148b
1 changed files with 11 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: main.c,v 1.148 2003/03/22 18:27:40 ekohl Exp $
|
||||
/* $Id: main.c,v 1.149 2003/03/22 22:32:17 ekohl Exp $
|
||||
*
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: ntoskrnl/ke/main.c
|
||||
|
@ -485,7 +485,16 @@ ExpInitializeExecutive(VOID)
|
|||
{
|
||||
start = KeLoaderModules[i].ModStart;
|
||||
length = KeLoaderModules[i].ModEnd - start;
|
||||
name = (PCHAR)KeLoaderModules[i].String;
|
||||
name = strrchr((PCHAR)KeLoaderModules[i].String, '\\');
|
||||
if (name == NULL)
|
||||
{
|
||||
name = (PCHAR)KeLoaderModules[i].String;
|
||||
}
|
||||
else
|
||||
{
|
||||
name++;
|
||||
}
|
||||
|
||||
if (!_stricmp (name, "system") ||
|
||||
!_stricmp (name, "system.hiv"))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue