Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
85e901d2
Commit
85e901d2
authored
May 11, 2004
by
rswindell
Browse files
Using fexistcase() to get/display long filename on Win32.
parent
f2775b77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
src/sbbs3/listfile.cpp
src/sbbs3/listfile.cpp
+5
-11
No files found.
src/sbbs3/listfile.cpp
View file @
85e901d2
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment