fixing merge problem of windows not looking for components in components directory - dp & akkana

git-svn-id: svn://10.0.0.236/trunk@23384 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
akkana%netscape.com
1999-03-09 22:18:32 +00:00
parent c4117f80e5
commit d966254b07
4 changed files with 4 additions and 24 deletions

View File

@@ -1573,14 +1573,7 @@ nsComponentManagerImpl::AutoRegister(RegistrationTime when,
}
}
#else
//XXX get default pathlist from registry
//XXX Temporary hack. Registering components from current directory
#ifdef XP_UNIX
const char *defaultPathList = "./components";
#else
// XXX This will change to ./components very soon
const char *defaultPathList = ".";
#endif
SyncComponentsInPathList(defaultPathList);
#endif
return NS_OK;
@@ -1627,11 +1620,7 @@ nsComponentManagerImpl::SyncComponentsInDir(const char *dir)
unsigned int n = strlen(fullname);
if (n+1 < sizeof(fullname))
{
#ifdef XP_WIN
fullname[n] = PR_GetDirectorySeparator();
#else
fullname[n] = '/';
#endif
n++;
}
char *filepart = fullname + n;