1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

r3521: Collect printer driver names in EnumPrinterDrivers.

(This used to be commit 86f54db1ef96fbffc6f1c7948d8bc849009a536d)
This commit is contained in:
Tim Potter 2004-11-04 06:40:28 +00:00 committed by Gerald (Jerry) Carter
parent d4f667c377
commit 500ce03f7c

View File

@ -408,11 +408,12 @@ def test_EnumPrinterDrivers(pipe):
result = ResizeBufferCall(dcerpc.spoolss_EnumPrinterDrivers, pipe, r)
for driver in dcerpc.unmarshall_spoolss_DriverInfo_array(
result['buffer'], r['level'], result['count']):
print driver
drivers = dcerpc.unmarshall_spoolss_DriverInfo_array(
result['buffer'], r['level'], result['count'])
if level == 1:
driver_names = map(lambda x: x['info1']['driver_name'], drivers)
def test_PrintServer(pipe):