Commit 44274d17 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

ntdll: Fix SystemRecommendedSharedDataAlignment on ARM.

parent 0fd3f026
......@@ -3034,7 +3034,14 @@ NTSTATUS WINAPI NtQuerySystemInformation(
if (Length >= len)
{
if (!SystemInformation) ret = STATUS_ACCESS_VIOLATION;
else *((DWORD *)SystemInformation) = 64;
else
{
#ifdef __arm__
*((DWORD *)SystemInformation) = 32;
#else
*((DWORD *)SystemInformation) = 64;
#endif
}
}
else ret = STATUS_INFO_LENGTH_MISMATCH;
}
......
......@@ -2518,7 +2518,11 @@ static void test_query_data_alignment(void)
status = pNtQuerySystemInformation(SystemRecommendedSharedDataAlignment, &value, sizeof(value), &ReturnLength);
ok(status == STATUS_SUCCESS, "Expected STATUS_SUCCESS, got %08x\n", status);
ok(sizeof(value) == ReturnLength, "Inconsistent length %u\n", ReturnLength);
#ifdef __arm__
ok(value == 32, "Expected 32, got %u\n", value);
#else
ok(value == 64, "Expected 64, got %u\n", value);
#endif
}
static void test_thread_lookup(void)
......
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