Closed
Bug 11579
Opened 25 years ago
Closed 25 years ago
nsMsgDatabase::HasNew() has broken use of NS_COMFALSE
Categories
(MailNews Core :: Database, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
M9
People
(Reporter: jband_mozilla, Assigned: sspitzer)
References
Details
nsMsgDatabase::HasNew() returns either NS_OK (0) or NS_COMFALSE (1). nsMsgDatabase::GetFirstNew() checks for NS_SUCCEEDED(HasNew()) which is always true even if m_newSet is NULL; This will crash. nsMsgDBFolder::ReadDBFolderInfo checks for '!db->HasNew()' which is either broken or confusing. NS_COMFALSE generally sucks.
Updated•25 years ago
|
Target Milestone: M10
Comment 1•25 years ago
|
||
setting M10
Assignee | ||
Comment 2•25 years ago
|
||
fixed checked in. HasNew() has been rewritten.
Assignee | ||
Updated•25 years ago
|
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Target Milestone: M10 → M9
Assignee | ||
Comment 3•25 years ago
|
||
jband will have to verify, as it is in the source.
Assignee | ||
Comment 4•25 years ago
|
||
marking m9 and fixed.
Reporter | ||
Comment 5•25 years ago
|
||
Seth, Was the old usage of HasNew() in nsMsgDBFolder.cpp broken? It used to say '!db->HasNew()' and now it says '!hasnew'. These look the same, but this function used to return NS_OK (which equals zero) for 'yes' and now returns PR_TRUE for 'yes'. So either it was broken before, or it seems to me, this change breaks it. Just want to be sure. John.
Assignee | ||
Comment 6•25 years ago
|
||
putterman has reviewed my code, and also believes it to be correct. jband, thanks for the heads up.
Scott and Seth, please advise QA how to verify this bug. If you believe this cannot be verified by QA, please let me know. I'll take your words and mark Verified. Thanks, Fenella
Assignee | ||
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Assignee | ||
Comment 8•25 years ago
|
||
marking verified for fenella. HasNew() no longer uses NS_COMFALSE See: http://lxr.mozilla.org/seamonkey/source/mailnews/db/msgdb/src/nsMsgDatabase.cpp#1538
Updated•20 years ago
|
Product: MailNews → Core
Updated•16 years ago
|
Product: Core → MailNews Core
Comment hidden (collapsed) |
You need to log in
before you can comment on or make changes to this bug.
Description
•