1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

Fix valgrind errors in _spoolss_addprinterdriver

Jerry, this was dropped as part of your SVN r15309 (037f9f83). Can you please
check?

Thanks,

Volker
(cherry picked from commit 5aa2411f0b3720b790439359a2dadb23008e936e)
(This used to be commit 8e7effd58f7790d6e71e38c990f6cb05456e47e1)
This commit is contained in:
Volker Lendecke 2008-06-26 16:51:45 +02:00
parent 5a63e1dcb6
commit 8fffa902e0

View File

@ -7858,6 +7858,17 @@ WERROR _spoolss_addprinterdriver(pipes_struct *p, SPOOL_Q_ADDPRINTERDRIVER *q_u,
goto done;
}
switch(level) {
case 3:
fstrcpy(driver_name,
driver.info_3->name ? driver.info_3->name : "");
break;
case 6:
fstrcpy(driver_name,
driver.info_6->name ? driver.info_6->name : "");
break;
}
/*
* I think this is where he DrvUpgradePrinter() hook would be
* be called in a driver's interface DLL on a Windows NT 4.0/2k