mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Don't reset configuration and driver name when supplied via command line.
This commit is contained in:
@@ -470,11 +470,11 @@ static BOOL printer_save_default_config(const rdpSettings* settings, rdpPrinter*
|
||||
if (!path)
|
||||
goto fail;
|
||||
|
||||
if (!printer_write_setting(path, PRN_CONF_DRIVER, driver, dlen * sizeof(WCHAR)))
|
||||
goto fail;
|
||||
|
||||
if (!printer_write_setting(path, PRN_CONF_DATA, NULL, 0))
|
||||
goto fail;
|
||||
if (dlen > 1)
|
||||
{
|
||||
if (!printer_write_setting(path, PRN_CONF_DRIVER, driver, dlen * sizeof(WCHAR)))
|
||||
goto fail;
|
||||
}
|
||||
|
||||
res = TRUE;
|
||||
fail:
|
||||
|
||||
Reference in New Issue
Block a user