mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[channels,printer] fix printer_save_default_config
This commit is contained in:
committed by
Martin Fleisz
parent
afc29ce777
commit
9005e1edfb
@@ -394,12 +394,12 @@ static BOOL printer_save_default_config(const rdpSettings* settings, rdpPrinter*
|
||||
|
||||
wname = ConvertUtf8ToWCharAlloc(printer->name, NULL);
|
||||
|
||||
if (wname)
|
||||
if (!wname)
|
||||
goto fail;
|
||||
|
||||
driver = ConvertUtf8ToWCharAlloc(printer->driver, NULL);
|
||||
|
||||
if (driver)
|
||||
if (!driver)
|
||||
goto fail;
|
||||
|
||||
wlen = _wcslen(wname) + 1;
|
||||
|
||||
Reference in New Issue
Block a user