Used CalcLength() to calculate the length of pszPath explicitly; used bee::String::LockBuffer()/UnlockBuffer() to cut strParentDir.
Used CalcLength() to calculate the length of pszPath explicitly; used bee::String::LockBuffer()/UnlockBuffer() to cut strParentDir.

revl/libb