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
7fa86c9b
Commit
7fa86c9b
authored
Oct 03, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slc/tests: Use wide-char string literals.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b72440fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
slc.c
dlls/slc/tests/slc.c
+5
-12
No files found.
dlls/slc/tests/slc.c
View file @
7fa86c9b
...
...
@@ -29,40 +29,33 @@
static
void
test_SLGetWindowsInformationDWORD
(
void
)
{
static
const
WCHAR
NonexistentLicenseValueW
[]
=
{
'N'
,
'o'
,
'n'
,
'e'
,
'x'
,
'i'
,
's'
,
't'
,
'e'
,
'n'
,
't'
,
'-'
,
'L'
,
'i'
,
'c'
,
'e'
,
'n'
,
's'
,
'e'
,
'-'
,
'V'
,
'a'
,
'l'
,
'u'
,
'e'
,
0
};
static
const
WCHAR
KernelMUILanguageAllowedW
[]
=
{
'K'
,
'e'
,
'r'
,
'n'
,
'e'
,
'l'
,
'-'
,
'M'
,
'U'
,
'I'
,
'-'
,
'L'
,
'a'
,
'n'
,
'g'
,
'u'
,
'a'
,
'g'
,
'e'
,
'-'
,
'A'
,
'l'
,
'l'
,
'o'
,
'w'
,
'e'
,
'd'
,
0
};
static
const
WCHAR
KernelMUINumberAllowedW
[]
=
{
'K'
,
'e'
,
'r'
,
'n'
,
'e'
,
'l'
,
'-'
,
'M'
,
'U'
,
'I'
,
'-'
,
'N'
,
'u'
,
'm'
,
'b'
,
'e'
,
'r'
,
'-'
,
'A'
,
'l'
,
'l'
,
'o'
,
'w'
,
'e'
,
'd'
,
0
};
static
const
WCHAR
emptyW
[]
=
{
0
};
DWORD
value
;
HRESULT
res
;
res
=
SLGetWindowsInformationDWORD
(
NonexistentLicenseValueW
,
NULL
);
res
=
SLGetWindowsInformationDWORD
(
L"Nonexistent-License-Value"
,
NULL
);
ok
(
res
==
E_INVALIDARG
,
"expected E_INVALIDARG, got %08x
\n
"
,
res
);
res
=
SLGetWindowsInformationDWORD
(
NULL
,
&
value
);
ok
(
res
==
E_INVALIDARG
,
"expected E_INVALIDARG, got %08x
\n
"
,
res
);
value
=
0xdeadbeef
;
res
=
SLGetWindowsInformationDWORD
(
NonexistentLicenseValueW
,
&
value
);
res
=
SLGetWindowsInformationDWORD
(
L"Nonexistent-License-Value"
,
&
value
);
ok
(
res
==
SL_E_VALUE_NOT_FOUND
,
"expected SL_E_VALUE_NOT_FOUND, got %08x
\n
"
,
res
);
ok
(
value
==
0xdeadbeef
,
"expected value = 0xdeadbeef, got %u
\n
"
,
value
);
value
=
0xdeadbeef
;
res
=
SLGetWindowsInformationDWORD
(
emptyW
,
&
value
);
res
=
SLGetWindowsInformationDWORD
(
L""
,
&
value
);
ok
(
res
==
SL_E_RIGHT_NOT_GRANTED
||
broken
(
res
==
0xd000000d
)
/* Win 8 */
,
"expected SL_E_RIGHT_NOT_GRANTED, got %08x
\n
"
,
res
);
ok
(
value
==
0xdeadbeef
,
"expected value = 0xdeadbeef, got %u
\n
"
,
value
);
value
=
0xdeadbeef
;
res
=
SLGetWindowsInformationDWORD
(
KernelMUILanguageAllowedW
,
&
value
);
res
=
SLGetWindowsInformationDWORD
(
L"Kernel-MUI-Language-Allowed"
,
&
value
);
ok
(
res
==
SL_E_DATATYPE_MISMATCHED
,
"expected SL_E_DATATYPE_MISMATCHED, got %08x
\n
"
,
res
);
ok
(
value
==
0xdeadbeef
,
"expected value = 0xdeadbeef, got %u
\n
"
,
value
);
value
=
0xdeadbeef
;
res
=
SLGetWindowsInformationDWORD
(
KernelMUINumberAllowedW
,
&
value
);
res
=
SLGetWindowsInformationDWORD
(
L"Kernel-MUI-Number-Allowed"
,
&
value
);
ok
(
res
==
S_OK
,
"expected S_OK, got %u
\n
"
,
res
);
ok
(
value
!=
0xdeadbeef
,
"expected value != 0xdeadbeef
\n
"
);
}
...
...
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