mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
r1241: Fix incorrect type in printer publishing (struct uuid, not UUID_FLAT).
Jeremy.
This commit is contained in:
parent
464d2e9048
commit
a535a05975
@ -4317,11 +4317,10 @@ static BOOL construct_printer_info_5(Printer_entry *print_hnd, PRINTER_INFO_5 *p
|
||||
static BOOL construct_printer_info_7(Printer_entry *print_hnd, PRINTER_INFO_7 *printer, int snum)
|
||||
{
|
||||
char *guid_str = NULL;
|
||||
UUID_FLAT guid;
|
||||
struct uuid guid;
|
||||
|
||||
if (is_printer_published(print_hnd, snum, &guid)) {
|
||||
asprintf(&guid_str, "{%s}",
|
||||
smb_uuid_string_static(smb_uuid_unpack_static(guid)));
|
||||
asprintf(&guid_str, "{%s}", smb_uuid_string_static(guid));
|
||||
strupper_m(guid_str);
|
||||
init_unistr(&printer->guid, guid_str);
|
||||
printer->action = SPOOL_DS_PUBLISH;
|
||||
|
Loading…
Reference in New Issue
Block a user