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
f2710545
Commit
f2710545
authored
Jan 24, 2003
by
Stefan Leichter
Committed by
Alexandre Julliard
Jan 24, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed windows version checks from GetPrinterDriverDirectory tests.
parent
e43a430d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
37 deletions
+16
-37
info.c
dlls/winspool/tests/info.c
+16
-37
No files found.
dlls/winspool/tests/info.c
View file @
f2710545
...
...
@@ -26,13 +26,6 @@ static void test_printer_directory(ivoid)
{
LPBYTE
buffer
=
NULL
;
DWORD
cbBuf
,
pcbNeeded
;
BOOL
res
;
OSVERSIONINFOA
ver
;
ver
.
dwOSVersionInfoSize
=
sizeof
(
OSVERSIONINFOA
);
if
(
!
GetVersionExA
(
&
ver
))
{
ok
(
0
,
"GetVersionExA failed!"
);
return
;
}
(
void
)
GetPrinterDriverDirectoryA
(
NULL
,
NULL
,
1
,
NULL
,
0
,
&
cbBuf
);
...
...
@@ -57,40 +50,26 @@ static void test_printer_directory(ivoid)
GetLastError
());
res
=
GetPrinterDriverDirectoryA
(
NULL
,
NULL
,
1
,
NULL
,
cbBuf
,
&
pcbNeeded
);
if
(
ver
.
dwPlatformId
==
VER_PLATFORM_WIN32_NT
)
{
ok
(
!
res
,
"expected result == 0, got %d"
,
res
);
ok
(
ERROR_INVALID_USER_BUFFER
==
GetLastError
(),
"last error set to %ld instead of ERROR_INVALID_USER_BUFFER"
,
GetLastError
());
}
else
{
ok
(
res
,
"expected result != 0, got %d"
,
res
);
ok
(
ERROR_INVALID_PARAMETER
==
GetLastError
(),
"last error set to %ld instead of ERROR_INVALID_PARAMETER"
,
GetLastError
());
}
ok
(
(
!
res
&&
ERROR_INVALID_USER_BUFFER
==
GetLastError
())
||
(
res
&&
ERROR_INVALID_PARAMETER
==
GetLastError
())
,
"expected either result == 0 and "
"last error == ERROR_INVALID_USER_BUFFER "
"or result != 0 and last error == ERROR_INVALID_PARAMETER "
"got result %d and last error == %ld"
,
res
,
GetLastError
());
res
=
GetPrinterDriverDirectoryA
(
NULL
,
NULL
,
1
,
buffer
,
cbBuf
,
NULL
);
if
(
ver
.
dwPlatformId
==
VER_PLATFORM_WIN32_NT
)
{
ok
(
!
res
,
"expected result == 0, got %d"
,
res
);
ok
(
RPC_X_NULL_REF_POINTER
==
GetLastError
(),
"last error set to %ld instead of RPC_X_NULL_REF_POINTER"
,
GetLastError
());
}
else
{
ok
(
res
,
"expected result != 0, got %d"
,
res
);
}
ok
(
(
!
res
&&
RPC_X_NULL_REF_POINTER
==
GetLastError
())
||
res
,
"expected either result == 0 and "
"last error == RPC_X_NULL_REF_POINTER or result != 0 "
"got result %d and last error == %ld"
,
res
,
GetLastError
());
res
=
GetPrinterDriverDirectoryA
(
NULL
,
NULL
,
1
,
NULL
,
cbBuf
,
NULL
);
if
(
ver
.
dwPlatformId
==
VER_PLATFORM_WIN32_NT
)
{
ok
(
!
res
,
"expected result == 0, got %d"
,
res
);
ok
(
RPC_X_NULL_REF_POINTER
==
GetLastError
(),
"last error set to %ld instead of RPC_X_NULL_REF_POINTER"
,
GetLastError
());
}
else
{
ok
(
res
,
"expected result != 0, got %d"
,
res
);
ok
(
ERROR_INVALID_PARAMETER
==
GetLastError
(),
"last error set to %ld instead of ERROR_INVALID_PARAMETER"
,
GetLastError
());
}
ok
(
(
!
res
&&
RPC_X_NULL_REF_POINTER
==
GetLastError
())
||
(
res
&&
ERROR_INVALID_PARAMETER
==
GetLastError
())
,
"expected either result == 0 and "
"last error == RPC_X_NULL_REF_POINTER "
"or result != 0 and last error == ERROR_INVALID_PARAMETER "
"got result %d and last error == %ld"
,
res
,
GetLastError
());
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
}
...
...
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