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;
|
||||
module_t* pModule;
|
||||
char* ModuleNameString;
|
||||
char * TempName;
|
||||
|
||||
/*
|
||||
* Get current module data structure and module name string array
|
||||
*/
|
||||
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];
|
||||
|
||||
dwModuleSize = GetFileSize(ModuleImage);
|
||||
|
|
Loading…
Reference in a new issue