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
c3350c53
Commit
c3350c53
authored
Nov 30, 2000
by
Andreas Mohr
Committed by
Alexandre Julliard
Nov 30, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added alias capability to --winver.
win2000 is the official value.
parent
71d68bba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
12 deletions
+28
-12
wine.man.in
documentation/wine.man.in
+2
-1
version.c
misc/version.c
+26
-11
No files found.
documentation/wine.man.in
View file @
c3350c53
...
@@ -249,7 +249,8 @@ Turn on synchronous display mode. Useful for debugging X11 graphics problems.
...
@@ -249,7 +249,8 @@ Turn on synchronous display mode. Useful for debugging X11 graphics problems.
Specify which Windows version
Specify which Windows version
.B wine
.B wine
should imitate.
should imitate.
Possible arguments are: win95, nt40, win31, nt2k, win98, nt351, win30 and win20.
Possible arguments are: win95, nt40, win31, win2000, win98, nt351, win30
and win20.
.PD 1
.PD 1
.SH PROGRAM/ARGUMENTS
.SH PROGRAM/ARGUMENTS
The program name may be specified in DOS format (
The program name may be specified in DOS format (
...
...
misc/version.c
View file @
c3350c53
...
@@ -122,7 +122,7 @@ static VERSION_DATA VersionData[NB_WINDOWS_VERSIONS] =
...
@@ -122,7 +122,7 @@ static VERSION_DATA VersionData[NB_WINDOWS_VERSIONS] =
};
};
static
const
char
*
WinVersionNames
[
NB_WINDOWS_VERSIONS
]
=
static
const
char
*
WinVersionNames
[
NB_WINDOWS_VERSIONS
]
=
{
{
/* no spaces in here ! */
"win20"
,
"win20"
,
"win30"
,
"win30"
,
"win31"
,
"win31"
,
...
@@ -130,7 +130,7 @@ static const char *WinVersionNames[NB_WINDOWS_VERSIONS] =
...
@@ -130,7 +130,7 @@ static const char *WinVersionNames[NB_WINDOWS_VERSIONS] =
"win98"
,
"win98"
,
"nt351"
,
"nt351"
,
"nt40"
,
"nt40"
,
"
nt2k
"
"
win2000,win2k,nt2k,nt2000
"
};
};
/* if one of the following dlls is importing ntdll the windows
/* if one of the following dlls is importing ntdll the windows
...
@@ -154,21 +154,36 @@ static WINDOWS_VERSION defaultWinVersion = WIN31;
...
@@ -154,21 +154,36 @@ static WINDOWS_VERSION defaultWinVersion = WIN31;
*/
*/
void
VERSION_ParseWinVersion
(
const
char
*
arg
)
void
VERSION_ParseWinVersion
(
const
char
*
arg
)
{
{
int
i
;
int
i
,
len
;
const
char
*
pCurr
,
*
p
;
for
(
i
=
0
;
i
<
NB_WINDOWS_VERSIONS
;
i
++
)
for
(
i
=
0
;
i
<
NB_WINDOWS_VERSIONS
;
i
++
)
{
{
if
(
!
strcmp
(
WinVersionNames
[
i
],
arg
))
pCurr
=
WinVersionNames
[
i
];
{
/* iterate through all winver aliases separated by comma */
defaultWinVersion
=
(
WINDOWS_VERSION
)
i
;
do
{
versionForced
=
TRUE
;
p
=
strchr
(
pCurr
,
','
);
return
;
len
=
p
?
(
int
)
p
-
(
int
)
pCurr
:
strlen
(
pCurr
);
}
if
(
(
!
strncmp
(
pCurr
,
arg
,
len
))
&&
(
arg
[
len
]
==
'\0'
)
)
{
defaultWinVersion
=
(
WINDOWS_VERSION
)
i
;
versionForced
=
TRUE
;
return
;
}
pCurr
=
p
+
1
;
}
while
(
p
);
}
}
MESSAGE
(
"Invalid winver value '%s' specified.
\n
"
,
arg
);
MESSAGE
(
"Invalid winver value '%s' specified.
\n
"
,
arg
);
MESSAGE
(
"Valid versions are:"
);
MESSAGE
(
"Valid versions are:"
);
for
(
i
=
0
;
i
<
NB_WINDOWS_VERSIONS
;
i
++
)
for
(
i
=
0
;
i
<
NB_WINDOWS_VERSIONS
;
i
++
)
MESSAGE
(
" '%s'%c"
,
WinVersionNames
[
i
],
{
(
i
==
NB_WINDOWS_VERSIONS
-
1
)
?
'\n'
:
','
);
/* only list the first, "official" alias in case of aliases */
pCurr
=
WinVersionNames
[
i
];
p
=
strchr
(
pCurr
,
','
);
len
=
(
p
)
?
(
int
)
p
-
(
int
)
pCurr
:
strlen
(
pCurr
);
MESSAGE
(
" '%.*s'%c"
,
len
,
pCurr
,
(
i
==
NB_WINDOWS_VERSIONS
-
1
)
?
'\n'
:
','
);
}
ExitProcess
(
1
);
ExitProcess
(
1
);
}
}
...
...
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