From 32ec8c6868418cbef2c2bb4d2f6f7d06f38c5fbd Mon Sep 17 00:00:00 2001 From: Phillip Susi Date: Wed, 17 Oct 2001 01:34:07 +0000 Subject: [PATCH] Only pass file name as module name, not full path svn path=/trunk/; revision=2301 --- freeldr/freeldr/multiboot.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/freeldr/freeldr/multiboot.c b/freeldr/freeldr/multiboot.c index 8e7ccf680fa..8bac0bcceb6 100644 --- a/freeldr/freeldr/multiboot.c +++ b/freeldr/freeldr/multiboot.c @@ -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; -} \ No newline at end of file +}