Fixed crash due to multi-threading. bug# 7308, bug# 8150
git-svn-id: svn://10.0.0.236/trunk@35882 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -814,7 +814,9 @@ NS_IMETHODIMP nsRegistry::GetSubtree( Key baseKey, const char *path, Key *result
|
||||
// Make sure we have a place for the result.
|
||||
if( result ) {
|
||||
// Get key.
|
||||
PR_Lock(mregLock);
|
||||
mErr = NR_RegGetKey( mReg,(RKEY)baseKey,(char*)path,(RKEY*)result );
|
||||
PR_Unlock(mregLock);
|
||||
// Convert result.
|
||||
rv = regerr2nsresult( mErr );
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user