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
7ec4ba32
Commit
7ec4ba32
authored
Jul 01, 2009
by
Andrew Nguyen
Committed by
Alexandre Julliard
Jul 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reg: Support the /h flag as a synonymous help flag.
parent
070d9f91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
reg.c
programs/reg/reg.c
+9
-4
No files found.
programs/reg/reg.c
View file @
7ec4ba32
...
@@ -352,6 +352,7 @@ int wmain(int argc, WCHAR *argvW[])
...
@@ -352,6 +352,7 @@ int wmain(int argc, WCHAR *argvW[])
static
const
WCHAR
queryW
[]
=
{
'q'
,
'u'
,
'e'
,
'r'
,
'y'
,
0
};
static
const
WCHAR
queryW
[]
=
{
'q'
,
'u'
,
'e'
,
'r'
,
'y'
,
0
};
static
const
WCHAR
slashDW
[]
=
{
'/'
,
'd'
,
0
};
static
const
WCHAR
slashDW
[]
=
{
'/'
,
'd'
,
0
};
static
const
WCHAR
slashFW
[]
=
{
'/'
,
'f'
,
0
};
static
const
WCHAR
slashFW
[]
=
{
'/'
,
'f'
,
0
};
static
const
WCHAR
slashHW
[]
=
{
'/'
,
'h'
,
0
};
static
const
WCHAR
slashSW
[]
=
{
'/'
,
's'
,
0
};
static
const
WCHAR
slashSW
[]
=
{
'/'
,
's'
,
0
};
static
const
WCHAR
slashTW
[]
=
{
'/'
,
't'
,
0
};
static
const
WCHAR
slashTW
[]
=
{
'/'
,
't'
,
0
};
static
const
WCHAR
slashVW
[]
=
{
'/'
,
'v'
,
0
};
static
const
WCHAR
slashVW
[]
=
{
'/'
,
'v'
,
0
};
...
@@ -359,7 +360,8 @@ int wmain(int argc, WCHAR *argvW[])
...
@@ -359,7 +360,8 @@ int wmain(int argc, WCHAR *argvW[])
static
const
WCHAR
slashVEW
[]
=
{
'/'
,
'v'
,
'e'
,
0
};
static
const
WCHAR
slashVEW
[]
=
{
'/'
,
'v'
,
'e'
,
0
};
static
const
WCHAR
slashHelpW
[]
=
{
'/'
,
'?'
,
0
};
static
const
WCHAR
slashHelpW
[]
=
{
'/'
,
'?'
,
0
};
if
(
argc
<
2
||
!
lstrcmpW
(
argvW
[
1
],
slashHelpW
))
if
(
argc
<
2
||
!
lstrcmpW
(
argvW
[
1
],
slashHelpW
)
||
!
lstrcmpiW
(
argvW
[
1
],
slashHW
))
{
{
reg_message
(
STRING_USAGE
);
reg_message
(
STRING_USAGE
);
return
0
;
return
0
;
...
@@ -375,7 +377,8 @@ int wmain(int argc, WCHAR *argvW[])
...
@@ -375,7 +377,8 @@ int wmain(int argc, WCHAR *argvW[])
reg_message
(
STRING_INVALID_CMDLINE
);
reg_message
(
STRING_INVALID_CMDLINE
);
return
1
;
return
1
;
}
}
else
if
(
argc
==
3
&&
!
lstrcmpW
(
argvW
[
2
],
slashHelpW
))
else
if
(
argc
==
3
&&
(
!
lstrcmpW
(
argvW
[
2
],
slashHelpW
)
||
!
lstrcmpiW
(
argvW
[
2
],
slashHW
)))
{
{
reg_message
(
STRING_ADD_USAGE
);
reg_message
(
STRING_ADD_USAGE
);
return
0
;
return
0
;
...
@@ -410,7 +413,8 @@ int wmain(int argc, WCHAR *argvW[])
...
@@ -410,7 +413,8 @@ int wmain(int argc, WCHAR *argvW[])
reg_message
(
STRING_INVALID_CMDLINE
);
reg_message
(
STRING_INVALID_CMDLINE
);
return
1
;
return
1
;
}
}
else
if
(
argc
==
3
&&
!
lstrcmpW
(
argvW
[
2
],
slashHelpW
))
else
if
(
argc
==
3
&&
(
!
lstrcmpW
(
argvW
[
2
],
slashHelpW
)
||
!
lstrcmpiW
(
argvW
[
2
],
slashHW
)))
{
{
reg_message
(
STRING_DELETE_USAGE
);
reg_message
(
STRING_DELETE_USAGE
);
return
0
;
return
0
;
...
@@ -440,7 +444,8 @@ int wmain(int argc, WCHAR *argvW[])
...
@@ -440,7 +444,8 @@ int wmain(int argc, WCHAR *argvW[])
reg_message
(
STRING_INVALID_CMDLINE
);
reg_message
(
STRING_INVALID_CMDLINE
);
return
1
;
return
1
;
}
}
else
if
(
argc
==
3
&&
!
lstrcmpW
(
argvW
[
2
],
slashHelpW
))
else
if
(
argc
==
3
&&
(
!
lstrcmpW
(
argvW
[
2
],
slashHelpW
)
||
!
lstrcmpiW
(
argvW
[
2
],
slashHW
)))
{
{
reg_message
(
STRING_QUERY_USAGE
);
reg_message
(
STRING_QUERY_USAGE
);
return
0
;
return
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