Commit 2acbe4f0 authored by John Chadwick's avatar John Chadwick Committed by Alexandre Julliard

kernel32/tests: Add test for GetSystemFirmwareTable.

This adds a test to ensure that a typical usage of GetSystemFirmwareTable with a preflight call works correctly. Signed-off-by: 's avatarJohn Chadwick <john@jchw.io> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent e3057aea
...@@ -737,6 +737,10 @@ static void test_GetSystemFirmwareTable(void) ...@@ -737,6 +737,10 @@ static void test_GetSystemFirmwareTable(void)
pNtQuerySystemInformation(SystemFirmwareTableInformation, sfti, expected_len, &expected_len); pNtQuerySystemInformation(SystemFirmwareTableInformation, sfti, expected_len, &expected_len);
expected_len -= min_sfti_len; expected_len -= min_sfti_len;
len = pGetSystemFirmwareTable(RSMB, 0, NULL, 0);
todo_wine
ok(len == expected_len, "Expected length %u, got %u\n", expected_len, len);
smbios_table = HeapAlloc(GetProcessHeap(), 0, expected_len); smbios_table = HeapAlloc(GetProcessHeap(), 0, expected_len);
len = pGetSystemFirmwareTable(RSMB, 0, smbios_table, expected_len); len = pGetSystemFirmwareTable(RSMB, 0, smbios_table, expected_len);
ok(len == expected_len, "Expected length %u, got %u\n", expected_len, len); ok(len == expected_len, "Expected length %u, got %u\n", expected_len, len);
......
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