зеркало из https://github.com/mozilla/gecko-dev.git
Minor fix for patch should have been * instead of !*
Bug 131852 r=dcone sr=attinasi a=scc
This commit is contained in:
Родитель
e4f3c9dcc2
Коммит
002181ed3c
|
@ -1010,7 +1010,7 @@ NS_IMETHODIMP nsPrintOptions::GetGlobalPrintSettings(nsIPrintSettings * *aGlobal
|
||||||
PRUnichar* printerName = nsnull;
|
PRUnichar* printerName = nsnull;
|
||||||
// Not sure if all platforms will return the proper error code
|
// Not sure if all platforms will return the proper error code
|
||||||
// so for insurance, make sure there is a printer name
|
// so for insurance, make sure there is a printer name
|
||||||
if (NS_SUCCEEDED(prtEnum->GetDefaultPrinterName(&printerName)) && printerName && !*printerName) {
|
if (NS_SUCCEEDED(prtEnum->GetDefaultPrinterName(&printerName)) && printerName && *printerName) {
|
||||||
prtEnum->InitPrintSettingsFromPrinter(printerName, mGlobalPrintSettings);
|
prtEnum->InitPrintSettingsFromPrinter(printerName, mGlobalPrintSettings);
|
||||||
nsMemory::Free(printerName);
|
nsMemory::Free(printerName);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче