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

Simplify NtProcessInfoHelper.GetProcessShortName #71136

Merged
merged 1 commit into from
Jun 22, 2022

Commits on Jun 22, 2022

  1. Simplify NtProcessInfoHelper.GetProcessShortName

    The previous code was iterating character by character through the name, looking for the last occurrence of a slash and the last occurrence of a period.  For the slash, we can just LasIndexOfAny.  For the period, it was only doing this in order to trim off ".exe" if a period was found and the text at that point was ".exe"... so we can just compare the end with ".exe".
    stephentoub committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    5db3c9e View commit details
    Browse the repository at this point in the history