mirror of
https://github.com/CTCaer/hekate.git
synced 2025-04-20 11:35:56 +00:00
combining some lines and removing a var for efficiency
This commit is contained in:
parent
03fdd19b3a
commit
7d81f2d1de
1 changed files with 1 additions and 3 deletions
|
@ -1911,7 +1911,6 @@ int fix_attributes(char *path, u32 *total, u32 is_root, u32 check_first_run)
|
|||
FRESULT res;
|
||||
DIR dir;
|
||||
u32 dirLength = 0;
|
||||
u32 fileLength = 0;
|
||||
static FILINFO fno;
|
||||
|
||||
// Should we set the bit of the entry directory?
|
||||
|
@ -1954,8 +1953,7 @@ int fix_attributes(char *path, u32 *total, u32 is_root, u32 check_first_run)
|
|||
|
||||
// Set new directory or file.
|
||||
memcpy(&path[dirLength], "/", 1);
|
||||
fileLength = strlen(fno.fname);
|
||||
memcpy(&path[dirLength+1], fno.fname, fileLength + 1);
|
||||
memcpy(&path[dirLength+1], fno.fname, strlen(fno.fname) + 1);
|
||||
|
||||
// Check if archive bit is set.
|
||||
if (fno.fattrib & AM_ARC)
|
||||
|
|
Loading…
Add table
Reference in a new issue