From d3278b6f419ac5c2bb01efc131c70fc4b0d12de6 Mon Sep 17 00:00:00 2001 From: Stefan Leichter Date: Wed, 16 Jun 2004 20:07:02 +0000 Subject: [PATCH] Added some logging to the GetPrinterDriverDirectoryA tests. --- dlls/winspool/tests/info.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/winspool/tests/info.c b/dlls/winspool/tests/info.c index 568ec539aec..fc9cf7e8efc 100644 --- a/dlls/winspool/tests/info.c +++ b/dlls/winspool/tests/info.c @@ -115,10 +115,12 @@ static void test_default_printer(void) static void test_printer_directory(void) { LPBYTE buffer = NULL; - DWORD cbBuf, pcbNeeded; + DWORD cbBuf = 0, pcbNeeded = 0; BOOL res; - (void) GetPrinterDriverDirectoryA( NULL, NULL, 1, NULL, 0, &cbBuf); + res = GetPrinterDriverDirectoryA( NULL, NULL, 1, NULL, 0, &cbBuf); + trace("GetPrinterDriverDirectoryA: first call returned 0x%04x, " + "buffer size 0x%08lx\n", res, cbBuf); buffer = HeapAlloc( GetProcessHeap(), 0, cbBuf*2);