mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
make version registry code match main mozilla registry code
This commit is contained in:
parent
cc678185e1
commit
3857e06b0a
@ -330,9 +330,9 @@ extern char* vr_findVerRegName()
|
||||
err = FSpGetFullPath(®Spec, &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;
|
||||
|
Loading…
Reference in New Issue
Block a user