1
0
Fork 0

some warning fixes (fear the msvc)

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3758
This commit is contained in:
Sebastian Strohhäcker 2011-11-17 23:04:05 +00:00
parent 333da22de6
commit 6f5930ee92
2 changed files with 6 additions and 5 deletions

View file

@ -455,13 +455,13 @@ Bits DOS_Drive_Cache::GetLongName(CFileInfo* curDir, char* shortName) {
// else it's most likely a Wine style short name ABCD~###, # = not dot (length at least 8)
// The above test is rather strict as the following loop can be really slow if filelist_size is large.
char buff[CROSS_LEN];
for (Bits i = 0; i < filelist_size; i++) {
for (Bitu i = 0; i < filelist_size; i++) {
res = wine_hash_short_file_name(curDir->fileList[i]->orgname,buff);
buff[res] = 0;
if (!strcmp(shortName,buff)) {
// Found
strcpy(shortName,curDir->fileList[i]->orgname);
return i;
return (Bits)i;
}
}
#endif