Skip to content
Permalink
Browse files

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 76ac87ef23af27ab3ab532a3723c9a233f833b42
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/wincng.c
@@ -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;

0 comments on commit 76ac87e

Please sign in to comment.
You can’t perform that action at this time.