Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d58a24d9
Commit
d58a24d9
authored
Nov 28, 2022
by
Mohamad Al-Jaf
Committed by
Alexandre Julliard
Jan 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.system.profile.systemmanufacturers/tests: Add…
windows.system.profile.systemmanufacturers/tests: Add ISmbiosInformationStatics_get_SerialNumber tests.
parent
34ff248b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
smbios.c
...windows.system.profile.systemmanufacturers/tests/smbios.c
+15
-1
No files found.
dlls/windows.system.profile.systemmanufacturers/tests/smbios.c
View file @
d58a24d9
...
...
@@ -47,8 +47,10 @@ static void test_Smbios_Statics(void)
static
const
WCHAR
*
smbios_statics_name
=
L"Windows.System.Profile.SystemManufacturers.SmbiosInformation"
;
ISmbiosInformationStatics
*
smbios_statics
;
IActivationFactory
*
factory
;
HSTRING
str
;
HSTRING
str
,
serial
;
const
WCHAR
*
buf
;
HRESULT
hr
;
UINT32
len
;
LONG
ref
;
hr
=
WindowsCreateString
(
smbios_statics_name
,
wcslen
(
smbios_statics_name
),
&
str
);
...
...
@@ -70,6 +72,18 @@ static void test_Smbios_Statics(void)
hr
=
IActivationFactory_QueryInterface
(
factory
,
&
IID_ISmbiosInformationStatics
,
(
void
**
)
&
smbios_statics
);
ok
(
hr
==
S_OK
,
"got hr %#lx.
\n
"
,
hr
);
if
(
0
)
/* Win8 Crash */
{
hr
=
ISmbiosInformationStatics_get_SerialNumber
(
smbios_statics
,
&
serial
);
todo_wine
ok
(
hr
==
S_OK
||
broken
(
hr
==
E_UNEXPECTED
),
"got hr %#lx.
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
buf
=
WindowsGetStringRawBuffer
(
serial
,
&
len
);
todo_wine
ok
(
buf
!=
NULL
&&
len
>
0
,
"WindowsGetStringRawBuffer returned buf %p, len %u
\n
"
,
buf
,
len
);
WindowsDeleteString
(
serial
);
}
}
ref
=
ISmbiosInformationStatics_Release
(
smbios_statics
);
ok
(
ref
==
2
,
"got ref %ld.
\n
"
,
ref
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment