Commit 85e901d2 authored by rswindell's avatar rswindell
Browse files

Using fexistcase() to get/display long filename on Win32.

parent f2775b77
......@@ -440,20 +440,14 @@ bool sbbs_t::listfile(char *fname, char HUGE16 *buf, uint dirnum
#ifdef _WIN32
if(exist && !(cfg.file_misc&FM_NO_LFN)) {
WIN32_FIND_DATA finddata;
HANDLE h=FindFirstFile(path,&finddata);
if(h!=INVALID_HANDLE_VALUE) {
if(stricmp(finddata.cFileName,fname) && stricmp(finddata.cFileName,str))
bprintf("%.*s\r\n%21s",LEN_FDESC,finddata.cFileName,"");
FindClose(h);
}
fexistcase(path); /* Get real (long?) filename */
ptr=getfname(path);
if(stricmp(ptr,fname) && stricmp(ptr,str))
bprintf("%.*s\r\n%21s",LEN_FDESC,ptr,"");
}
#endif
if(!ext[0]) {
if(search[0]) { /* high-light string in string */
strcpy(tmp,str);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment