-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix manual hooks storing their name badly #774
Fix manual hooks storing their name badly #774
Conversation
Broken log: (line 924) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looked at everything, changes are obvious, and make sense.
Have not tested, but i think @GeckoEidechse did
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cannot reproduce in testing with the CI builds but I trust @ASpoonPlaysGames to have done the testing with the isolated change and so I'm signing it off together with the review by @EladNLG.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good and now its more in line how c++ should be written
Fix manual hooks storing their name wrong and move to just using std::string since it's much more convenient and this isn't C
Fix manual hooks storing their name wrong and move to just using std::string since it's much more convenient and this isn't C
Fix manual hooks storing their name wrong and move to just using std::string since it's much more convenient and this isn't C
They weren't storing the null terminator since
strlen
doesn't include it. This meant that anyManualHook
s were logging their name blindly and just reading random memory until they hit a null terminator.I also moved over to just using
std::string
instead of doing manual allocations etc. since we are doing C++ here we have these tools why not use them.Testing:
OnCommandSubmittedHook
doesn't log it's own name properly when enabled (there are also others)