char lsbuffer[1024];
register char *tp;
char szCurItem[1024];
+
strcpy(szCurItem, name);
tp = (char *)strrchr(szCurItem, '\\');
char tbuffer[1024];
char lsbuffer[1024];
register char *tp;
+ char szCurItem[1024];
BOOL error = FALSE;
CStringArray results;
CString str;
continue; // don't bother trying
}
+ strcpy(szCurItem, files[i]);
+
+ tp = (char *)strrchr(szCurItem, '\\');
+ if (tp) {
+ strncpy(tbuffer, szCurItem, code = tp - szCurItem + 1); /* the dir name */
+ tbuffer[code] = 0;
+ tp++; /* skip the slash */
+ } else {
+ fs_ExtractDriveLetter(szCurItem, tbuffer);
+ strcat(tbuffer, ".");
+ tp = szCurItem;
+ fs_StripDriveLetter(tp, tp, 0);
+ }
+
blob.out_size = 0;
blob.in = tp;
blob.in_size = strlen(tp)+1;