[ros-bugs] [Bug 2492] PATCH: regedit: values not created in certain situations

ReactOS.Bugzilla at reactos.org ReactOS.Bugzilla at reactos.org
Sun Oct 10 20:58:37 UTC 2010


--- Comment #14 from RoMe <roelmessiant at gmail.com>  2010-10-10 20:58:36 CET ---
Created an attachment (id=5379)
 --> (http://www.reactos.org/bugzilla/attachment.cgi?id=5379)
Fixes for RegEnumValueA

I can confirm the behaviour Katayama describes.

The cause is the Nt function puts the DataOffset field to 0xFFFFFFFF when the
enumerated value has no data.
This causes "total_size - DataOffset" to fail. The DataLength field is
correctly set to 0, and can be used reliably instead.
I tested the Nt function on Vista, and the same behaviour is present there, so
no bug in the kernel.

Katayama's patch fixes up the RegEnumValueW function, and my additional patch
the RegEnumValueA function.
Both patches should be applied to fix the bug, because A doesn't forward the
call to W.

Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the Ros-bugs mailing list