https://bugs.winehq.org/show_bug.cgi?id=44305
Bug ID: 44305 Summary: GetSystemFirmwareTable() API returns empty SMBIOS records on Ubuntu 16.04 x86_64 Product: Wine Version: 2.0.4 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: gaurav.pruthi88@gmail.com Distribution: ---
We are using GetSystemFirmwareTable() API to retrieve SMBIOS data. After invocation, function returns empty SMBIOSTableData[], a member of struct RawSMBIOSData. Also, 'Length' field of the aforementioned struct returns a negative value in wine 2.0.3
More info regarding this API can be found at: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724379(v=vs.85).a...
Do respond if more info is required.
https://bugs.winehq.org/show_bug.cgi?id=44305
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- It does not return empty data or negative length, it doesn't touch your input buffer at all.
https://bugs.winehq.org/show_bug.cgi?id=44305
Gaurav Pruthi gaurav.pruthi88@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|2.0.4 |2.0.3
https://bugs.winehq.org/show_bug.cgi?id=44305
--- Comment #2 from Gaurav Pruthi gaurav.pruthi88@gmail.com --- Its 3rd argument is populated after the call.
A reference from MSDN website: pFirmwareTableBuffer [out] A pointer to a buffer that receives the requested firmware table. If this parameter is NULL, the return value is the required buffer size. For more information on the contents of this buffer, see the Remarks section.
https://bugs.winehq.org/show_bug.cgi?id=44305
--- Comment #3 from Nikolay Sivov bunglehead@gmail.com --- Well yes, but this function is not implemented at all, so don't expect any output from it, that's what I'm saying.
https://bugs.winehq.org/show_bug.cgi?id=44305
--- Comment #4 from Gaurav Pruthi gaurav.pruthi88@gmail.com --- I get NULL when I query about this API in wine1.6 but case is different in wine 2.0.3. Also, there were some changes made in API in wine 1.7. Please check https://bugs.winehq.org/show_bug.cgi?id=37951 for more info.
https://bugs.winehq.org/show_bug.cgi?id=44305
--- Comment #5 from Gaurav Pruthi gaurav.pruthi88@gmail.com --- Is there any plan to implement this function in any upcoming release?
https://bugs.winehq.org/show_bug.cgi?id=44305
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexhenrie24@gmail.com Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |93711aee1fdfdce79b82907b918 | |7e95630ed3055
--- Comment #6 from Alex Henrie alexhenrie24@gmail.com --- Fixed by https://source.winehq.org/git/wine.git/commitdiff/93711aee1fdfdce79b82907b91...
https://bugs.winehq.org/show_bug.cgi?id=44305
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.13.