зеркало из https://github.com/mozilla/pjs.git
Changes so that PalmSync Installer can run not just from dir but also from a program sub-menu or a short cut. Installer Manifest file changes for PalmSync r=ssu, sr=mscott, a=asa.
This commit is contained in:
Родитель
3afe8b8387
Коммит
0445dc5ce1
|
@ -387,6 +387,7 @@ bin\components\mdn-service.js
|
|||
bin\components\nsSetDefaultMail.js
|
||||
bin\components\nsUnsetDefaultMail.js
|
||||
;these Palm Sync files are conditionally built so would not exist unless built
|
||||
bin\mozABConduit.dll
|
||||
bin\PalmSyncProxy.dll
|
||||
bin\PalmSyncInstall.exe
|
||||
bin\components\palmsync.dll
|
||||
|
|
|
@ -342,8 +342,14 @@ int InstallConduit()
|
|||
// Applications should not place conduits in the Palm Desktop directory.
|
||||
// The Palm Desktop installer only manages the Palm Desktop conduits.
|
||||
TCHAR szConduitPath[_MAX_PATH];
|
||||
if(!GetCurrentDirectory(_MAX_PATH, szConduitPath))
|
||||
if(!GetModuleFileName(NULL, szConduitPath, _MAX_PATH))
|
||||
return IDS_ERR_CONDUIT_NOT_FOUND;
|
||||
// extract the dir path (without the module name)
|
||||
int index = strlen(szConduitPath)-1;
|
||||
while((szConduitPath[index] != DIRECTORY_SEPARATOR) && index)
|
||||
index--;
|
||||
szConduitPath[index] = 0;
|
||||
|
||||
// take care of any possible string overwrites
|
||||
if((strlen(szConduitPath) + strlen(DIRECTORY_SEPARATOR_STR) + strlen(CONDUIT_FILENAME)) > _MAX_PATH)
|
||||
return IDS_ERR_LOADING_CONDMGR;
|
||||
|
|
Загрузка…
Ссылка в новой задаче