mirror of
https://github.com/rwinkhart/go-winio.git
synced 2026-10-28 05:50:00 -04:00
Update pkg/etw/event.go
Co-Authored-By: kevpar <kevpar@users.noreply.github.com>
This commit is contained in:
1 parent
cd4b2fefe9
commit
98d07c865e
1 file changed
+1
-1
+1
-1
@@ -76,7 +76,7 @@ func NewEventDescriptor() *EventDescriptor {
|
|||||||
// EventDescriptor, and field metadata). Only the lower 24 bits of this value
|
// EventDescriptor, and field metadata). Only the lower 24 bits of this value
|
||||||
// are relevant.
|
// are relevant.
|
||||||
func (ed *EventDescriptor) Identity() uint32 {
|
func (ed *EventDescriptor) Identity() uint32 {
|
||||||
return (uint32(ed.version) << 16) & uint32(ed.id)
|
return (uint32(ed.version) << 16) | uint32(ed.id)
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetIdentity sets the identity of the event. If the identity is not 0, it
|
// SetIdentity sets the identity of the event. If the identity is not 0, it
|
||||||
|
|||||||
Reference in new issue
Block a user