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
2a64ee2a
Commit
2a64ee2a
authored
Mar 03, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prntvpt/tests: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4705f8fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
16 deletions
+15
-16
Makefile.in
dlls/prntvpt/tests/Makefile.in
+0
-1
prntvpt.c
dlls/prntvpt/tests/prntvpt.c
+15
-15
No files found.
dlls/prntvpt/tests/Makefile.in
View file @
2a64ee2a
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
TESTDLL
=
prntvpt.dll
TESTDLL
=
prntvpt.dll
IMPORTS
=
prntvpt winspool ole32
IMPORTS
=
prntvpt winspool ole32
...
...
dlls/prntvpt/tests/prntvpt.c
View file @
2a64ee2a
...
@@ -55,27 +55,27 @@ static void test_PTOpenProvider(void)
...
@@ -55,27 +55,27 @@ static void test_PTOpenProvider(void)
struct
hprov_data
data
;
struct
hprov_data
data
;
hr
=
PTOpenProvider
(
default_name
,
1
,
&
hprov
);
hr
=
PTOpenProvider
(
default_name
,
1
,
&
hprov
);
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %#
l
x
\n
"
,
hr
);
data
.
hprov
=
hprov
;
data
.
hprov
=
hprov
;
hthread
=
CreateThread
(
NULL
,
0
,
CloseProvider_proc
,
&
data
,
0
,
&
tid
);
hthread
=
CreateThread
(
NULL
,
0
,
CloseProvider_proc
,
&
data
,
0
,
&
tid
);
WaitForSingleObject
(
hthread
,
INFINITE
);
WaitForSingleObject
(
hthread
,
INFINITE
);
CloseHandle
(
hthread
);
CloseHandle
(
hthread
);
ok
(
data
.
hr
==
E_HANDLE
||
data
.
hr
==
E_INVALIDARG
/* XP */
||
broken
(
data
.
hr
==
S_OK
)
/* Win8 */
,
"got %#x
\n
"
,
data
.
hr
);
ok
(
data
.
hr
==
E_HANDLE
||
data
.
hr
==
E_INVALIDARG
/* XP */
||
broken
(
data
.
hr
==
S_OK
)
/* Win8 */
,
"got %#
l
x
\n
"
,
data
.
hr
);
if
(
data
.
hr
!=
S_OK
)
if
(
data
.
hr
!=
S_OK
)
{
{
hr
=
PTCloseProvider
(
hprov
);
hr
=
PTCloseProvider
(
hprov
);
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %#
l
x
\n
"
,
hr
);
}
}
hr
=
PTOpenProvider
(
default_name
,
0
,
&
hprov
);
hr
=
PTOpenProvider
(
default_name
,
0
,
&
hprov
);
ok
(
hr
==
E_INVALIDARG
,
"got %#x
\n
"
,
hr
);
ok
(
hr
==
E_INVALIDARG
,
"got %#
l
x
\n
"
,
hr
);
for
(
i
=
2
;
i
<
20
;
i
++
)
for
(
i
=
2
;
i
<
20
;
i
++
)
{
{
hr
=
PTOpenProvider
(
default_name
,
i
,
&
hprov
);
hr
=
PTOpenProvider
(
default_name
,
i
,
&
hprov
);
ok
(
hr
==
0x80040001
||
hr
==
E_INVALIDARG
/* Wine */
,
"%
u: got %#
x
\n
"
,
i
,
hr
);
ok
(
hr
==
0x80040001
||
hr
==
E_INVALIDARG
/* Wine */
,
"%
lu: got %#l
x
\n
"
,
i
,
hr
);
}
}
}
}
...
@@ -88,40 +88,40 @@ static void test_PTOpenProviderEx(void)
...
@@ -88,40 +88,40 @@ static void test_PTOpenProviderEx(void)
struct
hprov_data
data
;
struct
hprov_data
data
;
hr
=
PTOpenProviderEx
(
default_name
,
1
,
1
,
&
hprov
,
NULL
);
hr
=
PTOpenProviderEx
(
default_name
,
1
,
1
,
&
hprov
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"got %#x
\n
"
,
hr
);
ok
(
hr
==
E_INVALIDARG
,
"got %#
l
x
\n
"
,
hr
);
ver
=
0xdeadbeef
;
ver
=
0xdeadbeef
;
hr
=
PTOpenProviderEx
(
default_name
,
1
,
1
,
&
hprov
,
&
ver
);
hr
=
PTOpenProviderEx
(
default_name
,
1
,
1
,
&
hprov
,
&
ver
);
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %#
l
x
\n
"
,
hr
);
ok
(
ver
==
1
,
"got %#x
\n
"
,
ver
);
ok
(
ver
==
1
,
"got %#
l
x
\n
"
,
ver
);
data
.
hprov
=
hprov
;
data
.
hprov
=
hprov
;
hthread
=
CreateThread
(
NULL
,
0
,
CloseProvider_proc
,
&
data
,
0
,
&
tid
);
hthread
=
CreateThread
(
NULL
,
0
,
CloseProvider_proc
,
&
data
,
0
,
&
tid
);
WaitForSingleObject
(
hthread
,
INFINITE
);
WaitForSingleObject
(
hthread
,
INFINITE
);
CloseHandle
(
hthread
);
CloseHandle
(
hthread
);
ok
(
data
.
hr
==
E_HANDLE
||
data
.
hr
==
E_INVALIDARG
/* XP */
||
broken
(
data
.
hr
==
S_OK
)
/* Win8 */
,
"got %#x
\n
"
,
data
.
hr
);
ok
(
data
.
hr
==
E_HANDLE
||
data
.
hr
==
E_INVALIDARG
/* XP */
||
broken
(
data
.
hr
==
S_OK
)
/* Win8 */
,
"got %#
l
x
\n
"
,
data
.
hr
);
if
(
data
.
hr
!=
S_OK
)
if
(
data
.
hr
!=
S_OK
)
{
{
hr
=
PTCloseProvider
(
hprov
);
hr
=
PTCloseProvider
(
hprov
);
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %#
l
x
\n
"
,
hr
);
}
}
for
(
i
=
1
;
i
<
20
;
i
++
)
for
(
i
=
1
;
i
<
20
;
i
++
)
{
{
hr
=
PTOpenProviderEx
(
default_name
,
0
,
i
,
&
hprov
,
&
ver
);
hr
=
PTOpenProviderEx
(
default_name
,
0
,
i
,
&
hprov
,
&
ver
);
ok
(
hr
==
E_INVALIDARG
,
"%
u: got %#
x
\n
"
,
i
,
hr
);
ok
(
hr
==
E_INVALIDARG
,
"%
lu: got %#l
x
\n
"
,
i
,
hr
);
ver
=
0xdeadbeef
;
ver
=
0xdeadbeef
;
hr
=
PTOpenProviderEx
(
default_name
,
1
,
i
,
&
hprov
,
&
ver
);
hr
=
PTOpenProviderEx
(
default_name
,
1
,
i
,
&
hprov
,
&
ver
);
ok
(
hr
==
S_OK
,
"%
u: got %#
x
\n
"
,
i
,
hr
);
ok
(
hr
==
S_OK
,
"%
lu: got %#l
x
\n
"
,
i
,
hr
);
ok
(
ver
==
1
,
"%
u: got %#
x
\n
"
,
i
,
ver
);
ok
(
ver
==
1
,
"%
lu: got %#l
x
\n
"
,
i
,
ver
);
PTCloseProvider
(
hprov
);
PTCloseProvider
(
hprov
);
ver
=
0xdeadbeef
;
ver
=
0xdeadbeef
;
hr
=
PTOpenProviderEx
(
default_name
,
i
,
i
,
&
hprov
,
&
ver
);
hr
=
PTOpenProviderEx
(
default_name
,
i
,
i
,
&
hprov
,
&
ver
);
ok
(
hr
==
S_OK
,
"%
u: got %#
x
\n
"
,
i
,
hr
);
ok
(
hr
==
S_OK
,
"%
lu: got %#l
x
\n
"
,
i
,
hr
);
ok
(
ver
==
1
,
"%
u: got %#
x
\n
"
,
i
,
ver
);
ok
(
ver
==
1
,
"%
lu: got %#l
x
\n
"
,
i
,
ver
);
PTCloseProvider
(
hprov
);
PTCloseProvider
(
hprov
);
}
}
}
}
...
...
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