Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
754c5eb4
Commit
754c5eb4
authored
Mar 05, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slc/tests: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bf0f6792
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
Makefile.in
dlls/slc/tests/Makefile.in
+0
-1
slc.c
dlls/slc/tests/slc.c
+9
-9
No files found.
dlls/slc/tests/Makefile.in
View file @
754c5eb4
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
TESTDLL
=
slc.dll
TESTDLL
=
slc.dll
IMPORTS
=
slc
IMPORTS
=
slc
...
...
dlls/slc/tests/slc.c
View file @
754c5eb4
...
@@ -33,30 +33,30 @@ static void test_SLGetWindowsInformationDWORD(void)
...
@@ -33,30 +33,30 @@ static void test_SLGetWindowsInformationDWORD(void)
HRESULT
res
;
HRESULT
res
;
res
=
SLGetWindowsInformationDWORD
(
L"Nonexistent-License-Value"
,
NULL
);
res
=
SLGetWindowsInformationDWORD
(
L"Nonexistent-License-Value"
,
NULL
);
ok
(
res
==
E_INVALIDARG
,
"expected E_INVALIDARG, got %08x
\n
"
,
res
);
ok
(
res
==
E_INVALIDARG
,
"expected E_INVALIDARG, got %08
l
x
\n
"
,
res
);
res
=
SLGetWindowsInformationDWORD
(
NULL
,
&
value
);
res
=
SLGetWindowsInformationDWORD
(
NULL
,
&
value
);
ok
(
res
==
E_INVALIDARG
,
"expected E_INVALIDARG, got %08x
\n
"
,
res
);
ok
(
res
==
E_INVALIDARG
,
"expected E_INVALIDARG, got %08
l
x
\n
"
,
res
);
value
=
0xdeadbeef
;
value
=
0xdeadbeef
;
res
=
SLGetWindowsInformationDWORD
(
L"Nonexistent-License-Value"
,
&
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
(
res
==
SL_E_VALUE_NOT_FOUND
,
"expected SL_E_VALUE_NOT_FOUND, got %08
l
x
\n
"
,
res
);
ok
(
value
==
0xdeadbeef
,
"expected value = 0xdeadbeef, got %u
\n
"
,
value
);
ok
(
value
==
0xdeadbeef
,
"expected value = 0xdeadbeef, got %
l
u
\n
"
,
value
);
value
=
0xdeadbeef
;
value
=
0xdeadbeef
;
res
=
SLGetWindowsInformationDWORD
(
L""
,
&
value
);
res
=
SLGetWindowsInformationDWORD
(
L""
,
&
value
);
ok
(
res
==
SL_E_RIGHT_NOT_GRANTED
||
broken
(
res
==
0xd000000d
)
/* Win 8 */
,
ok
(
res
==
SL_E_RIGHT_NOT_GRANTED
||
broken
(
res
==
0xd000000d
)
/* Win 8 */
,
"expected SL_E_RIGHT_NOT_GRANTED, got %08x
\n
"
,
res
);
"expected SL_E_RIGHT_NOT_GRANTED, got %08
l
x
\n
"
,
res
);
ok
(
value
==
0xdeadbeef
,
"expected value = 0xdeadbeef, got %u
\n
"
,
value
);
ok
(
value
==
0xdeadbeef
,
"expected value = 0xdeadbeef, got %
l
u
\n
"
,
value
);
value
=
0xdeadbeef
;
value
=
0xdeadbeef
;
res
=
SLGetWindowsInformationDWORD
(
L"Kernel-MUI-Language-Allowed"
,
&
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
(
res
==
SL_E_DATATYPE_MISMATCHED
,
"expected SL_E_DATATYPE_MISMATCHED, got %08
l
x
\n
"
,
res
);
ok
(
value
==
0xdeadbeef
,
"expected value = 0xdeadbeef, got %u
\n
"
,
value
);
ok
(
value
==
0xdeadbeef
,
"expected value = 0xdeadbeef, got %
l
u
\n
"
,
value
);
value
=
0xdeadbeef
;
value
=
0xdeadbeef
;
res
=
SLGetWindowsInformationDWORD
(
L"Kernel-MUI-Number-Allowed"
,
&
value
);
res
=
SLGetWindowsInformationDWORD
(
L"Kernel-MUI-Number-Allowed"
,
&
value
);
ok
(
res
==
S_OK
,
"expected S_OK, got %u
\n
"
,
res
);
ok
(
res
==
S_OK
,
"expected S_OK, got %
l
u
\n
"
,
res
);
ok
(
value
!=
0xdeadbeef
,
"expected value != 0xdeadbeef
\n
"
);
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