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
1aebae92
Commit
1aebae92
authored
Mar 09, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wiaservc/tests: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
26c26702
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
Makefile.in
dlls/wiaservc/tests/Makefile.in
+0
-1
wia.c
dlls/wiaservc/tests/wia.c
+8
-8
No files found.
dlls/wiaservc/tests/Makefile.in
View file @
1aebae92
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
TESTDLL
=
wiaservc.dll
TESTDLL
=
wiaservc.dll
IMPORTS
=
ole32
IMPORTS
=
ole32
...
...
dlls/wiaservc/tests/wia.c
View file @
1aebae92
...
@@ -39,19 +39,19 @@ static void test_EnumDeviceInfo(void)
...
@@ -39,19 +39,19 @@ static void test_EnumDeviceInfo(void)
ULONG
count
;
ULONG
count
;
hr
=
IWiaDevMgr_EnumDeviceInfo
(
devmanager
,
WIA_DEVINFO_ENUM_LOCAL
,
NULL
);
hr
=
IWiaDevMgr_EnumDeviceInfo
(
devmanager
,
WIA_DEVINFO_ENUM_LOCAL
,
NULL
);
ok
(
FAILED
(
hr
),
"got 0x%08x
\n
"
,
hr
);
ok
(
FAILED
(
hr
),
"got 0x%08
l
x
\n
"
,
hr
);
hr
=
IWiaDevMgr_EnumDeviceInfo
(
devmanager
,
WIA_DEVINFO_ENUM_LOCAL
,
&
devenum
);
hr
=
IWiaDevMgr_EnumDeviceInfo
(
devmanager
,
WIA_DEVINFO_ENUM_LOCAL
,
&
devenum
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got 0x%08
l
x
\n
"
,
hr
);
hr
=
IEnumWIA_DEV_INFO_GetCount
(
devenum
,
NULL
);
hr
=
IEnumWIA_DEV_INFO_GetCount
(
devenum
,
NULL
);
ok
(
FAILED
(
hr
),
"got 0x%08x
\n
"
,
hr
);
ok
(
FAILED
(
hr
),
"got 0x%08
l
x
\n
"
,
hr
);
count
=
1000
;
count
=
1000
;
hr
=
IEnumWIA_DEV_INFO_GetCount
(
devenum
,
&
count
);
hr
=
IEnumWIA_DEV_INFO_GetCount
(
devenum
,
&
count
);
todo_wine
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got 0x%08
l
x
\n
"
,
hr
);
ok
(
count
!=
1000
,
"got %u
\n
"
,
count
);
ok
(
count
!=
1000
,
"got %
l
u
\n
"
,
count
);
IEnumWIA_DEV_INFO_Release
(
devenum
);
IEnumWIA_DEV_INFO_Release
(
devenum
);
}
}
...
@@ -62,11 +62,11 @@ static void test_SelectDeviceDlg(void)
...
@@ -62,11 +62,11 @@ static void test_SelectDeviceDlg(void)
IWiaItem
*
root
;
IWiaItem
*
root
;
hr
=
IWiaDevMgr_SelectDeviceDlg
(
devmanager
,
NULL
,
StiDeviceTypeDefault
,
0
,
NULL
,
NULL
);
hr
=
IWiaDevMgr_SelectDeviceDlg
(
devmanager
,
NULL
,
StiDeviceTypeDefault
,
0
,
NULL
,
NULL
);
todo_wine
todo_wine
ok
(
hr
==
E_POINTER
,
"got 0x%08x
\n
"
,
hr
);
ok
(
hr
==
E_POINTER
,
"got 0x%08
l
x
\n
"
,
hr
);
hr
=
IWiaDevMgr_SelectDeviceDlg
(
devmanager
,
NULL
,
StiDeviceTypeDefault
,
0
,
NULL
,
&
root
);
hr
=
IWiaDevMgr_SelectDeviceDlg
(
devmanager
,
NULL
,
StiDeviceTypeDefault
,
0
,
NULL
,
&
root
);
todo_wine
todo_wine
ok
(
hr
==
S_OK
||
hr
==
WIA_S_NO_DEVICE_AVAILABLE
,
"got 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
||
hr
==
WIA_S_NO_DEVICE_AVAILABLE
,
"got 0x%08
l
x
\n
"
,
hr
);
}
}
START_TEST
(
wia
)
START_TEST
(
wia
)
...
@@ -77,7 +77,7 @@ START_TEST(wia)
...
@@ -77,7 +77,7 @@ START_TEST(wia)
hr
=
CoCreateInstance
(
&
CLSID_WiaDevMgr
,
NULL
,
CLSCTX_LOCAL_SERVER
,
&
IID_IWiaDevMgr
,
(
void
**
)
&
devmanager
);
hr
=
CoCreateInstance
(
&
CLSID_WiaDevMgr
,
NULL
,
CLSCTX_LOCAL_SERVER
,
&
IID_IWiaDevMgr
,
(
void
**
)
&
devmanager
);
if
(
FAILED
(
hr
))
{
if
(
FAILED
(
hr
))
{
win_skip
(
"Failed to create WiaDevMgr instance, 0x%08x
\n
"
,
hr
);
win_skip
(
"Failed to create WiaDevMgr instance, 0x%08
l
x
\n
"
,
hr
);
CoUninitialize
();
CoUninitialize
();
return
;
return
;
}
}
...
...
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