Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
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
Zsolt Vadász
wine
Commits
34ed04f1
Commit
34ed04f1
authored
21 years ago
by
Andreas Mohr
Committed by
Alexandre Julliard
21 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Don't include build number in GetVersion() for Win9x versions.
parent
2ea3dc43
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/kernel/version.c
+14
-2
14 additions, 2 deletions
dlls/kernel/version.c
with
14 additions
and
2 deletions
dlls/kernel/version.c
+
14
−
2
View file @
34ed04f1
...
...
@@ -196,16 +196,28 @@ DWORD WINAPI GetVersion16(void)
/***********************************************************************
* GetVersion (KERNEL32.@)
*
* Win31 0x80000a03
* Win95 0xc0000004
* Win98 0xc0000a04
* WinME 0xc0005a04
* NT351 0x04213303
* NT4 0x05650004
* Win2000 0x08930005
* WinXP 0x0a280105
*/
DWORD
WINAPI
GetVersion
(
void
)
{
RTL_OSVERSIONINFOEXW
info
;
DWORD
result
;
info
.
dwOSVersionInfoSize
=
sizeof
(
info
);
if
(
RtlGetVersion
(
&
info
)
!=
STATUS_SUCCESS
)
return
0
;
return
MAKELONG
(
MAKEWORD
(
info
.
dwMajorVersion
,
info
.
dwMinorVersion
),
LOWORD
(
info
.
dwBuildNumber
)
|
((
info
.
dwPlatformId
^
2
)
<<
14
)
);
result
=
MAKELONG
(
MAKEWORD
(
info
.
dwMajorVersion
,
info
.
dwMinorVersion
),
(
info
.
dwPlatformId
^
2
)
<<
14
);
if
(
info
.
dwPlatformId
==
VER_PLATFORM_WIN32_NT
)
result
|=
LOWORD
(
info
.
dwBuildNumber
)
<<
16
;
return
result
;
}
...
...
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