Commit 658183a8 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

msi: Report the real NT version number up to 6.3.

MSI always reports 6.3 even without a manifest, but does not report anything higher. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48959Signed-off-by: 's avatarZebediah Figura <z.figura12@gmail.com> Signed-off-by: 's avatarHans Leidekker <hans@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 17d0da9f
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include "winbase.h" #include "winbase.h"
#include "winreg.h" #include "winreg.h"
#include "winnls.h" #include "winnls.h"
#include "winternl.h"
#include "shlwapi.h" #include "shlwapi.h"
#include "wingdi.h" #include "wingdi.h"
#include "msi.h" #include "msi.h"
...@@ -668,7 +669,7 @@ done: ...@@ -668,7 +669,7 @@ done:
static VOID set_installer_properties(MSIPACKAGE *package) static VOID set_installer_properties(MSIPACKAGE *package)
{ {
WCHAR *ptr; WCHAR *ptr;
OSVERSIONINFOEXW OSVersion; RTL_OSVERSIONINFOEXW OSVersion;
MEMORYSTATUSEX msex; MEMORYSTATUSEX msex;
DWORD verval, len, type; DWORD verval, len, type;
WCHAR pth[MAX_PATH], verstr[11], bufstr[22]; WCHAR pth[MAX_PATH], verstr[11], bufstr[22];
...@@ -860,9 +861,14 @@ static VOID set_installer_properties(MSIPACKAGE *package) ...@@ -860,9 +861,14 @@ static VOID set_installer_properties(MSIPACKAGE *package)
msi_set_property( package->db, szPrivileged, szOne, -1 ); msi_set_property( package->db, szPrivileged, szOne, -1 );
/* set the os things */ /* set the os things */
OSVersion.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEXW); OSVersion.dwOSVersionInfoSize = sizeof(OSVersion);
GetVersionExW((OSVERSIONINFOW *)&OSVersion); RtlGetVersion(&OSVersion);
verval = OSVersion.dwMinorVersion + OSVersion.dwMajorVersion * 100; verval = OSVersion.dwMinorVersion + OSVersion.dwMajorVersion * 100;
if (verval > 603)
{
verval = 603;
OSVersion.dwBuildNumber = 9600;
}
len = swprintf( verstr, ARRAY_SIZE(verstr), szFormat, verval ); len = swprintf( verstr, ARRAY_SIZE(verstr), szFormat, verval );
switch (OSVersion.dwPlatformId) switch (OSVersion.dwPlatformId)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment