Skip to content

Commit 87b8c1e

Browse files
committed
[NTDLL_APITEST] Fix build
1 parent 51495b1 commit 87b8c1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/rostests/apitests/crt/setjmp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <pseh/pseh2.h>
1212
#include <setjmp.h>
1313
#include <assert.h>
14+
#include <rtlfuncs.h>
1415

1516
static jmp_buf g_jmp_buf;
1617

@@ -58,7 +59,7 @@ static void TEST_setjmp_normal(void)
5859
case 3:
5960
ok_int(value, 333);
6061
#ifdef _M_AMD64 // This is broken on Windows 2003 x64
61-
if (_winver >= _WIN32_WINNT_VISTA)
62+
if (NtCurrentPeb()->OSMajorVersion >= 6)
6263
#endif
6364
{
6465
ok_int(finally_called, TRUE);

0 commit comments

Comments
 (0)