- StrnCatGrow(&FullPath, &Length, PathName, StrStr(PathName, L"\\")==NULL?0:StrStr(PathName, L"\\")-PathName+1);\r
- if (StrStr(FullPath, L":\\") == NULL) {\r
- StrnCatGrow(&FullPath, &Length, L":\\", 0);\r
+ TempSpot = StrStr(PathName, L":");\r
+ if (TempSpot != NULL) {\r
+ *TempSpot = CHAR_NULL;\r
+ }\r
+ TempSpot = StrStr(PathName, L"\\");\r
+ if (TempSpot != NULL) {\r
+ *TempSpot = CHAR_NULL;\r