[Win32utils-devel] [ win32utils-Bugs-4598 ] possible wrong condition
noreply at rubyforge.org
noreply at rubyforge.org
Mon May 29 11:20:21 EDT 2006
Bugs item #4598, was opened at 2006-05-29 11:20
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=411&aid=4598&group_id=85
Category: win32-eventlog
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: possible wrong condition
Initial Comment:
Is this condition right?
(eventlog.rb, line 494
if flags | EVENTLOG_SEEK_READ > 0
offset = buf[8,4].unpack('L').first + 1
end
To me it seems that it is always true as E_S_R == 2.
Maybe this is how it was meant:
unless flags & EVENTLOG_SEEK_READ > 0
I haven't understood the rest of the code, so I'm not sure about the solution.
Jano Svitok
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=411&aid=4598&group_id=85
More information about the win32utils-devel
mailing list