Bug 342950 - crash when trying to print, r+sr=roc

This commit is contained in:
wr%rosenauer.org 2006-06-29 18:22:15 +00:00
parent 3614e779d3
commit c66dc59144

View File

@ -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;