From: Austin English Subject: kernel32: add GetSystemFirmwareTable stub Message-Id: Date: Thu, 22 Jan 2015 22:51:21 -0600 Fixes https://bugs.winehq.org/show_bug.cgi?id=37951 -- -Austin
Fixes https://bugs.winehq.org/show_bug.cgi?id=37951

--
-Austin
From 5807471a51a057b02b2793750779624788ba7520 Mon Sep 17 00:00:00 2001 From: Austin English Date: Thu, 22 Jan 2015 22:49:59 -0600 Subject: [PATCH] kernel32: add GetSystemFirmwareTable stub --- dlls/kernel32/kernel32.spec | 1 + dlls/kernel32/process.c | 10 ++++++++++ include/winbase.h | 1 + 3 files changed, 12 insertions(+) diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec index bd6d644..71478dc 100644 --- a/dlls/kernel32/kernel32.spec +++ b/dlls/kernel32/kernel32.spec @@ -650,6 +650,7 @@ @ stdcall GetSystemDEPPolicy() @ stdcall GetSystemDirectoryA(ptr long) @ stdcall GetSystemDirectoryW(ptr long) +@ stdcall GetSystemFirmwareTable(long long ptr long) @ stdcall GetSystemInfo(ptr) @ stdcall GetSystemPowerStatus(ptr) @ stdcall GetSystemRegistryQuota(ptr ptr) diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c index 8204dd9..b371e73 100644 --- a/dlls/kernel32/process.c +++ b/dlls/kernel32/process.c @@ -4004,3 +4004,13 @@ HRESULT WINAPI UnregisterApplicationRestart(void) SetLastError(ERROR_CALL_NOT_IMPLEMENTED); return S_OK; } + +/*********************************************************************** + * GetSystemFirmwareTable (KERNEL32.@) + */ +UINT WINAPI GetSystemFirmwareTable(DWORD provider, DWORD id, PVOID buffer, DWORD size) +{ + FIXME("(%d %d %p %d):stub\n", provider, id, buffer, size); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return 0; +} diff --git a/include/winbase.h b/include/winbase.h index 5ac55b7..e503ba7 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -2008,6 +2008,7 @@ WINBASEAPI HANDLE WINAPI GetStdHandle(DWORD); WINBASEAPI UINT WINAPI GetSystemDirectoryA(LPSTR,UINT); WINBASEAPI UINT WINAPI GetSystemDirectoryW(LPWSTR,UINT); #define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory) +WINBASEAPI UINT WINAPI GetSystemFirmwareTable(DWORD,DWORD,PVOID,DWORD); WINBASEAPI VOID WINAPI GetSystemInfo(LPSYSTEM_INFO); WINBASEAPI BOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS); WINBASEAPI BOOL WINAPI GetSystemRegistryQuota(PDWORD,PDWORD); -- 2.1.0