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
563a8c0f
Commit
563a8c0f
authored
Mar 18, 2020
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Mar 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Implement compatibility mode for GetVersion.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6719bf2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
version.c
dlls/kernelbase/version.c
+11
-5
No files found.
dlls/kernelbase/version.c
View file @
563a8c0f
...
...
@@ -1420,11 +1420,17 @@ BOOL WINAPI DECLSPEC_HOTPATCH GetProductInfo( DWORD os_major, DWORD os_minor,
*/
DWORD
WINAPI
GetVersion
(
void
)
{
DWORD
result
=
MAKELONG
(
MAKEWORD
(
NtCurrentTeb
()
->
Peb
->
OSMajorVersion
,
NtCurrentTeb
()
->
Peb
->
OSMinorVersion
),
(
NtCurrentTeb
()
->
Peb
->
OSPlatformId
^
2
)
<<
14
);
if
(
NtCurrentTeb
()
->
Peb
->
OSPlatformId
==
VER_PLATFORM_WIN32_NT
)
result
|=
LOWORD
(
NtCurrentTeb
()
->
Peb
->
OSBuildNumber
)
<<
16
;
OSVERSIONINFOEXW
info
;
DWORD
result
;
info
.
dwOSVersionInfoSize
=
sizeof
(
info
);
if
(
!
GetVersionExW
(
(
OSVERSIONINFOW
*
)
&
info
))
return
0
;
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