PathFindFileNameA is returning a pointer to the last part of the string in mypath. You then pass that pointer into the mystring buffer as the output parameter to PathCombineA.
If you don't want mystring to be modified, you'll need yet another buffer to hold the output of PathCombineA.