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
b317aeaf
Commit
b317aeaf
authored
Sep 10, 2006
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Sep 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool: String cleanup in the tests.
parent
9002468c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
15 deletions
+14
-15
info.c
dlls/winspool.drv/tests/info.c
+14
-15
No files found.
dlls/winspool.drv/tests/info.c
View file @
b317aeaf
...
...
@@ -32,9 +32,15 @@
#define MAGIC_DEAD 0xdeadbeef
#define DEFAULT_PRINTER_SIZE 1000
static
char
env_x86
[]
=
"Windows NT x86"
;
static
char
env_win9x_case
[]
=
"windowS 4.0"
;
static
char
winetest_monitor
[]
=
"winetest"
;
static
CHAR
does_not_exist_dll
[]
=
"does_not_exists.dll"
;
static
CHAR
empty
[]
=
""
;
static
CHAR
env_x86
[]
=
"Windows NT x86"
;
static
CHAR
env_win9x_case
[]
=
"windowS 4.0"
;
static
CHAR
illegal_name
[]
=
"illegal,name"
;
static
CHAR
invalid_env
[]
=
"invalid_env"
;
static
CHAR
invalid_server
[]
=
"
\\
invalid_server"
;
static
CHAR
version_dll
[]
=
"version.dll"
;
static
CHAR
winetest_monitor
[]
=
"winetest"
;
static
HANDLE
hwinspool
;
static
FARPROC
pGetDefaultPrinterA
;
...
...
@@ -176,9 +182,6 @@ static void test_AddMonitor(void)
{
MONITOR_INFO_2A
mi2a
;
struct
monitor_entry
*
entry
=
NULL
;
static
CHAR
empty
[]
=
""
,
does_not_exist_dll
[]
=
"does_not_exists.dll"
,
version_dll
[]
=
"version.dll"
;
DWORD
res
;
entry
=
find_installed_monitor
();
...
...
@@ -325,8 +328,7 @@ static void test_DeleteMonitor(void)
MONITOR_INFO_2A
mi2a
;
struct
monitor_entry
*
entry
=
NULL
;
DWORD
res
;
static
CHAR
empty
[]
=
""
,
bad_env
[]
=
"bad_env"
;
entry
=
find_installed_monitor
();
...
...
@@ -369,7 +371,7 @@ static void test_DeleteMonitor(void)
AddMonitorA
(
NULL
,
2
,
(
LPBYTE
)
&
mi2a
);
SetLastError
(
MAGIC_DEAD
);
res
=
DeleteMonitorA
(
NULL
,
ba
d_env
,
winetest_monitor
);
res
=
DeleteMonitorA
(
NULL
,
invali
d_env
,
winetest_monitor
);
ok
(
res
,
"returned %ld with %ld (expected '!=0')
\n
"
,
res
,
GetLastError
());
/* the monitor-name */
...
...
@@ -700,7 +702,7 @@ static void test_GetPrinterDriverDirectory(void)
LPBYTE
buffer
=
NULL
;
DWORD
cbBuf
=
0
,
pcbNeeded
=
0
;
BOOL
res
;
static
CHAR
empty
[]
=
""
;
SetLastError
(
MAGIC_DEAD
);
res
=
GetPrinterDriverDirectoryA
(
NULL
,
NULL
,
1
,
NULL
,
0
,
&
cbBuf
);
...
...
@@ -850,9 +852,7 @@ static void test_GetPrintProcessorDirectory(void)
DWORD
cbBuf
=
0
;
DWORD
pcbNeeded
=
0
;
BOOL
res
;
static
CHAR
empty
[]
=
""
,
invalid_env
[]
=
"invalid_env"
,
invalid_server
[]
=
"
\\
invalid_server"
;
SetLastError
(
0xdeadbeef
);
res
=
GetPrintProcessorDirectoryA
(
NULL
,
NULL
,
1
,
NULL
,
0
,
&
cbBuf
);
...
...
@@ -982,8 +982,7 @@ static void test_OpenPrinter(void)
DWORD
size
;
CHAR
buffer
[
DEFAULT_PRINTER_SIZE
];
LPSTR
ptr
;
static
CHAR
empty
[]
=
""
,
illegal_name
[]
=
"illegal,name"
;
SetLastError
(
MAGIC_DEAD
);
res
=
OpenPrinter
(
NULL
,
NULL
,
NULL
);
...
...
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