Closed
Bug 1234406
Opened 10 years ago
Closed 10 years ago
_PR_MD_INIT_THREAD does not set md.id field on Win32
Categories
(NSPR :: NSPR, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
4.12
People
(Reporter: bugzilla, Assigned: bugzilla)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 2 obsolete files)
|
1.36 KB,
patch
|
wtc
:
review+
wtc
:
checked-in+
|
Details | Diff | Splinter Review |
When we create new threads with NSPR, the PRThread->md.id field is set, but we don't do it when attaching an existing thread to NSPR.
| Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8700847 -
Flags: review?(wtc)
| Assignee | ||
Updated•10 years ago
|
Summary: _PR_MD_INIT_THREAD does not set md.id field → _PR_MD_INIT_THREAD does not set md.id field on Win32
Comment 2•10 years ago
|
||
Comment on attachment 8700847 [details] [diff] [review]
Patch
Review of attachment 8700847 [details] [diff] [review]:
-----------------------------------------------------------------
r=wtc. Thanks for the patch.
::: pr/src/md/windows/w95thred.c
@@ +71,5 @@
> GetCurrentProcess(), /* Process of handle */
> &(thread->md.handle), /* resulting handle */
> 0L, /* access flags */
> FALSE, /* Inheritable */
> DUPLICATE_SAME_ACCESS); /* Options */
Can you take the opportunity to check for DuplicateHandle() failure?
if (!DuplicateHandle(
...)) {
return PR_FAILURE;
}
Attachment #8700847 -
Flags: review?(wtc) → review+
| Assignee | ||
Comment 3•10 years ago
|
||
Incorporated wtc's suggestion. Carrying forward r+.
Attachment #8700847 -
Attachment is obsolete: true
Attachment #8700877 -
Flags: review+
Comment 4•10 years ago
|
||
I edited the patch slightly and checked it in:
https://hg.mozilla.org/projects/nspr/rev/719eaabe5d83
Attachment #8700877 -
Attachment is obsolete: true
Attachment #8701156 -
Flags: review+
Attachment #8701156 -
Flags: checked-in+
Updated•10 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Priority: -- → P2
Hardware: Unspecified → All
Resolution: --- → FIXED
Target Milestone: --- → 4.12
You need to log in
before you can comment on or make changes to this bug.
Description
•