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
edf0b4a0
Commit
edf0b4a0
authored
Feb 06, 2010
by
Paul Vriens
Committed by
Alexandre Julliard
Feb 08, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool.drv: Fix some test failures on Win9x/WinMe.
parent
9fd4f4a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
info.c
dlls/winspool.drv/tests/info.c
+23
-3
No files found.
dlls/winspool.drv/tests/info.c
View file @
edf0b4a0
...
...
@@ -115,6 +115,22 @@ static DWORD access_denied_reported = 0;
/* ################################ */
static
BOOL
on_win9x
=
FALSE
;
static
BOOL
check_win9x
(
void
)
{
if
(
pGetPrinterW
)
{
SetLastError
(
0xdeadbeef
);
pGetPrinterW
(
NULL
,
0
,
NULL
,
0
,
NULL
);
return
(
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
);
}
else
{
return
TRUE
;
}
}
static
void
find_default_printer
(
VOID
)
{
static
char
buffer
[
DEFAULT_PRINTER_SIZE
];
...
...
@@ -1156,7 +1172,7 @@ static void test_EnumPrinterDrivers(void)
}
/* EnumPrinterDriversA returns the same number of bytes as EnumPrinterDriversW */
if
(
pEnumPrinterDriversW
)
if
(
!
on_win9x
&&
pEnumPrinterDriversW
)
{
DWORD
double_needed
;
DWORD
double_returned
;
...
...
@@ -2266,7 +2282,7 @@ static void test_GetPrinter(void)
ok
(
needed
>
0
,
"not expected needed buffer size %d
\n
"
,
needed
);
/* GetPrinterA returns the same number of bytes as GetPrinterW */
if
(
!
ret
&&
pGetPrinterW
&&
level
!=
6
&&
level
!=
7
)
if
(
!
on_win9x
&&
!
ret
&&
pGetPrinterW
&&
level
!=
6
&&
level
!=
7
)
{
DWORD
double_needed
;
ret
=
pGetPrinterW
(
hprn
,
level
,
NULL
,
0
,
&
double_needed
);
...
...
@@ -2351,7 +2367,7 @@ static void test_GetPrinterDriver(void)
}
/* GetPrinterDriverA returns the same number of bytes as GetPrinterDriverW */
if
(
!
ret
&&
pGetPrinterDriverW
)
if
(
!
on_win9x
&&
!
ret
&&
pGetPrinterDriverW
)
{
DWORD
double_needed
;
ret
=
pGetPrinterDriverW
(
hprn
,
NULL
,
level
,
NULL
,
0
,
&
double_needed
);
...
...
@@ -2668,6 +2684,10 @@ START_TEST(info)
pXcvDataW
=
(
void
*
)
GetProcAddress
(
hwinspool
,
"XcvDataW"
);
pAddPortExA
=
(
void
*
)
GetProcAddress
(
hwinspool
,
"AddPortExA"
);
on_win9x
=
check_win9x
();
if
(
on_win9x
)
win_skip
(
"Several W-functions are not available on Win9x/WinMe
\n
"
);
find_default_printer
();
find_local_server
();
find_tempfile
();
...
...
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