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
c3c48d18
Commit
c3c48d18
authored
Dec 10, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Dec 12, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool/tests: Fix test failures on Windows 11.
parent
1480d0f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
+20
-10
info.c
dlls/winspool.drv/tests/info.c
+20
-10
No files found.
dlls/winspool.drv/tests/info.c
View file @
c3c48d18
...
...
@@ -929,13 +929,15 @@ static void test_EnumForms(LPSTR pName)
SetLastError
(
0xdeadbeef
);
res
=
EnumFormsA
(
hprinter
,
level
,
buffer
,
cbBuf
,
NULL
,
&
pcReturned
);
ok
(
!
res
&&
(
GetLastError
()
==
RPC_X_NULL_REF_POINTER
)
,
ok
(
!
res
&&
(
GetLastError
()
==
RPC_X_NULL_REF_POINTER
||
GetLastError
()
==
ERROR_INVALID_PARAMETER
),
"(%ld) returned %ld with %ld (expected '0' with "
"RPC_X_NULL_REF_POINTER)
\n
"
,
level
,
res
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
res
=
EnumFormsA
(
hprinter
,
level
,
buffer
,
cbBuf
,
&
pcbNeeded
,
NULL
);
ok
(
!
res
&&
(
GetLastError
()
==
RPC_X_NULL_REF_POINTER
)
,
ok
(
!
res
&&
(
GetLastError
()
==
RPC_X_NULL_REF_POINTER
||
GetLastError
()
==
ERROR_INVALID_PARAMETER
),
"(%ld) returned %ld with %ld (expected '0' with "
"RPC_X_NULL_REF_POINTER)
\n
"
,
level
,
res
,
GetLastError
());
...
...
@@ -1043,7 +1045,8 @@ static void test_EnumMonitors(void)
pcbNeeded
=
MAGIC_DEAD
;
pcReturned
=
MAGIC_DEAD
;
res
=
EnumMonitorsA
(
NULL
,
level
,
buffer
,
cbBuf
,
NULL
,
&
pcReturned
);
ok
(
res
||
GetLastError
()
==
RPC_X_NULL_REF_POINTER
,
ok
(
res
||
GetLastError
()
==
RPC_X_NULL_REF_POINTER
||
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"(%ld) returned %ld with %ld (expected '!=0' or '0' with "
"RPC_X_NULL_REF_POINTER)
\n
"
,
level
,
res
,
GetLastError
());
...
...
@@ -1051,7 +1054,8 @@ static void test_EnumMonitors(void)
pcReturned
=
MAGIC_DEAD
;
SetLastError
(
MAGIC_DEAD
);
res
=
EnumMonitorsA
(
NULL
,
level
,
buffer
,
cbBuf
,
&
pcbNeeded
,
NULL
);
ok
(
res
||
GetLastError
()
==
RPC_X_NULL_REF_POINTER
,
ok
(
res
||
GetLastError
()
==
RPC_X_NULL_REF_POINTER
||
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"(%ld) returned %ld with %ld (expected '!=0' or '0' with "
"RPC_X_NULL_REF_POINTER)
\n
"
,
level
,
res
,
GetLastError
());
...
...
@@ -1137,7 +1141,8 @@ static void test_EnumPorts(void)
SetLastError
(
0xdeadbeef
);
res
=
EnumPortsA
(
NULL
,
level
,
buffer
,
cbBuf
,
NULL
,
&
pcReturned
);
/* NT: RPC_X_NULL_REF_POINTER (1780), 9x: success */
ok
(
(
!
res
&&
(
GetLastError
()
==
RPC_X_NULL_REF_POINTER
)
)
||
ok
(
(
!
res
&&
(
GetLastError
()
==
RPC_X_NULL_REF_POINTER
||
GetLastError
()
==
ERROR_INVALID_PARAMETER
))
||
(
res
&&
(
GetLastError
()
==
ERROR_SUCCESS
)
),
"(%ld) returned %ld with %ld (expected '0' with "
"RPC_X_NULL_REF_POINTER or '!=0' with NO_ERROR)
\n
"
,
...
...
@@ -1147,7 +1152,8 @@ static void test_EnumPorts(void)
SetLastError
(
0xdeadbeef
);
res
=
EnumPortsA
(
NULL
,
level
,
buffer
,
cbBuf
,
&
pcbNeeded
,
NULL
);
/* NT: RPC_X_NULL_REF_POINTER (1780), 9x: success */
ok
(
(
!
res
&&
(
GetLastError
()
==
RPC_X_NULL_REF_POINTER
)
)
||
ok
(
(
!
res
&&
(
GetLastError
()
==
RPC_X_NULL_REF_POINTER
||
GetLastError
()
==
ERROR_INVALID_PARAMETER
))
||
(
res
&&
(
GetLastError
()
==
ERROR_SUCCESS
)
),
"(%ld) returned %ld with %ld (expected '0' with "
"RPC_X_NULL_REF_POINTER or '!=0' with NO_ERROR)
\n
"
,
...
...
@@ -1261,7 +1267,8 @@ static void test_EnumPrinterDrivers(void)
pcbNeeded
=
0xdeadbeef
;
pcReturned
=
0xdeadbeef
;
res
=
EnumPrinterDriversA
(
NULL
,
NULL
,
level
,
buffer
,
cbBuf
,
NULL
,
&
pcReturned
);
ok
(
res
||
GetLastError
()
==
RPC_X_NULL_REF_POINTER
,
ok
(
res
||
GetLastError
()
==
RPC_X_NULL_REF_POINTER
||
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"(%lu) got %lu with %lu (expected '!=0' or '0' with "
"RPC_X_NULL_REF_POINTER)
\n
"
,
level
,
res
,
GetLastError
());
...
...
@@ -1269,7 +1276,8 @@ static void test_EnumPrinterDrivers(void)
pcReturned
=
0xdeadbeef
;
SetLastError
(
0xdeadbeef
);
res
=
EnumPrinterDriversA
(
NULL
,
NULL
,
level
,
buffer
,
cbBuf
,
&
pcbNeeded
,
NULL
);
ok
(
res
||
GetLastError
()
==
RPC_X_NULL_REF_POINTER
,
ok
(
res
||
GetLastError
()
==
RPC_X_NULL_REF_POINTER
||
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"(%lu) got %lu with %lu (expected '!=0' or '0' with "
"RPC_X_NULL_REF_POINTER)
\n
"
,
level
,
res
,
GetLastError
());
...
...
@@ -1410,7 +1418,8 @@ static void test_EnumPrintProcessors(void)
pcReturned
=
0xdeadbeef
;
res
=
EnumPrintProcessorsA
(
NULL
,
NULL
,
1
,
buffer
,
cbBuf
,
NULL
,
&
pcReturned
);
/* the NULL is ignored on win9x */
ok
(
broken
(
res
)
||
(
!
res
&&
(
GetLastError
()
==
RPC_X_NULL_REF_POINTER
)),
ok
(
broken
(
res
)
||
(
!
res
&&
(
GetLastError
()
==
RPC_X_NULL_REF_POINTER
||
GetLastError
()
==
ERROR_INVALID_PARAMETER
)),
"got %lu with %lu (expected '0' with RPC_X_NULL_REF_POINTER)
\n
"
,
res
,
GetLastError
());
...
...
@@ -1419,7 +1428,8 @@ static void test_EnumPrintProcessors(void)
SetLastError
(
0xdeadbeef
);
res
=
EnumPrintProcessorsA
(
NULL
,
NULL
,
1
,
buffer
,
cbBuf
,
&
pcbNeeded
,
NULL
);
/* the NULL is ignored on win9x */
ok
(
broken
(
res
)
||
(
!
res
&&
(
GetLastError
()
==
RPC_X_NULL_REF_POINTER
)),
ok
(
broken
(
res
)
||
(
!
res
&&
(
GetLastError
()
==
RPC_X_NULL_REF_POINTER
||
GetLastError
()
==
ERROR_INVALID_PARAMETER
)),
"got %lu with %lu (expected '0' with RPC_X_NULL_REF_POINTER)
\n
"
,
res
,
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