Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin J. Thompson
Tor
Commits
105d7821
Commit
105d7821
authored
17 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
r12546@catbus: nickm | 2007-04-29 21:27:43 -0400
Correctly report win98se and win95osr2 versions. svn:r10047
parent
e0b0c2a4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+1
-0
1 addition, 0 deletions
ChangeLog
src/common/compat.c
+14
-1
14 additions, 1 deletion
src/common/compat.c
with
15 additions
and
1 deletion
ChangeLog
+
1
−
0
View file @
105d7821
...
...
@@ -61,6 +61,7 @@ Changes in version 0.2.0.1-alpha - 2007-??-??
proposal 104.]
o Minor features (other):
- Correctly report Windows 95 OSR2 and Windows 98 SE.
- More unit tests.
o Removed features:
...
...
This diff is collapsed.
Click to expand it.
src/common/compat.c
+
14
−
1
View file @
105d7821
...
...
@@ -922,6 +922,7 @@ get_uname(void)
int
i
;
unsigned
int
leftover_mask
;
const
char
*
plat
=
NULL
;
const
char
*
extra
=
NULL
;
static
struct
{
unsigned
major
;
unsigned
minor
;
const
char
*
version
;
}
win_version_table
[]
=
{
...
...
@@ -968,6 +969,10 @@ get_uname(void)
plat
=
"Windows NT 4.0"
;
else
plat
=
"Windows 95"
;
if
(
info
.
szCSDVersion
[
1
]
==
'B'
)
extra
=
"OSR2 (B)"
;
else
if
(
info
.
szCSDVersion
[
1
]
==
'C'
)
extra
=
"OSR2 (C)"
;
}
else
{
for
(
i
=
0
;
win_version_table
[
i
].
major
>
0
;
++
i
)
{
if
(
win_version_table
[
i
].
major
==
info
.
dwMajorVersion
&&
...
...
@@ -977,9 +982,17 @@ get_uname(void)
}
}
}
if
(
plat
&&
!
strcmp
(
plat
,
"Windows 98"
))
{
if
(
info
.
szCSDVersion
[
1
]
==
'A'
)
extra
=
"SE (A)"
;
else
if
(
info
.
szCSDVersion
[
1
]
==
'B'
)
extra
=
"SE (B)"
;
}
if
(
plat
)
{
if
(
!
extra
)
extra
=
info
.
szCSDVersion
;
tor_snprintf
(
uname_result
,
sizeof
(
uname_result
),
"%s %s"
,
plat
,
info
.
szCSDVersion
);
plat
,
extra
);
}
else
{
if
(
info
.
dwMajorVersion
>
6
||
(
info
.
dwMajorVersion
==
6
&&
info
.
dwMinorVersion
>
0
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment