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)

All
Windows
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bugzilla, Assigned: bugzilla)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 2 obsolete files)

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.
Attached patch Patch (obsolete) — Splinter Review
Attachment #8700847 - Flags: review?(wtc)
Summary: _PR_MD_INIT_THREAD does not set md.id field → _PR_MD_INIT_THREAD does not set md.id field on Win32
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+
Attached patch Patch (r2) (obsolete) — Splinter Review
Incorporated wtc's suggestion. Carrying forward r+.
Attachment #8700847 - Attachment is obsolete: true
Attachment #8700877 - Flags: review+
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+
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.

Attachment

General

Created:
Updated:
Size: