Skip to content
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

Question about terminating null char checks #5

Open
traceon opened this issue Nov 13, 2019 · 0 comments
Open

Question about terminating null char checks #5

traceon opened this issue Nov 13, 2019 · 0 comments

Comments

@traceon
Copy link

traceon commented Nov 13, 2019

Is this a correct behavior for wide char case, assuming lpBuffer here points to the first char of the expected 2-char null sequence, not the second one, as I understand?

if (*lpBuffer != '\0' || fDouble && lpBuffer[cb > 0 ? - 1 : 0] != '\0')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant