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
b2de0f43
Commit
b2de0f43
authored
Feb 23, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apphelp/tests: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
78b6f417
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
Makefile.in
dlls/apphelp/tests/Makefile.in
+0
-1
apphelp.c
dlls/apphelp/tests/apphelp.c
+4
-4
No files found.
dlls/apphelp/tests/Makefile.in
View file @
b2de0f43
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
TESTDLL
=
apphelp.dll
IMPORTS
=
ole32
...
...
dlls/apphelp/tests/apphelp.c
View file @
b2de0f43
...
...
@@ -64,13 +64,13 @@ static void test_ApphelpCheckShellObject(void)
flags
=
0xdeadbeef
;
SetLastError
(
0xdeadbeef
);
res
=
pApphelpCheckShellObject
(
objects
[
i
],
FALSE
,
&
flags
);
ok
(
res
&&
(
flags
==
0
),
"%s 0: got %d and %s with 0x%x (expected TRUE and 0)
\n
"
,
ok
(
res
&&
(
flags
==
0
),
"%s 0: got %d and %s with 0x%
l
x (expected TRUE and 0)
\n
"
,
wine_dbgstr_guid
(
objects
[
i
]),
res
,
wine_dbgstr_longlong
(
flags
),
GetLastError
());
flags
=
0xdeadbeef
;
SetLastError
(
0xdeadbeef
);
res
=
pApphelpCheckShellObject
(
objects
[
i
],
TRUE
,
&
flags
);
ok
(
res
&&
(
flags
==
0
),
"%s 1: got %d and %s with 0x%x (expected TRUE and 0)
\n
"
,
ok
(
res
&&
(
flags
==
0
),
"%s 1: got %d and %s with 0x%
l
x (expected TRUE and 0)
\n
"
,
wine_dbgstr_guid
(
objects
[
i
]),
res
,
wine_dbgstr_longlong
(
flags
),
GetLastError
());
}
...
...
@@ -78,7 +78,7 @@ static void test_ApphelpCheckShellObject(void)
/* NULL as pointer to flags is checked */
SetLastError
(
0xdeadbeef
);
res
=
pApphelpCheckShellObject
(
&
GUID_NULL
,
FALSE
,
NULL
);
ok
(
res
,
"%s 0: got %d with 0x%x (expected != FALSE)
\n
"
,
wine_dbgstr_guid
(
&
GUID_NULL
),
res
,
GetLastError
());
ok
(
res
,
"%s 0: got %d with 0x%
l
x (expected != FALSE)
\n
"
,
wine_dbgstr_guid
(
&
GUID_NULL
),
res
,
GetLastError
());
/* NULL as CLSID* crash on Windows */
if
(
0
)
...
...
@@ -86,7 +86,7 @@ static void test_ApphelpCheckShellObject(void)
flags
=
0xdeadbeef
;
SetLastError
(
0xdeadbeef
);
res
=
pApphelpCheckShellObject
(
NULL
,
FALSE
,
&
flags
);
trace
(
"NULL as CLSID*: got %d and %s with 0x%x
\n
"
,
res
,
wine_dbgstr_longlong
(
flags
),
GetLastError
());
trace
(
"NULL as CLSID*: got %d and %s with 0x%
l
x
\n
"
,
res
,
wine_dbgstr_longlong
(
flags
),
GetLastError
());
}
}
...
...
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