Skip to content

Question about terminating null char checks #5

@traceon

Description

@traceon

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')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions