mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
lib:printer_driver: Parse SourceDisksNames section
This allows a driver inf with a [SourceDisksNames] section excluding the system architecture to be parsed. https://docs.microsoft.com/en-us/windows-hardware/drivers/install/inf-sourcedisksnames-section?f=255&MSPPError=-2147217396 Signed-off-by: Justin Stephenson <jstephen@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Bjoern Jacke <bjacke@samba.org>
This commit is contained in:
parent
04d92b0020
commit
166380111b
@ -939,6 +939,15 @@ static NTSTATUS process_source_disk_name(struct gp_inifile_context *ctx,
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (keys == NULL && values == NULL) {
|
||||||
|
key = "SourceDisksNames";
|
||||||
|
|
||||||
|
status = gp_inifile_enum_section(ctx, key, &num_keys, &keys, &values);
|
||||||
|
if (!NT_STATUS_IS_OK(status)) {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; i < num_keys; i++) {
|
for (i = 0; i < num_keys; i++) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user