Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
34ed04f1
Commit
34ed04f1
authored
Nov 11, 2003
by
Andreas Mohr
Committed by
Alexandre Julliard
Nov 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't include build number in GetVersion() for Win9x versions.
parent
2ea3dc43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
version.c
dlls/kernel/version.c
+14
-2
No files found.
dlls/kernel/version.c
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
;
}
...
...
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