Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
e87c84f5
Commit
e87c84f5
authored
Nov 28, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cabarc: Avoid some conversion to Unix codepage.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cadad89d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
13 deletions
+5
-13
cabarc.c
programs/cabarc/cabarc.c
+5
-13
No files found.
programs/cabarc/cabarc.c
View file @
e87c84f5
...
...
@@ -335,21 +335,19 @@ static INT_PTR CDECL list_notify( FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION pf
nameW
=
strdupAtoW
(
(
pfdin
->
attribs
&
_A_NAME_IS_UTF
)
?
CP_UTF8
:
CP_ACP
,
pfdin
->
psz1
);
if
(
match_files
(
nameW
))
{
char
*
nameU
=
strdupWtoA
(
CP_UNIXCP
,
nameW
);
if
(
opt_verbose
)
{
char
attrs
[]
=
"rxash"
;
WCHAR
attrs
[]
=
L
"rxash"
;
if
(
!
(
pfdin
->
attribs
&
_A_RDONLY
))
attrs
[
0
]
=
'-'
;
if
(
!
(
pfdin
->
attribs
&
_A_EXEC
))
attrs
[
1
]
=
'-'
;
if
(
!
(
pfdin
->
attribs
&
_A_ARCH
))
attrs
[
2
]
=
'-'
;
if
(
!
(
pfdin
->
attribs
&
_A_SYSTEM
))
attrs
[
3
]
=
'-'
;
if
(
!
(
pfdin
->
attribs
&
_A_HIDDEN
))
attrs
[
4
]
=
'-'
;
printf
(
" %s %9u %04u/%02u/%02u %02u:%02u:%02u "
,
attrs
,
pfdin
->
cb
,
wprintf
(
L
" %s %9u %04u/%02u/%02u %02u:%02u:%02u "
,
attrs
,
pfdin
->
cb
,
(
pfdin
->
date
>>
9
)
+
1980
,
(
pfdin
->
date
>>
5
)
&
0x0f
,
pfdin
->
date
&
0x1f
,
pfdin
->
time
>>
11
,
(
pfdin
->
time
>>
5
)
&
0x3f
,
(
pfdin
->
time
&
0x1f
)
*
2
);
}
printf
(
"%s
\n
"
,
nameU
);
cab_free
(
nameU
);
wprintf
(
L"%s
\n
"
,
nameW
);
}
cab_free
(
nameW
);
return
0
;
...
...
@@ -404,12 +402,7 @@ static INT_PTR CDECL extract_notify( FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION
if
(
match_files
(
file
))
{
if
(
opt_verbose
)
{
char
*
nameU
=
strdupWtoA
(
CP_UNIXCP
,
path
);
printf
(
"extracting %s
\n
"
,
nameU
);
cab_free
(
nameU
);
}
if
(
opt_verbose
)
wprintf
(
L"extracting %s
\n
"
,
path
);
create_directories
(
path
);
/* FIXME: check for existing file and overwrite mode */
ret
=
(
INT_PTR
)
CreateFileW
(
path
,
GENERIC_WRITE
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
...
...
@@ -628,8 +621,7 @@ int __cdecl wmain( int argc, WCHAR *argv[] )
else
if
(
!
wcscmp
(
argv
[
1
],
mszipW
))
opt_compression
=
tcompTYPE_MSZIP
;
else
{
char
*
arg
=
strdupWtoA
(
CP_ACP
,
argv
[
1
]
);
WINE_MESSAGE
(
"cabarc: Unknown compression type '%s'
\n
"
,
arg
);
WINE_MESSAGE
(
"cabarc: Unknown compression type %s
\n
"
,
debugstr_w
(
argv
[
1
]));
return
1
;
}
break
;
...
...
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