Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
go back to RtlGetVersion with no W suffix
I'm seeing linker errors in some downstream code, so the suffix-less
version appears more portable.
  • Loading branch information
wez committed Sep 15, 2019
1 parent 2e506b0 commit 76ac87e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wincng.c
Expand Up @@ -2140,7 +2140,7 @@ static int is_windows_10_or_later(void)
{
OSVERSIONINFOW vers;
vers.dwOSVersionInfoSize = sizeof(vers);
if(RtlGetVersionW(&vers) != 0) {
if(RtlGetVersion(&vers) != 0) {
return 0;
}
return vers.dwMajorVersion >= 10;
Expand Down

0 comments on commit 76ac87e

Please sign in to comment.