winspool.drv: Removed a superflous NULL check (Coverity).

This commit is contained in:
Marcus Meissner 2011-06-15 17:01:07 +02:00 committed by Alexandre Julliard
parent 4709b0bf58
commit dad3342907
1 changed files with 5 additions and 8 deletions

View File

@ -2609,14 +2609,11 @@ static void test_GetPrinterDriver(void)
ok(filled >= calculated,"calculated %d != filled %d\n", calculated, filled);
/* Obscure test - demonstrate that Windows zero fills the buffer, even on failure */
if (di_2->pDataFile)
{
ret = GetPrinterDriver(hprn, NULL, level, buf, needed - 2, &filled);
ok(!ret, "level %d: GetPrinterDriver succeeded with less buffer than it should\n", level);
ok(di_2->pDataFile == NULL ||
broken(di_2->pDataFile != NULL), /* Win9x/WinMe */
"Even on failure, GetPrinterDriver clears the buffer to zeros\n");
}
ret = GetPrinterDriver(hprn, NULL, level, buf, needed - 2, &filled);
ok(!ret, "level %d: GetPrinterDriver succeeded with less buffer than it should\n", level);
ok(di_2->pDataFile == NULL ||
broken(di_2->pDataFile != NULL), /* Win9x/WinMe */
"Even on failure, GetPrinterDriver clears the buffer to zeros\n");
}
HeapFree(GetProcessHeap(), 0, buf);