mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-07 23:43:37 +00:00
Minor fix for patch should have been * instead of !*
Bug 131852 r=dcone sr=attinasi a=scc
This commit is contained in:
parent
052726b68e
commit
4458993de1
@ -1010,7 +1010,7 @@ NS_IMETHODIMP nsPrintOptions::GetGlobalPrintSettings(nsIPrintSettings * *aGlobal
|
||||
PRUnichar* printerName = nsnull;
|
||||
// Not sure if all platforms will return the proper error code
|
||||
// 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);
|
||||
nsMemory::Free(printerName);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user