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
c445761b
Commit
c445761b
authored
Nov 30, 2009
by
Jeremy White
Committed by
Alexandre Julliard
Dec 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool: Add a test to show size required for EnumPrinterDriversA is the same as W.
parent
c5a0f931
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
info.c
dlls/winspool.drv/tests/info.c
+12
-0
No files found.
dlls/winspool.drv/tests/info.c
View file @
c445761b
...
...
@@ -72,6 +72,7 @@ static DWORD (WINAPI * pXcvDataW)(HANDLE, LPCWSTR, PBYTE, DWORD, PBYTE, DWORD, P
static
BOOL
(
WINAPI
*
pAddPortExA
)(
LPSTR
,
DWORD
,
LPBYTE
,
LPSTR
);
static
BOOL
(
WINAPI
*
pGetPrinterDriverW
)(
HANDLE
,
LPWSTR
,
DWORD
,
LPBYTE
,
DWORD
,
LPDWORD
);
static
BOOL
(
WINAPI
*
pGetPrinterW
)(
HANDLE
,
DWORD
,
LPBYTE
,
DWORD
,
LPDWORD
);
static
BOOL
(
WINAPI
*
pEnumPrinterDriversW
)(
LPWSTR
,
LPWSTR
,
DWORD
,
LPBYTE
,
DWORD
,
LPDWORD
,
LPDWORD
);
/* ################################ */
...
...
@@ -1154,6 +1155,16 @@ static void test_EnumPrinterDrivers(void)
continue
;
}
/* EnumPrinterDriversA returns the same number of bytes as EnumPrinterDriversW */
if
(
pEnumPrinterDriversW
)
{
DWORD
double_needed
;
DWORD
double_returned
;
pEnumPrinterDriversW
(
NULL
,
NULL
,
level
,
NULL
,
0
,
&
double_needed
,
&
double_returned
);
todo_wine
ok
(
double_needed
==
cbBuf
,
"level %d: EnumPrinterDriversA returned different size %d than EnumPrinterDriversW (%d)
\n
"
,
level
,
cbBuf
,
double_needed
);
}
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
cbBuf
+
4
);
if
(
buffer
==
NULL
)
continue
;
...
...
@@ -2618,6 +2629,7 @@ START_TEST(info)
pGetDefaultPrinterA
=
(
void
*
)
GetProcAddress
(
hwinspool
,
"GetDefaultPrinterA"
);
pSetDefaultPrinterA
=
(
void
*
)
GetProcAddress
(
hwinspool
,
"SetDefaultPrinterA"
);
pGetPrinterDriverW
=
(
void
*
)
GetProcAddress
(
hwinspool
,
"GetPrinterDriverW"
);
pEnumPrinterDriversW
=
(
void
*
)
GetProcAddress
(
hwinspool
,
"EnumPrinterDriversW"
);
pGetPrinterW
=
(
void
*
)
GetProcAddress
(
hwinspool
,
"GetPrinterW"
);
pXcvDataW
=
(
void
*
)
GetProcAddress
(
hwinspool
,
"XcvDataW"
);
pAddPortExA
=
(
void
*
)
GetProcAddress
(
hwinspool
,
"AddPortExA"
);
...
...
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