[channels,drive] remove unused member filename

This commit is contained in:
Armin Novak
2023-07-26 10:45:05 +02:00
committed by Martin Fleisz
parent 70ddb6518a
commit 99bf501f0f
2 changed files with 1 additions and 8 deletions

View File

@@ -145,9 +145,8 @@ static BOOL drive_file_set_fullpath(DRIVE_FILE* file, WCHAR* fullpath)
const size_t len = _wcslen(fullpath);
free(file->fullpath);
free(file->filename);
file->fullpath = NULL;
file->filename = NULL;
if (len == 0)
return TRUE;
@@ -158,10 +157,6 @@ static BOOL drive_file_set_fullpath(DRIVE_FILE* file, WCHAR* fullpath)
if (_wcsncmp(filename, sep, ARRAYSIZE(sep)) == 0)
*filename = '\0';
if (!filename || (_wcsnlen(filename, 2) <= 1))
file->filename = _wcsdup(file->fullpath);
else
file->filename = _wcsdup(&filename[1]);
return TRUE;
}
@@ -365,7 +360,6 @@ BOOL drive_file_free(DRIVE_FILE* file)
fail:
DEBUG_WSTR("Free %s", file->fullpath);
free(file->fullpath);
free(file->filename);
free(file);
return rc;
}

View File

@@ -41,7 +41,6 @@ typedef struct
WIN32_FIND_DATAW find_data;
const WCHAR* basepath;
WCHAR* fullpath;
WCHAR* filename;
BOOL delete_pending;
UINT32 FileAttributes;
UINT32 SharedAccess;