diff options
| author | Javier <dev.git@javispedro.com> | 2026-11-29 19:49:37 +0100 |
|---|---|---|
| committer | Javier <dev.git@javispedro.com> | 2026-11-29 20:18:59 +0100 |
| commit | 2e2b81cdfc694c88a052b13e133172cc8d4e6d19 (patch) | |
| tree | b3c42c6143ee0a9b5d72ebde2eb827dc810f23c6 /lfn.h | |
| parent | 5898f13480921e1c1ab362852f88794ea955ffce (diff) | |
| download | vbados-2e2b81cdfc694c88a052b13e133172cc8d4e6d19.tar.gz vbados-2e2b81cdfc694c88a052b13e133172cc8d4e6d19.zip | |
vbsf: fix regression where files appear multiple times on dir
Diffstat (limited to 'lfn.h')
| -rw-r--r-- | lfn.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -269,6 +269,8 @@ static inline char *find_real_name( SHFLROOT root = data->drives[drive].root; uint8_t hash_chars = data->drives[drive].opt.hash_chars; SHFLSTRING *shflstr = &lfndirinfo.dirinfo.name; // reuse the lfndirinfo string buffer + // we can reuse it since we only need shflstr as input to the first call, + // before lfndirinfo is used vboxerr err; dprintf("find_real_name path=%Fs filename=%Fs\n", path, filename); @@ -301,8 +303,6 @@ static inline char *find_real_name( SHFL_LIST_RETURN_ONE, &size, shflstr, &lfndirinfo.dirinfo, &resume, &count); - // shflstr not needed anymore, and besides it is now used as lfndirinfo - shflstr = NULL; // Reset the size of the buffer (see find_next_from_vbox) lfndirinfo.dirinfo.name.u16Size = sizeof(lfndirinfo.buf); |
