Closed Bug 97461 Opened 24 years ago Closed 24 years ago

[PATCH]Print will crash with printer thats not ready

Categories

(Core :: Printing: Output, defect)

x86
Windows NT
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla0.9.5

People

(Reporter: dcone, Assigned: dcone)

Details

(Keywords: topembed)

Attachments

(4 files)

If you print.. and dont have a driver.. or get a null string back from the printer, if the printer is not ready, you get a crash.
there are some formating changes.. so the patch seems large, but its really not. The thing to look for is the new line if (0 != devnames){ }
Don, could you attach a patch with no whitespace changes (cvs diff -u -w will do it) - thanks.
Thansk Don - SR=attinasi
wouldn't it be better to use PR_TRUE and nsnull?
I dont think so. I am checking a value returned from a windows call, which returns true or false.. PR_TRUE is a Netscape value.. and we can define those anyway we want..for our own calls. Also.. that is not part of the patch. The 0 is also a value returned by a windows call.. nsnull is not guarenteed to be 0, its just a value to check against Netscape calls. I believe that is the correct way to use these values.
Summary: Print will crash with printer thats not ready → [PATCH]Print will crash with printer thats not ready
r=rods, but change the 0 to NULL because that's what the documentation says the value could come back as.
Target Milestone: --- → mozilla0.9.4
This is a crasher.. so marking as topembed.
Keywords: topembed
Attached patch correct patchSplinter Review
a=chofmann for 0.9.4
Set milestone to mozilla0.9.5 added nsbranch keyword
Keywords: nsbranch
Target Milestone: mozilla0.9.4 → mozilla0.9.5
this is checked into the 9.4 branch.
Keywords: nsbranch
Checked into the 9.2 branch also
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: