diff options
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/nt_printing.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index bbe312ca27..c55f9f1f91 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -3208,7 +3208,8 @@ static void store_printer_guid(NT_PRINTER_INFO_LEVEL_2 *info2, Vista to whine */ ZERO_STRUCT( unistr_guid ); - init_unistr2( &unistr_guid, smb_uuid_string_static(guid), + + init_unistr2( &unistr_guid, smb_uuid_string(talloc_tos(), guid), UNI_STR_TERMINATE ); regval_ctr_addvalue(ctr, "objectGUID", REG_SZ, @@ -3821,7 +3822,8 @@ static int unpack_values(NT_PRINTER_DATA *printer_data, const uint8 *buf, int bu memcpy( &guid, data_p, sizeof(struct GUID) ); - init_unistr2( &unistr_guid, smb_uuid_string_static(guid), + init_unistr2( &unistr_guid, + smb_uuid_string(talloc_tos(), guid), UNI_STR_TERMINATE ); regval_ctr_addvalue( printer_data->keys[key_index].values, |