1
0
Fork 0

Some refinements.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3749
This commit is contained in:
Peter Veenstra 2011-08-31 09:19:59 +00:00
parent ee982d5754
commit 68a1725e0f

View file

@ -457,11 +457,12 @@ Bits DOS_Drive_Cache::GetLongName(CFileInfo* curDir, char* shortName) {
char buff[CROSS_LEN];
for (Bits i = 0; i < filelist_size; i++) {
res = wine_hash_short_file_name(curDir->fileList[i]->orgname,buff);
if (!strncmp(shortName,buff,res))
{ // Found
buff[res] = 0;
if (!strcmp(shortName,buff)) {
// Found
strcpy(shortName,curDir->fileList[i]->orgname);
return i;
};
}
}
#endif
// not available