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
5fd548fc
Commit
5fd548fc
authored
Mar 24, 2020
by
Gijs Vermeulen
Committed by
Alexandre Julliard
Mar 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Use wide character string literals in batch.c.
Signed-off-by:
Gijs Vermeulen
<
gijsvrm@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a96393fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
batch.c
programs/cmd/batch.c
+3
-6
No files found.
programs/cmd/batch.c
View file @
5fd548fc
...
...
@@ -224,8 +224,7 @@ WCHAR *WCMD_parameter_with_delims (WCHAR *s, int n, WCHAR **start,
WCHAR
*
WCMD_parameter
(
WCHAR
*
s
,
int
n
,
WCHAR
**
start
,
BOOL
raw
,
BOOL
wholecmdline
)
{
static
const
WCHAR
defaultDelims
[]
=
{
' '
,
'\t'
,
','
,
'='
,
';'
,
'\0'
};
return
WCMD_parameter_with_delims
(
s
,
n
,
start
,
raw
,
wholecmdline
,
defaultDelims
);
return
WCMD_parameter_with_delims
(
s
,
n
,
start
,
raw
,
wholecmdline
,
L"
\t
,=;"
);
}
/****************************************************************************
...
...
@@ -537,11 +536,10 @@ void WCMD_HandleTildaModifiers(WCHAR **start, BOOL atExecute)
/* 2. Handle 'a' : Output attributes (File doesn't have to exist) */
if
(
wmemchr
(
firstModifier
,
'a'
,
modifierLen
)
!=
NULL
)
{
WCHAR
defaults
[]
=
{
'-'
,
'-'
,
'-'
,
'-'
,
'-'
,
'-'
,
'-'
,
'-'
,
'-'
,
'\0'
};
doneModifier
=
TRUE
;
if
(
exists
)
{
lstrcpyW
(
thisoutput
,
defaults
);
lstrcpyW
(
thisoutput
,
L"---------"
);
if
(
fileInfo
.
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
)
thisoutput
[
0
]
=
'd'
;
if
(
fileInfo
.
dwFileAttributes
&
FILE_ATTRIBUTE_READONLY
)
...
...
@@ -589,12 +587,11 @@ void WCMD_HandleTildaModifiers(WCHAR **start, BOOL atExecute)
/* FIXME: Output full 64 bit size (sprintf does not support I64 here) */
ULONG
/*64*/
fullsize
=
/*(fileInfo.nFileSizeHigh << 32) +*/
fileInfo
.
nFileSizeLow
;
static
const
WCHAR
fmt
[]
=
{
'%'
,
'u'
,
'\0'
};
doneModifier
=
TRUE
;
if
(
exists
)
{
if
(
finaloutput
[
0
]
!=
0x00
)
lstrcatW
(
finaloutput
,
spaceW
);
wsprintfW
(
thisoutput
,
fmt
,
fullsize
);
wsprintfW
(
thisoutput
,
L"%u"
,
fullsize
);
lstrcatW
(
finaloutput
,
thisoutput
);
}
}
...
...
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