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
a536004f
Commit
a536004f
authored
Sep 21, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Sep 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Improve WCMD_volume documentation.
parent
e9a8b751
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
builtins.c
programs/cmd/builtins.c
+6
-4
wcmd.h
programs/cmd/wcmd.h
+1
-1
wcmdmain.c
programs/cmd/wcmdmain.c
+2
-2
No files found.
programs/cmd/builtins.c
View file @
a536004f
...
...
@@ -2644,11 +2644,13 @@ void WCMD_version (void) {
/****************************************************************************
* WCMD_volume
*
* Display volume info and/or set volume label. Returns 0 if error.
* Display volume information (set_label = FALSE)
* Additionally set volume label (set_label = TRUE)
* Returns 1 on success, 0 otherwise
*/
int
WCMD_volume
(
int
mode
,
const
WCHAR
*
path
)
{
int
WCMD_volume
(
BOOL
set_label
,
const
WCHAR
*
path
)
{
DWORD
count
,
serial
;
WCHAR
string
[
MAX_PATH
],
label
[
MAX_PATH
],
curdir
[
MAX_PATH
];
BOOL
status
;
...
...
@@ -2679,7 +2681,7 @@ int WCMD_volume (int mode, const WCHAR *path) {
}
WCMD_output
(
WCMD_LoadMessage
(
WCMD_VOLUMEDETAIL
),
curdir
[
0
],
label
,
HIWORD
(
serial
),
LOWORD
(
serial
));
if
(
mode
)
{
if
(
set_label
)
{
WCMD_output
(
WCMD_LoadMessage
(
WCMD_VOLUMEPROMPT
));
WCMD_ReadFile
(
GetStdHandle
(
STD_INPUT_HANDLE
),
string
,
sizeof
(
string
)
/
sizeof
(
WCHAR
),
&
count
,
NULL
);
...
...
programs/cmd/wcmd.h
View file @
a536004f
...
...
@@ -94,7 +94,7 @@ void WCMD_title (const WCHAR *);
void
WCMD_type
(
WCHAR
*
);
void
WCMD_verify
(
const
WCHAR
*
command
);
void
WCMD_version
(
void
);
int
WCMD_volume
(
int
mode
,
const
WCHAR
*
command
);
int
WCMD_volume
(
BOOL
set_label
,
const
WCHAR
*
command
);
WCHAR
*
WCMD_fgets
(
WCHAR
*
s
,
int
n
,
HANDLE
stream
);
WCHAR
*
WCMD_parameter
(
WCHAR
*
s
,
int
n
,
WCHAR
**
where
,
WCHAR
**
end
);
...
...
programs/cmd/wcmdmain.c
View file @
a536004f
...
...
@@ -1502,7 +1502,7 @@ void WCMD_execute (const WCHAR *command, const WCHAR *redirects,
WCMD_if
(
p
,
cmdList
);
break
;
case
WCMD_LABEL
:
WCMD_volume
(
1
,
p
);
WCMD_volume
(
TRUE
,
p
);
break
;
case
WCMD_MD
:
case
WCMD_MKDIR
:
...
...
@@ -1560,7 +1560,7 @@ void WCMD_execute (const WCHAR *command, const WCHAR *redirects,
WCMD_verify
(
p
);
break
;
case
WCMD_VOL
:
WCMD_volume
(
0
,
p
);
WCMD_volume
(
FALSE
,
p
);
break
;
case
WCMD_PUSHD
:
WCMD_pushd
(
p
);
...
...
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