Hi Ivan,

On May 18, 2018, at 2:24 PM, Ivan Gerasimov <[email protected]> wrote:

> In fact, we only need to check that that only file name (without the 
> directory name) is the same, so maybe it will be safer to compare the 
> substrings starting at the very last backslash?
> If the check fails, then we may want to try to see if pathbuf ends with 
> fileData.cAlternateFileName.

Indeed it might make more sense to locate the last backslash using strrchr or 
equivalent and then do the comparison against the returned pointers without a 
length.

Thanks,

Brian

Reply via email to