Hi, while playing around with this nice package I found two bugs. One is that enumSubkeys would repeatedly return the same string, unless the next subkey was shorter. I fixed it by resetting numCharsReaded before every call regEnumKeyEx. I also reordered the function a bit and used case.
The other one was in readString, which raised an exception due to ERROR_MORE_DATA. There was a superfluous line and this case was not handled.
Hope it is OK that I put these different commits together in one pull request, this is my first pull request on GitHub :-).
Hi, while playing around with this nice package I found two bugs. One is that
enumSubkeys
would repeatedly return the same string, unless the next subkey was shorter. I fixed it by resettingnumCharsReaded
before every callregEnumKeyEx
. I also reordered the function a bit and usedcase
.The other one was in
readString
, which raised an exception due toERROR_MORE_DATA
. There was a superfluous line and this case was not handled.Hope it is OK that I put these different commits together in one pull request, this is my first pull request on GitHub :-).