Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
1ed66392
Commit
1ed66392
authored
Mar 26, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Mar 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attrib: Display filenames with absolute path as in native.
parent
a575c6d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
attrib.c
programs/attrib/attrib.c
+11
-5
No files found.
programs/attrib/attrib.c
View file @
1ed66392
...
...
@@ -128,11 +128,13 @@ int wmain(int argc, WCHAR *argv[])
HANDLE
hff
;
WIN32_FIND_DATAW
fd
;
WCHAR
flags
[]
=
{
' '
,
' '
,
' '
,
' '
,
' '
,
' '
,
' '
,
' '
,
'\0'
};
WCHAR
name
[
128
];
WCHAR
name
[
MAX_PATH
];
WCHAR
curdir
[
MAX_PATH
];
DWORD
attrib_set
=
0
;
DWORD
attrib_clear
=
0
;
const
WCHAR
help_option
[]
=
{
'/'
,
'?'
,
'\0'
};
const
WCHAR
slashStarW
[]
=
{
'\\'
,
'*'
,
'\0'
};
const
WCHAR
slash
[]
=
{
'\\'
,
'\0'
};
const
WCHAR
start
[]
=
{
'*'
,
'\0'
};
int
i
=
1
;
if
((
argc
>=
2
)
&&
!
strcmpW
(
argv
[
1
],
help_option
))
{
...
...
@@ -141,8 +143,10 @@ int wmain(int argc, WCHAR *argv[])
}
/* By default all files from current directory are taken into account */
GetCurrentDirectoryW
(
sizeof
(
name
)
/
sizeof
(
WCHAR
),
name
);
strcatW
(
name
,
slashStarW
);
GetCurrentDirectoryW
(
sizeof
(
curdir
)
/
sizeof
(
WCHAR
),
curdir
);
strcatW
(
curdir
,
slash
);
strcpyW
(
name
,
curdir
);
strcatW
(
name
,
start
);
while
(
i
<
argc
)
{
WCHAR
*
param
=
argv
[
i
++
];
...
...
@@ -212,7 +216,9 @@ int wmain(int argc, WCHAR *argv[])
if
(
fd
.
dwFileAttributes
&
FILE_ATTRIBUTE_COMPRESSED
)
{
flags
[
5
]
=
'C'
;
}
ATTRIB_wprintf
(
fmt
,
flags
,
fd
.
cFileName
);
strcpyW
(
name
,
curdir
);
strcatW
(
name
,
fd
.
cFileName
);
ATTRIB_wprintf
(
fmt
,
flags
,
name
);
for
(
count
=
0
;
count
<
8
;
count
++
)
flags
[
count
]
=
' '
;
}
}
while
(
FindNextFileW
(
hff
,
&
fd
)
!=
0
);
...
...
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