diff options
author | Günther Deschner <gd@samba.org> | 2010-01-11 12:34:56 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-01-11 12:43:07 +0100 |
commit | 3e7b7bfd27fad1680f9f331e5b8d736bc3733e05 (patch) | |
tree | e49bdf580a03d6a6078b1bee758cb0b59f7b877f /testprogs/win32/spoolss | |
parent | 4aefb33b9fa4b93fea7035c505e480949bfb843b (diff) | |
download | samba-3e7b7bfd27fad1680f9f331e5b8d736bc3733e05.tar.gz samba-3e7b7bfd27fad1680f9f331e5b8d736bc3733e05.tar.bz2 samba-3e7b7bfd27fad1680f9f331e5b8d736bc3733e05.zip |
testprogs: fix EnumPrintProcessorDatatypes spoolss test.
Guenther
Diffstat (limited to 'testprogs/win32/spoolss')
-rw-r--r-- | testprogs/win32/spoolss/spoolss.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/testprogs/win32/spoolss/spoolss.c b/testprogs/win32/spoolss/spoolss.c index c550b99923..718fb379ea 100644 --- a/testprogs/win32/spoolss/spoolss.c +++ b/testprogs/win32/spoolss/spoolss.c @@ -357,8 +357,7 @@ static BOOL test_EnumPrintProcessors(struct torture_context *tctx, ****************************************************************************/ static BOOL test_EnumPrintProcessorDatatypes(struct torture_context *tctx, - LPSTR servername, - LPSTR architecture) + LPSTR servername) { DWORD levels[] = { 1 }; DWORD success[] = { 1 }; @@ -374,13 +373,13 @@ static BOOL test_EnumPrintProcessorDatatypes(struct torture_context *tctx, torture_comment(tctx, "Testing EnumPrintProcessorDatatypes level %d", levels[i]); - EnumPrintProcessorDatatypes(servername, architecture, levels[i], NULL, 0, &needed, &returned); + EnumPrintProcessorDatatypes(servername, "winprint", levels[i], NULL, 0, &needed, &returned); err = GetLastError(); if (err == ERROR_INSUFFICIENT_BUFFER) { err = 0; buffer = malloc(needed); torture_assert(tctx, buffer, "malloc failed"); - if (!EnumPrintProcessorDatatypes(servername, architecture, levels[i], buffer, needed, &needed, &returned)) { + if (!EnumPrintProcessorDatatypes(servername, "winprint", levels[i], buffer, needed, &needed, &returned)) { err = GetLastError(); } } @@ -763,7 +762,7 @@ int main(int argc, char *argv[]) ret &= test_EnumPorts(tctx, servername); ret &= test_EnumMonitors(tctx, servername); ret &= test_EnumPrintProcessors(tctx, servername, architecture); - ret &= test_EnumPrintProcessorDatatypes(tctx, servername, architecture); + ret &= test_EnumPrintProcessorDatatypes(tctx, servername); ret &= test_GetPrintProcessorDirectory(tctx, servername, architecture); ret &= test_GetPrinterDriverDirectory(tctx, servername, architecture); ret &= test_EachPrinter(tctx, servername, architecture); |