make version registry code match main mozilla registry code

This commit is contained in:
dveditz%netscape.com 1999-09-18 01:23:59 +00:00
Родитель cc678185e1
Коммит 3857e06b0a
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -330,9 +330,9 @@ extern char* vr_findVerRegName()
err = FSpGetFullPath(&regSpec, &pathLen, &thePath);
if (err == noErr && thePath)
{
#ifdef STANDALONE_REGISTRY
// we have no idea if this moves memory, so better lock the handle
HLock(thePath);
#if defined(STANDALONE_REGISTRY) || defined(USE_STDIO_MODES)
verRegName = XP_ALLOC(pathLen + 1);
XP_STRNCPY(verRegName, *thePath, pathLen);
verRegName[pathLen] = '\0';
@ -340,8 +340,6 @@ extern char* vr_findVerRegName()
/* Since we're now using NSPR, this HAS to be a unix path! */
const char* src;
char* dst;
// we have no idea if this moves memory, so better lock the handle
HLock(thePath);
verRegName = (char*)XP_ALLOC(pathLen + 2);
src = *(char**)thePath;
dst = verRegName;