зеркало из https://github.com/mozilla/gecko-dev.git
Fix bug 311793: getIntPref:withSuccess: sometimes fails to set 'outSuccess'. Patch partiallyl by Ulrik Sverdrup.
This commit is contained in:
Родитель
478330c48d
Коммит
542361f8a8
|
@ -765,10 +765,11 @@ typedef enum EProxyConfig {
|
|||
float blueFloat = ((float)blueInt / 255.0);
|
||||
|
||||
returnColor = [NSColor colorWithCalibratedRed:redFloat green:greenFloat blue:blueFloat alpha:1.0f];
|
||||
if (outSuccess) *outSuccess = YES;
|
||||
}
|
||||
else
|
||||
{
|
||||
*outSuccess = NO;
|
||||
if (outSuccess) *outSuccess = NO;
|
||||
}
|
||||
|
||||
return returnColor;
|
||||
|
@ -792,9 +793,11 @@ typedef enum EProxyConfig {
|
|||
PRInt32 intPref = 0;
|
||||
nsresult rv = NS_ERROR_FAILURE;
|
||||
if (mPrefs)
|
||||
mPrefs->GetIntPref(prefName, &intPref);
|
||||
rv = mPrefs->GetIntPref(prefName, &intPref);
|
||||
|
||||
if (outSuccess)
|
||||
*outSuccess = NS_SUCCEEDED(rv);
|
||||
|
||||
return intPref;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче