use PathCchRemoveFileSpec instead of deprecated PathRemoveFileSpec