Use PathFileFileName API instead of searching for a backslash to find the filename.
Finished feature 42278963/automatically-register.