mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
Only pass file name as module name, not full path
svn path=/trunk/; revision=2301
This commit is contained in:
parent
bafcaf58e4
commit
32ec8c6868
1 changed files with 8 additions and 1 deletions
|
@ -119,11 +119,18 @@ BOOL MultiBootLoadModule(FILE *ModuleImage, char *ModuleName)
|
||||||
DWORD dwModuleSize;
|
DWORD dwModuleSize;
|
||||||
module_t* pModule;
|
module_t* pModule;
|
||||||
char* ModuleNameString;
|
char* ModuleNameString;
|
||||||
|
char * TempName;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get current module data structure and module name string array
|
* Get current module data structure and module name string array
|
||||||
*/
|
*/
|
||||||
pModule = &multiboot_modules[mb_info.mods_count];
|
pModule = &multiboot_modules[mb_info.mods_count];
|
||||||
|
do {
|
||||||
|
TempName = strchr( ModuleName, '\\' );
|
||||||
|
if( TempName )
|
||||||
|
ModuleName = TempName + 1;
|
||||||
|
} while( TempName );
|
||||||
|
|
||||||
ModuleNameString = multiboot_module_strings[mb_info.mods_count];
|
ModuleNameString = multiboot_module_strings[mb_info.mods_count];
|
||||||
|
|
||||||
dwModuleSize = GetFileSize(ModuleImage);
|
dwModuleSize = GetFileSize(ModuleImage);
|
||||||
|
@ -154,4 +161,4 @@ int GetBootPartition(char *OperatingSystemName)
|
||||||
}
|
}
|
||||||
|
|
||||||
return BootPartitionNumber;
|
return BootPartitionNumber;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue