mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 09:55:50 +00:00
localspl: Fix error handling in printer_alloc_handle helper.
This commit is contained in:
parent
e09c93de7b
commit
5954a7f3cd
|
@ -1573,9 +1573,10 @@ static HANDLE printer_alloc_handle(LPCWSTR name, LPPRINTER_DEFAULTSW pDefault)
|
|||
|
||||
/* clone the full name */
|
||||
printer->name = wcsdup(name);
|
||||
if (name && (!printer->name)) {
|
||||
if (name && !printer->name) {
|
||||
printer_free(printer);
|
||||
printer = NULL;
|
||||
goto end;
|
||||
}
|
||||
if (printername) {
|
||||
len = ARRAY_SIZE(L",XcvMonitor ") - 1;
|
||||
|
|
Loading…
Reference in a new issue