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: John Chadwick <john@jchw.io> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e3057aea62
commit
2acbe4f096
|
@ -737,6 +737,10 @@ static void test_GetSystemFirmwareTable(void)
|
|||
pNtQuerySystemInformation(SystemFirmwareTableInformation, sfti, expected_len, &expected_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);
|
||||
len = pGetSystemFirmwareTable(RSMB, 0, smbios_table, expected_len);
|
||||
ok(len == expected_len, "Expected length %u, got %u\n", expected_len, len);
|
||||
|
|
Loading…
Reference in New Issue