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
d046c3fc
Commit
d046c3fc
authored
Mar 05, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sti/tests: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
754c5eb4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
Makefile.in
dlls/sti/tests/Makefile.in
+0
-1
sti.c
dlls/sti/tests/sti.c
+10
-10
No files found.
dlls/sti/tests/Makefile.in
View file @
d046c3fc
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
TESTDLL
=
sti.dll
IMPORTS
=
uuid ole32
...
...
dlls/sti/tests/sti.c
View file @
d046c3fc
...
...
@@ -99,7 +99,7 @@ static void test_version_flag_versus_aw(void)
IUnknown_Release
((
IUnknown
*
)
pStiW
);
}
else
ok
(
0
,
"could not create StillImageA, hr = 0x%X
\n
"
,
hr
);
ok
(
0
,
"could not create StillImageA, hr = 0x%
l
X
\n
"
,
hr
);
hr
=
pStiCreateInstance
(
GetModuleHandleA
(
NULL
),
STI_VERSION_REAL
|
STI_VERSION_FLAG_UNICODE
,
&
pStiW
,
NULL
);
if
(
SUCCEEDED
(
hr
))
{
...
...
@@ -113,7 +113,7 @@ static void test_version_flag_versus_aw(void)
IUnknown_Release
((
IUnknown
*
)
pStiW
);
}
else
ok
(
0
,
"could not create StillImageW, hr = 0x%X
\n
"
,
hr
);
ok
(
0
,
"could not create StillImageW, hr = 0x%
l
X
\n
"
,
hr
);
}
else
skip
(
"No StiCreateInstance function
\n
"
);
...
...
@@ -134,7 +134,7 @@ static void test_version_flag_versus_aw(void)
IUnknown_Release
((
IUnknown
*
)
pStiA
);
}
else
todo_wine
ok
(
0
,
"could not create StillImageA, hr = 0x%X
\n
"
,
hr
);
todo_wine
ok
(
0
,
"could not create StillImageA, hr = 0x%
l
X
\n
"
,
hr
);
}
else
skip
(
"No StiCreateInstanceA function
\n
"
);
...
...
@@ -155,7 +155,7 @@ static void test_version_flag_versus_aw(void)
IUnknown_Release
((
IUnknown
*
)
pStiW
);
}
else
ok
(
0
,
"could not create StillImageW, hr = 0x%X
\n
"
,
hr
);
ok
(
0
,
"could not create StillImageW, hr = 0x%
l
X
\n
"
,
hr
);
}
else
skip
(
"No StiCreateInstanceW function
\n
"
);
...
...
@@ -204,12 +204,12 @@ static void test_stillimage_aggregation(void)
IStillImage_Release
(
pStiW2
);
}
else
ok
(
0
,
"could not query for IID_IStillImageW, hr = 0x%x
\n
"
,
hr
);
ok
(
0
,
"could not query for IID_IStillImageW, hr = 0x%
l
x
\n
"
,
hr
);
IStillImage_Release
(
pStiW
);
}
else
ok
(
0
,
"could not create StillImageW, hr = 0x%X
\n
"
,
hr
);
ok
(
0
,
"could not create StillImageW, hr = 0x%
l
X
\n
"
,
hr
);
/* Now do the above tests prove that STI.DLL isn't picky about querying for IUnknown
in CoCreateInterface when aggregating? */
...
...
@@ -220,7 +220,7 @@ static void test_stillimage_aggregation(void)
hr
=
CoCreateInstance
(
&
CLSID_Sti
,
&
aggregator
,
CLSCTX_ALL
,
&
IID_IUnknown
,
(
void
**
)
&
pUnknown
);
ok
(
SUCCEEDED
(
hr
)
||
broken
(
hr
==
CLASS_E_NOAGGREGATION
),
/* Win 2000 */
"CoCreateInstance unexpectedly failed when querying for IUnknown during aggregation, hr = 0x%x
\n
"
,
hr
);
"CoCreateInstance unexpectedly failed when querying for IUnknown during aggregation, hr = 0x%
l
x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IUnknown_Release
(
pUnknown
);
}
...
...
@@ -249,14 +249,14 @@ static void test_launch_app_registry(void)
else
if
(
SUCCEEDED
(
hr
))
{
hr
=
IStillImage_UnregisterLaunchApplication
(
pStiW
,
appName
);
ok
(
SUCCEEDED
(
hr
),
"could not unregister launch application, error 0x%X
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"could not unregister launch application, error 0x%
l
X
\n
"
,
hr
);
}
else
ok
(
0
,
"could not register launch application, error 0x%X
\n
"
,
hr
);
ok
(
0
,
"could not register launch application, error 0x%
l
X
\n
"
,
hr
);
IStillImage_Release
(
pStiW
);
}
else
ok
(
0
,
"could not create StillImageW, hr = 0x%X
\n
"
,
hr
);
ok
(
0
,
"could not create StillImageW, hr = 0x%
l
X
\n
"
,
hr
);
}
START_TEST
(
sti
)
...
...
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