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
e4897a82
Commit
e4897a82
authored
Dec 15, 2009
by
Jeremy White
Committed by
Alexandre Julliard
Dec 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool: Add tests for paths returned in GetPrinterDriver.
parent
8ed06175
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
info.c
dlls/winspool.drv/tests/info.c
+19
-0
No files found.
dlls/winspool.drv/tests/info.c
View file @
e4897a82
...
...
@@ -2370,6 +2370,7 @@ static void test_GetPrinterDriver(void)
{
DRIVER_INFO_2
*
di_2
=
(
DRIVER_INFO_2
*
)
buf
;
DWORD
calculated
=
sizeof
(
*
di_2
);
HANDLE
hf
;
/* MSDN is wrong: The Drivers on the win9x-CD's have cVersion=0x0400
NT351: 1, NT4.0+w2k(Kernelmode): 2, w2k and above(Usermode): 3 */
...
...
@@ -2393,6 +2394,24 @@ static void test_GetPrinterDriver(void)
trace
(
"pConfigFile %s
\n
"
,
di_2
->
pConfigFile
);
calculated
+=
strlen
(
di_2
->
pConfigFile
)
+
1
;
hf
=
CreateFileA
(
di_2
->
pDriverPath
,
GENERIC_READ
,
0
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
if
(
hf
!=
INVALID_HANDLE_VALUE
)
CloseHandle
(
hf
);
todo_wine
ok
(
hf
!=
INVALID_HANDLE_VALUE
,
"Could not open %s
\n
"
,
di_2
->
pDriverPath
);
hf
=
CreateFileA
(
di_2
->
pDataFile
,
GENERIC_READ
,
0
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
if
(
hf
!=
INVALID_HANDLE_VALUE
)
CloseHandle
(
hf
);
todo_wine
ok
(
hf
!=
INVALID_HANDLE_VALUE
,
"Could not open %s
\n
"
,
di_2
->
pDataFile
);
hf
=
CreateFileA
(
di_2
->
pConfigFile
,
GENERIC_READ
,
0
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
if
(
hf
!=
INVALID_HANDLE_VALUE
)
CloseHandle
(
hf
);
todo_wine
ok
(
hf
!=
INVALID_HANDLE_VALUE
,
"Could not open %s
\n
"
,
di_2
->
pConfigFile
);
/* XP allocates memory for both ANSI and unicode names */
ok
(
filled
>=
calculated
,
"calculated %d != filled %d
\n
"
,
calculated
,
filled
);
}
...
...
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