* ntdll.h (RtlGetVersion): Declare.
* wincap.cc (wincapc::init): Rather than GetVersionEx, call RtlGetVersion which is not crippled by missing Windows 8.1 manifest. * wincap.h (wincapc): Change type of version to RTL_OSVERSIONINFOEXW. Align formatting of all class members.
This commit is contained in:
parent
f8863cbe54
commit
c9f36df332
@ -1,3 +1,11 @@
|
|||||||
|
2013-11-19 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* ntdll.h (RtlGetVersion): Declare.
|
||||||
|
* wincap.cc (wincapc::init): Rather than GetVersionEx, call
|
||||||
|
RtlGetVersion which is not crippled by missing Windows 8.1 manifest.
|
||||||
|
* wincap.h (wincapc): Change type of version to RTL_OSVERSIONINFOEXW.
|
||||||
|
Align formatting of all class members.
|
||||||
|
|
||||||
2013-11-19 Corinna Vinschen <corinna@vinschen.de>
|
2013-11-19 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* wincap.cc (wincapc::init): Revert previous change. It's not working.
|
* wincap.cc (wincapc::init): Revert previous change. It's not working.
|
||||||
|
@ -1390,6 +1390,7 @@ extern "C"
|
|||||||
PBOOLEAN);
|
PBOOLEAN);
|
||||||
NTSTATUS NTAPI RtlGetOwnerSecurityDescriptor (PSECURITY_DESCRIPTOR, PSID *,
|
NTSTATUS NTAPI RtlGetOwnerSecurityDescriptor (PSECURITY_DESCRIPTOR, PSID *,
|
||||||
PBOOLEAN);
|
PBOOLEAN);
|
||||||
|
NTSTATUS NTAPI RtlGetVersion (PRTL_OSVERSIONINFOEXW);
|
||||||
PSID_IDENTIFIER_AUTHORITY NTAPI RtlIdentifierAuthoritySid (PSID);
|
PSID_IDENTIFIER_AUTHORITY NTAPI RtlIdentifierAuthoritySid (PSID);
|
||||||
VOID NTAPI RtlInitEmptyUnicodeString (PUNICODE_STRING, PCWSTR, USHORT);
|
VOID NTAPI RtlInitEmptyUnicodeString (PUNICODE_STRING, PCWSTR, USHORT);
|
||||||
VOID NTAPI RtlInitAnsiString (PANSI_STRING, PCSTR);
|
VOID NTAPI RtlInitAnsiString (PANSI_STRING, PCSTR);
|
||||||
|
@ -56,3 +56,7 @@ Bug fixes:
|
|||||||
|
|
||||||
- Fix typos in cygcheck which could crash Windows 8 and 8.1 machines.
|
- Fix typos in cygcheck which could crash Windows 8 and 8.1 machines.
|
||||||
Fixes: http://cygwin.com/ml/cygwin/2013-11/msg00334.html
|
Fixes: http://cygwin.com/ml/cygwin/2013-11/msg00334.html
|
||||||
|
|
||||||
|
- Show OS version correctly even on Windows 8.1 and Server 2012 R2.
|
||||||
|
Fixes: http://cygwin.com/ml/cygwin/2013-11/msg00343.html
|
||||||
|
|
||||||
|
@ -172,8 +172,8 @@ wincapc::init ()
|
|||||||
return; // already initialized
|
return; // already initialized
|
||||||
|
|
||||||
GetSystemInfo (&system_info);
|
GetSystemInfo (&system_info);
|
||||||
version.dwOSVersionInfoSize = sizeof (OSVERSIONINFOEX);
|
version.dwOSVersionInfoSize = sizeof (RTL_OSVERSIONINFOEXW);
|
||||||
GetVersionEx (reinterpret_cast<LPOSVERSIONINFO>(&version));
|
RtlGetVersion (&version);
|
||||||
|
|
||||||
switch (version.dwMajorVersion)
|
switch (version.dwMajorVersion)
|
||||||
{
|
{
|
||||||
|
@ -43,11 +43,11 @@ struct wincaps
|
|||||||
|
|
||||||
class wincapc
|
class wincapc
|
||||||
{
|
{
|
||||||
SYSTEM_INFO system_info;
|
SYSTEM_INFO system_info;
|
||||||
OSVERSIONINFOEX version;
|
RTL_OSVERSIONINFOEXW version;
|
||||||
char osnam[40];
|
char osnam[40];
|
||||||
ULONG_PTR wow64;
|
ULONG_PTR wow64;
|
||||||
void *caps;
|
void *caps;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void init ();
|
void init ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user