mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-26 02:02:33 +00:00
Bug 342950 - crash when trying to print, r+sr=roc
This commit is contained in:
parent
3614e779d3
commit
c66dc59144
@ -995,7 +995,7 @@ nsPrintOptions::GetDefaultPrinterName(PRUnichar * *aDefaultPrinterName)
|
||||
rv = prtEnum->EnumeratePrinters(&ctPrinters, &printers);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
PRBool isValid = PR_FALSE;
|
||||
for (PRUint32 ii = ctPrinters - 1; ii >= 0; --ii) {
|
||||
for (PRInt32 ii = ctPrinters - 1; ii >= 0; --ii) {
|
||||
if (lastPrinterName.Equals(printers[ii])) {
|
||||
isValid = PR_TRUE;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user