[channels,printer] fix printer_save_default_config

This commit is contained in:
Armin Novak 2023-04-24 10:11:05 +02:00 committed by Martin Fleisz
parent afc29ce777
commit 9005e1edfb
1 changed files with 2 additions and 2 deletions

View File

@ -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;