#define kNumPartInfos (16)
static PartInfo gParts[kNumPartInfos];
+static char gMakeDirSpec[1024];
// Private function prototypes
long LookupPartition(char *devSpec);
{
long ret, index = 0;
char *curName;
+
+ if (!dirSpec) {
+ long idx, len;
+
+ len = strlen(name);
+
+ for (idx = len; idx && (name[idx] != '\\'); idx--) {}
+ idx++;
+ strncpy(gMakeDirSpec, name, idx);
+ name += idx;
+ dirSpec = gMakeDirSpec;
+ }
while (1) {
ret = GetDirEntry(dirSpec, &index, &curName, flags, time);