mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
s3 spoolss: arch needs to be set before it's passed to get_version_id.
7717ad6880
left arch unitialized.
Guenther, please check.
This commit is contained in:
parent
ecc53d0312
commit
1d65b7a742
@ -2019,6 +2019,9 @@ WERROR _spoolss_DeletePrinterDriver(pipes_struct *p,
|
||||
return WERR_ACCESS_DENIED;
|
||||
}
|
||||
|
||||
driver = CONST_DISCARD(char *, r->in.driver);
|
||||
arch = CONST_DISCARD(char *, r->in.architecture);
|
||||
|
||||
/* check that we have a valid driver name first */
|
||||
|
||||
if ((version=get_version_id(arch)) == -1)
|
||||
@ -2027,9 +2030,6 @@ WERROR _spoolss_DeletePrinterDriver(pipes_struct *p,
|
||||
ZERO_STRUCT(info);
|
||||
ZERO_STRUCT(info_win2k);
|
||||
|
||||
driver = CONST_DISCARD(char *, r->in.driver);
|
||||
arch = CONST_DISCARD(char *, r->in.architecture);
|
||||
|
||||
if (!W_ERROR_IS_OK(get_a_printer_driver(&info, 3, driver, arch, version)))
|
||||
{
|
||||
/* try for Win2k driver if "Windows NT x86" */
|
||||
|
Loading…
Reference in New Issue
Block a user