Only pass file name as module name, not full path

svn path=/trunk/; revision=2301
This commit is contained in:
Phillip Susi 2001-10-17 01:34:07 +00:00
parent bafcaf58e4
commit 32ec8c6868

View file

@ -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);
@ -154,4 +161,4 @@ int GetBootPartition(char *OperatingSystemName)
}
return BootPartitionNumber;
}
}